EasyManuals Logo

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #614 background imageLoading...
Page #614 background image
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: XState 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#

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals