![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686697.webp)
WWW.NNC.IR
Macro Reference
695
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Uses the *MEASUREDISPG subroutine in the Unit Macro processing unit to change the display in the image
window according to the set image display sub-number in the image window of the main screen.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
*MEASUREDISPG
Rem Get the displayed sub-image number
SUBNO& = DisplaySubNo
Rem Change the display on the image window according to the sub-image number of the sub-image to be displayed.
Select SUBNO&
Case 1
Rem If the gotten sub-image number is 1, the title of processing unit 1 is displayed with the color in accordance with
the judgment result.
SetTextStyle 24, TA_LEFT, UnitJudge(1), 0, FONTSTYLE_NORMAL
TEXT$ = UnitTitle$(1)
Case 2
Rem If the gotten sub-image number is 2, the title of processing unit 2 is displayed with the color in accordance with
the judgment result.
SetTextStyle 24, TA_LEFT, UnitJudge(2), 0, FONTSTYLE_NORMAL
TEXT$ = UnitTitle$(2)
Case Else
Rem If the gotten sub-image number is other than 1 and 2, "Error" is displayed in the "unmeasured" color.
SetTextStyle 24, TA_LEFT, JUDGE_NC, 0, FONTSTYLE_NORMAL
TEXT$ = "Error"
Rem Displays text on the image window.
DrawTextG TEXT$, 50, 0, 0, UnitNo
Return
DisplaySubNo (Reference:
X
Details (p.462))
DrawTextG (Reference:
X
Details (p.502))
Gosub (Reference:
X
Details (p.556))
If Then Else (Reference:
X
Details (p.562))
If Then Elseif Else EndIf (Reference:
X
Details (p.564)) SetTextStyle (Reference:
X
Details (p.727))
UnitJudge (Reference:
X
Details (p.788))
UnitNo (Reference:
X
Details (p.790))
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...