![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686503.webp)
WWW.NNC.IR
Macro Reference
501
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Example
Uses the *MEASUREDISPT subroutine of the Unit Macro processing unit to display the provided
measurement results by the search processing unit (Processing Unit number 5) in the text window. The
measured X and Y coordinates and angle can be gotten with External Reference Data numbers 6, 7, and 8
respectively.
The result is shown below.
Useable Modules
Unit macro
Supported Versions
Version 3.50 or later
Related Items
*MEASUREDISPT
Rem Get the measurement result.
GetUnitData 5, 6, X#
GetUnitData 5, 7, Y#
GetUnitData 5, 8, TH#
Rem Draw the delimiter after drawing the character string with the "OK" judgement color without adding any line
break.
DrawText Str2$(X#, 4, 4, 0, 0), JUDGE_OK, 0
DrawText ", ", JUDGE_OK, 0
Rem Draw the character string with the "OK" judgement color and add a line break.
DrawText Str2$(Y#, 4, 4, 0, 0), JUDGE_OK, 1
Rem Draw the character string with the "OK" judgement color without adding any line break.
DrawText Str2$(TH#, 4, 4, 0, 0), JUDGE_OK, 0
Return
123.4567, 10.5000
90.0000
DrawJudgeText (Reference:
X
Details (p.486))
GetUnitData (Reference:
X
Details (p.552))
RGB (Reference:
X
Details (p.662))
Str$ (Reference:
X
Details (p.749))
Str2$ (Reference:
X
Details (p.751))
UnitData (Reference:
X
Details (p.778))
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...