Omron SYSMAC FH Series User Manual page 614

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

Advertisement

Measure
Executes measurement processing.
Format
Measure[ <wait>]
Parameter
Parameter
Data type
name
<wait>
Integer type
Return value
None.
Description
Executes measurement processing at the recovery timing specified in the <wait> parameter.
If the <wait> parameter is omitted, operation is the same as when the <wait> parameter is set to 0.
When 0 is specified for the <wait> parameter, there is a possibility that the measurement processing
executed immediately after execution of this macro function will not have ended and the measurement result
cannot be properly gotten. If you want to get the measurement result, specify 1 or 2 for the <wait> parameter.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
Even if a non-existent number, numerical value, or combination of data types is specified for the parameter,
an "Illegal function call" error will not occur.
If a value outside the range -2147483648 to 2147483647 is specified as an integer parameter, an "Overflow"
error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• Execute this macro function when a measurement-in-progress signal such as the BUSY signal is OFF and
measurement is allowed. (Reference:
Example
In the communication command macro, gets the measurement X coordinate and measurement Y coordinate
of the search processing unit of Processing Unit number 2 after measurement is executed. The measured X
and Y coordinates can be gotten with External Reference Data numbers 6 and 7 respectively.
Rem Execute measurement and wait until measurement ends.
Measure 1
Rem Get the measurement result.
GetUnitData 2, 6, POSX#
GetUnitData 2, 7, POSY#
612
Macro Reference
Recovery timing of macro function
0: Executes subsequent program lines without waiting for measurement to end.
1: Waits for measurement to end and then executes subsequent program lines.
2: Waits for measurement to end and measurement result display to end and then
executes subsequent program lines.
State Transitions and Execution Timing (p.227))
WWW.NNC.IR
Description
Vision System FH/FZ5 Series
User's Manual (Z340)

Advertisement

Table of Contents
loading

Table of Contents