WWW.NNC.IR
Macro Reference
715
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
SetSceneDescription
Sets the scene description.
Format
SetSceneDescription <sceneNo>, <sceneDescription>
Parameter
Return value
None.
Description
Sets the description specified in the <sceneDescription> parameter in the description of the scene of the
scene number specified in the <sceneNo> parameter.
The scene description can be set by executing this macro function, 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 description of scene 1, and if a description is not set, sets the description.
Useable Modules
Scene Control Macro / Communication Command Macro
Parameter
name
Data type Description
<sceneNo>
Integer type Scene number (0 to 127) of the scene for which the description is to be set.
<sceneDescription>
Character
string type
Scene description
Rem Get the scene description
DESCRIPTION$ = SceneDescription$(1)
If DESCRIPTION$ = "" Then
Rem Set the scene description
SetSceneDescription 1, "Description 1"
Endif