Advantech ADAM 4000 Network Card User Manual


 
Digital I/O and Relay Output
Counter/Frequency Command Set
7-
68
ADAM 4000 Series User’s Manual
@AADO
Name Set Digital Output command
Description Set the values of the module’s two digital outputs (ON or
OFF).
Syntax @AADO(data)(cr)
@ is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address of the module.
DO is the Set Digital Output command.
(data) is the two-character parameter that sets the state for
the two digital output bits of the module, as shown below:
00 all D/O bits are OFF
01 bit 0 is ON, bit 1 is OFF
02 bit 0 is OFF, bit 1 is ON
03 all bits are ON
(cr) represents terminating character, carriage return (0Dh).
Response !AA(cr) if the command was valid
?AA(cr) if an invalid parameter was entered
There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exists.
! is a delimiter character which indicates a valid command.
? is a delimiter character which indicates an invalid
command.
AA represents the 2-character hexadecimal address of the
module.
(cr) represents terminating character, carriage return (0Dh).
Example command: @05DO01(cr)
response: !05(cr)
The counter module at address 05h is instructed to set
digital output channel 1 to ON and digital output channel 2
to OFF. The module confirms the settings.
4080, 4080D