WWW.NNC.IR
Macro Reference
448
Vision System FH/FZ5 Series
User’s Manual (Z340)
CopyUnitModel
Copies the model data of a processing unit.
Format
CopyUnitModel <srcSceneNo>, <srcUnitNo>, <srcModelNo>, <destUnitNo>, <destModelNo>
Parameter
Return value
None.
Description
Copies the model data of the model number specified in the <srcModelNo> parameter, of the processing unit
specified in the <srcUnitNo> parameter, of the scene specified in the <srcSceneNo> parameter, to the model
data of the model number specified in the <destModelNo> 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.
On models that use a processing item for measurement, there is also the model data, model figure, model
parameter, and other information. The model information varies by processing item, and correct operation
does not always result from simply copying the model data, but it is also possible to use a variant-type
variable in the scene control macro to copy model data. For details, refer to Application Producer (FH-AP1,
sold separately).
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))
<srcModelNo>
Integer type Model number of copy source (Reference: XModel Number List (p.369))
<destUnitNo> Integer type
Unit number of copy destination (0 to (number of scene processing units of copy
destination minus one))
<destModelNo>
Integer type Model number of copy destination (Reference: XModel Number List (p.369))