Advantech Data Acquisition Modules ADAM 4000 User Manual page 303

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents