Table 46 Internal macro commands for Continuous Access Synchronous Z scripting (continued)
Before you create a script, make sure you understand the statement and syntax requirements.
A script file can be written using any text editor (for example, WordPad, NotePad). A script file
consists of an unlimited number of statements that consist of macros (i.e., commands), work variables,
and comments. The first executable statement in a script file must be the Start macro, and the last
statement must be the End macro. Each line in a script file cannot exceed 320 bytes. A leading
blank is ignored, and a leading tab character (0x09) is converted to a space (0x20). A tab
character (0x09) within a string is not converted to a space.
Each script file should contain all five script statements (see
A comment statement, including a short preface for the script: purpose, author, usage,
description, operation, creation date, update date, and any reminder notes to the author. The
comment statement is a non-execution statement. A comment statement begins with "//" and
contains text (any character string) without any commands. Do not use the "//" symbol
anywhere else in a script file, only at the beginning of a comment statement.
A macro statement. The macro statement is an execution statement. Only one macro instruction
can be set per line, and a macro can span more than one line.
A work variable statement. The work variable statement is also an execution statement. Only
one work variable statement can be set per line, and a work variable statement cannot span
more than one line.
A blank statement
An empty statement
Table 47 Scripting syntax description
Table 48 Script components
Suspends script execution for the specified length of time.
Executes a script conditionally.
Terminates a script conditionally.
Makes strings; converts numeric value to character string.
The Message command is not yet supported.
(Table 47 (page
103)). The blank statement is a non-execution statement.
(Table 47 (page
103)). The empty statement is a non-execution statement.
Space or Tab with a return
One line beginning with //
Work variable statement (non-list type work variable = constant)
Macro name [parameter list]
Either an internal macro or a functional macro.
Parameter identification name (defined in each macro format) = non-list type expression.
List, constant, and work variable.
Table 47 (page 103)
Table 48 (page
Scripting syntax 103