WWW.NNC.IR
Macro Reference
625
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
MoveUnit
Moves a processing unit.
Format
MoveUnit <srcUnitNo>, <destUnitNo>
Parameter
Return value
None.
Description
Moves the processing unit specified in the <srcUnitNo> parameter to the position in the measurement flow
specified in the <destUnitNo> parameter.
The processing unit numbers of processing units after the processing unit number specified in the
<srcUnitNo> parameter are moved up by 1. The processing unit numbers of processing units after the
processing unit number specified in the <destUnitNo> parameter are moved down by 1.
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
• 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))
Example
Moves the processing unit of Processing Unit number 2 between Processing Unit number 5 and Processing
Unit number 6.
Useable Modules
Scene Control Macro / Communication Command Macro
Supported Versions
Version 3.50 or later
Related Items
Parameter
name
Data type Description
<srcUnitNo> Integer type
Processing unit number (0 to (number of processing units of current scene minus one))
of source
<destUnitNo> Integer type
Processing unit number (0 to (number of processing units of current scene minus one))
indicating the position of the destination in the measurement flow
MoveUnit 2, 5
AssignUnit (Reference: X Details (p.415)) CheckUnit (Reference: X Details (p.425))
CopyUnit (Reference: X Details (p.442)) DeleteUnit (Reference: X Details (p.460))
InsertUnit (Reference: X Details (p.573)) MeasureStart (Reference: X Details (p.617))
MeasureStop (Reference: X Details (p.619)) UnitCount (Reference: X Details (p.777))