EasyManuals Logo

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #697 background imageLoading...
Page #697 background image
WWW.NNC.IR
Macro Reference
695
8
Appendices
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))

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals