WWW.NNC.IR
Macro Reference
567
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
In the *MEASUREDISPT subroutine of the unit macro, displays the character string corresponding to the
image format in the text window.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Related Items
*MEASUREDISPT
Rem Get the judgement result of the processing unit.
JUDGE& = UnitJudge(UnitNo)
Rem Get the image format.
FORMAT& = ImageFormat(UnitNo, 0)
If FORMAT& = 2 Then
Rem If the format is a color image, display "Color".
DrawText "Color", JUDGE&, 1
Elseif FORMAT& = 1 Then
Rem If the format is a monochrome image, display "Monochrome".
DrawText "Monochrome", JUDGE&, 1
EndIf
Return
DrawText (Reference: X Details (p.500)) UnitJudge (Reference: X Details (p.788))
UnitNo (Reference: X Details (p.790)) Ut (Reference: X Details (p.793))