WWW.NNC.IR
Macro Reference
444
Vision System FH/FZ5 Series
User’s Manual (Z340)
CopyUnitFigure
Copies figure data to the processing unit.
Format
CopyUnitFigure <srcSceneNo>, <srcUnitNo>, <srcFigureNo>, <destUnitNo>,
<destFigureNo>
Parameter
Return value
None.
Description
For the scene specified in the <srcSceneNo> parameter, copies the figure data of the figure number specified
in the <srcFigureNo> parameter, of the processing unit specified in the <srcUnitNo> parameter, to the figure
data of the figure number specified in the <destFigureNo> parameter, of the processing unit specified in the
<destUnitNo> 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 are specified for a
parameter, an "Illegal function call" error will 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 the BUSY signal or other measurement in progress signal is ON and
measurement is prohibited. (Reference: XState Transitions and Execution Timing (p.227))
• Use this macro function with the measurement image displayed after one or more measurements, or after
the image file is specified and re-measured.
• Set the figure data so that pixels from outside the image are not included in the figure.
Parameter
name
Data type Description
<srcSceneNo>
Integer type Scene number of the origin of copy (0 to 127)
<srcUnitNo> Integer type
Unit number of copy source (0 to (number of scene processing units of copy source
minus one))
<srcFigureNo>
Integer type Figure number of copy source (Reference: XFigure Data List (p.364))
<destUnitNo> Integer type
Unit number of copy destination (0 to (number of scene processing units of copy
destination minus one))
<destFigureNo>
Integer type Figure number of copy destination (Reference: XFigure Data List (p.364))