![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686614.webp)
WWW.NNC.IR
Macro Reference
612
Vision System FH/FZ5 Series
User’s Manual (Z340)
Measure
Executes measurement processing.
Format
Measure[ <wait>]
Parameter
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:
State Transitions and Execution Timing (p.227))
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.
Parameter
name
Data type
Description
<wait>
Integer type
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.
Rem Execute measurement and wait until measurement ends.
Measure 1
Rem Get the measurement result.
GetUnitData 2, 6, POSX#
GetUnitData 2, 7, POSY#
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...