Omron SYSMAC FH Series User Manual page 697

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

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"
Rem Displays text on the image window.
DrawTextG TEXT$, 50, 0, 0, UnitNo
Return
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
DisplaySubNo (Reference:
Gosub (Reference:
If Then Elseif Else EndIf (Reference:
UnitJudge (Reference:
Vision System FH/FZ5 Series
User's Manual (Z340)
Details (p.462))
Details (p.556))
Details (p.564)) SetTextStyle (Reference:
Details (p.788))
WWW.NNC.IR
DrawTextG (Reference:
If Then Else (Reference:
UnitNo (Reference:
Details (p.790))
Details (p.502))
Details (p.562))
Details (p.727))
Macro Reference
8
695

Advertisement

Table of Contents
loading

Table of Contents