WWW.NNC.IR
Macro Reference
719
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
SetSceneMaker
Sets the creator of the scene.
Format
SetSceneMaker <sceneNo>, <sceneMaker>
Parameter
Return value
None.
Description
Sets the creator specified in the <sceneMaker> parameter in the creator of the scene that has the scene
number specified in the <sceneNo> parameter.
When a creator name with 32 or more characters is specified in the <sceneMaker> parameter, the first 31
characters are set in the creator.
The scene creator can be set by executing this macro, or in the scene maintenance screen. (Reference:
XEditing Scenes (p.62))
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
Gets the creator of scene 3, and if not set, sets the creator.
Parameter
name
Data type Description
<sceneNo> Integer type Scene number (0 to 127) of the scene whose creator is to be set.
<sceneMaker>
Character
string type
Creator of the scene
Rem Get the creator of the scene.
NAME$ = SceneMaker$(3)
If NAME$ = "" Then
Rem Set the creator of the scene.
SetSceneMaker 3, "Maker"
Endif