![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))
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...