WWW.NNC.IR
Macro Reference
777
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
UnitCount
Gets the number of registered processing units.
Format
UnitCount
Parameter
None.
Return value
Returns the number of registered processing units as an integer value.
Description
Gets the number of processing units registered in the current scene.
If a value is assigned to the return value variable or the variable is not used in an expression, a "Syntax error"
error will occur.
Usage Cautions
• None.
Example
Adds the search processing unit to the end of the measurement flow.
Useable Modules
Scene Control Macro / Communication Command Macro
Supported Versions
Version 3.50 or later
Related Items
Rem Get the number of processing units registered in the current flow.
UNUM& = UnitCount
Rem Specify the processing item identifier.
IDENT$ = "Search"
Rem Add the "Search" processing item to the end of the flow.
AssignUnit UNUM& , IDENT$
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)) MoveUnit (Reference: X Details (p.625))