![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686464.webp)
WWW.NNC.IR
Macro Reference
462
Vision System FH/FZ5 Series
User’s Manual (Z340)
DisplaySubNo
Get the sub-image number of the displayed sub-image.
Format
DisplaySubNo
Parameter
None.
Return value
Returns the sub-image number as an integer value.
Description
Gets the sub-image number of the displayed sub-image set in the image window on the main screen.
If a value is assigned to the return value variable or the variable is not used in an expression, a "Syntax error"
error will occur.
Usage Cautions
• This macro function can only be used in the *MEASUREDISPI subroutine or the *MEASUREDISPG
subroutine. If used in another subroutine, an "Illegal function call" error will occur.
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.
*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"
End Select
Rem Displays text on the image window.
DrawTextG TEXT$, 50, 0, 0, UnitNo
Содержание 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...