WWW.NNC.IR
Macro Reference
707
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
SetMeasureImage
Sets the measurement image of the processing unit.
Format
SetMeasureImage <measureImageNo>, <unitNo>, <imageNo>
Parameter
Return value
None.
Description
Sets the image of the image number specified in the <imageNo> parameter, which is held by the processing
unit specified in the <unitNo> parameter, as the measurement image specified in the <measureImageNo>
parameter. The measurement image is an image that can be used for measurement or filtering by a
succeeding processing unit in the measurement flow.
Normally 0 should be specified in the <measureImageNo> parameter.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a non-existent number, numerical value, or combination of data types or values is specified for a parameter,
an "Illegal function call" 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
• This macro function can only be used in the *MEASUREPROC subroutine. If used in any other subroutines,
an error will occur and the function will not be executed.
Example
Changes the measurement image used by a succeeding processing unit to the camera change image of
processing unit 4.
Useable Modules
Unit macro
Supported Versions
Version 3.50 or later
Related Items
Parameter
name
Data type Description
<measureImageNo>
Integer type Measurement image number to set to the target image of the measurement (always 0)
<unitNo> Integer type
Processing unit number of the processing unit that holds the image to be set as the
measurement image.
<imageNo> Integer type Image number of the image that is set to the measurement image
Rem Set camera change measurement image 0 of processing unit 4 as the measurement image.
SetMeasureImage 0, 4, 0
CopyMeasureImage (Reference: X Details (p.438)) UnitNo (Reference: X Details (p.790))
CopyUnitImage (Reference: X Details (p.446)) Ut (Reference: X Details (p.793))