WWW.NNC.IR
Macro Reference
460
Vision System FH/FZ5 Series
User’s Manual (Z340)
DeleteUnit
Deletes a processing unit.
Format
DeleteUnit <unitNo>
Parameter
Return value
None.
Description
Deletes the processing unit specified in the <unitNo> parameter of the current scene from the measurement
flow.
The processing unit numbers of processing units after the processing unit number specified in the <unitNo>
parameter are moved up 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 are 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
Deletes the processing unit of unit number 2.
Useable Modules
Scene Control Macro / Communication Command Macro
Supported Versions
Version 3.50 or later
Related Items
Parameter
name
Data type Description
<unitNo> Integer type
Processing unit number (0 to (number of processing units of current scene minus one))
of processing unit to be deleted.
DeleteUnit 2
AssignUnit (Reference: X Details (p.415)) CheckUnit (Reference: X Details (p.425))
CopyUnit (Reference: X Details (p.442)) InsertUnit (Reference: X Details (p.573))
MeasureStart (Reference: X Details (p.617)) MeasureStop (Reference: X Details (p.619))
MoveUnit (Reference: X Details (p.625)) UnitCount (Reference: X Details (p.777))