WWW.NNC.IR
Macro Reference
579
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
ItemCount
Gets the number of useable processing item types.
Format
ItemCount
Parameter
None.
Return value
Returns the number of usable processing item types as an integer value.
Description
Gets the number of processing item types that can be used on the sensor controller.
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
Gets the number of processing item types, and by repeated processing, searches for search processing
items and gets the processing item type of each search processing item.
Useable Modules
Scene Control Macro / Communication Command Macro
Supported Versions
Version 3.50 or later
Related Items
Rem Get the number of the available processing items.
INUM& = ItemCount
Rem Search for search processing items a number of times equal to the number of processing items
For I&=0 To INUM&-1
If ItemIdent$(I&) = "Search" Then
Rem Get the processing item type of the search processing item
FIGNAME& = ItemInfo(I&, 0)
Endif
Next
ItemIdent$ (Reference: X Details (p.580)) ItemInfo (Reference: X Details (p.582))
ItemTitle$ (Reference: X Details (p.584))