WWW.NNC.IR
Macro Reference
737
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
SetUnitTitle
Sets the title of a processing unit.
Format
SetUnitTitle <unitNo>, <title>
Parameter
Return value
None.
Description
Sets the title specified in the <title> parameter in the title name of the processing unit specified in the
<unitNo> parameter. If a title with 32 or more characters is specified in the <title> parameter, the first 31
characters are set in the title.
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 a character string longer than 255 characters is specified for a character string parameter, a "String too
long" 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
Sets "bolt search" as the search name in the title of the search processing unit of Processing Unit number 2.
Useable Modules
Scene Control Macro / Communication Command Macro / Unit Macro
Supported Versions
Version 3.50 or later
Parameter
name
Data type Description
<unitNo> Integer type
Processing unit number (0 to (the number of registered processing units in the current
scene minus one))
<title>
Character
string type
Title of processing unit to be set (31 characters max.)
SetUnitTitle 2, "bolt search"