Omron SYSMAC FH Series User Manual page 478

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

Advertisement

Example
Uses the *MEASUREDISPG subroutine of the Unit Macro processing unit to draw a circle of the measured
radius by the circular scan edge position processing unit (Processing Unit number 5) at the measured center
coordinates by the same circular scan edge position processing unit used for measuring the radius. The
measured X and Y coordinates and radius can be gotten with External Reference Data numbers 5 to 7
respectively.
To display the string at the fixed position regardless of the position compensation result, specify the assigned
processing unit number to this Unit Macro processing unit (where the *MEASUREDISPG subroutine is used)
for the <unitNo> parameter.
*MEASUREDISPG
Rem Get the measurement result.
GetUnitData 5, 5, X#
GetUnitData 5, 6, Y#
GetUnitData 5, 7, R#
Rem Draw the image
DrawCircle Int(X#),Int(Y#), Int(R#), 0, UnitNo
Return
Useable Modules
Unit macro
Supported Versions
Version 3.50 or later
Related Items
GetUnitData (Reference:
SetDrawStyle (Reference:
UnitNo (Reference:
476
Macro Reference
Details (p.552))
Details (p.700))
Details (p.790))
WWW.NNC.IR
Int (Reference:
Details (p.575))
UnitData (Reference:
Details (p.778))
Ut (Reference:
Details (p.793))
Vision System FH/FZ5 Series
User's Manual (Z340)

Advertisement

Table of Contents
loading

Table of Contents