Instructions

111 ADAM-6000 User Manual
Chapter 7 Planning Your Application Program
#aaVdbbbbdddddddd
Name Write GCL internal flag values (auxiliary flags)
Description
Writes one or more GCL internal flag values to a specific module (see Sec-
tions 8.3.1 and 8.3.4 for a definition of GCL internal flags)
Syntax
#aaVdbbbbdddddddd(cr)
# is a delimiter
aa (range 00~FF) is the 2-character hex slave address of the specified mod-
ule (always 01)
Vd refers to the write GCL internal flag values command
bbbb indicates which GCL internal flag(s) to set
To write to all GCL internal flags: 0000
To write to a single GCL internal flag: First character is 1, and Characters 2~4
indicate the GCL internal flag number which can range from 0h to Fh
dddddddd is the hex representation of the GCL internal flag value(s)
Each character represents 4 GCL internal flag values
(cr) is the terminating character, carriage return (0Dh)
Response
>aa(cr) if the command is valid
?aa(cr) if an invalid command was entered
There is no response if the module detects a syntax error, communication
error, or if the address does not exist
> is a delimiter indicating a valid command was received
? is a delimiter indicating the command was invalid
aa (range 00~FF) represents the 2-character hex slave address of the
responding module
(cr) is the terminating character, carriage return (0Dh)
Example
command: #01VDO00000000000(cr)
response: >01(cr)
This command sets all GCL internal flags (Flag 0~15) to logic low.
Example
command: #01VDO0000000FFFF(cr)
response: >01(cr)
This command sets all GCL internal flags (Flag 0~15) to logic high.
Example
command: #01Vd100300000001(cr)
response: >01(cr)
This command sets one specific GCL internal flag (Flag 3) to logic high.
Example
command: #01Vd100E00000000(cr)
Response: >01(cr)
This command sets one specific GCL internal flag (Flag 14) to logic low.