Advantech ADAM 4000 Series User Manual page 200

Data acquisition modules
Hide thumbs Also See for ADAM 4000 Series:
Table of Contents

Advertisement

4080
7.2.4.8
@AADI
Name
Description The addressed counter module is instructed to return the
Syntax
Response
Example
ADAM-4000 Series User Manual
Read Digital Output and Alarm State command
value of its two digital output channels and the state of its alarm.
@AADI(cr)
@ is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address of the module.
DI is the Read Digital Output and Alarm Status command.
(cr) represents terminating character, carriage return (0Dh).
!AASOO00(cr) if the command was valid
There is no response if the module detects a syntax error or
communication error or if the specified address does not exists.
! is a delimiter character which indicates a valid command.
AA represents the 2-character hexadecimal address of the module.
S (for ADAM-4080) is a hexadecimal number that
represents the disable or enable status of alarm mode:
0h: Counter 0 alarm is disabled, counter 1 alarm is disabled
1h: Counter 0 alarm is enabled, counter 1 alarm is disabled
2h: Counter 0 alarm is disabled, counter 1 alarm is enabled
3h: Counter 0 alarm is enabled, counter 1 alarm is enabled
OO is a hexadecimal number representing the Digital
Output port's channel 0 and 1 status
(00h = D/0 channels 0 and 1 are both OFF, 01h = channel 0
is ON, channel 1 is OFF, 02h = channel 0 is OFF, channel 1
is ON, 03h = channel 0 and 1 are both ON).
(cr) represents the terminating character, carriage return (0Dh).
command: @15DI(cr)
response: !1510000(cr)
The counter module at address 15h is instructed to return digital
output data and alarm status. The module responds that both digital
output channels are OFF and alarm state is MOMENTARY.
command: @05DI(cr)
response: !0530000(cr)
The counter module at address 05H is instructed to return
digital output and alarm status. The module responds that
both digital output channels are OFF and the alarm status
for both counters are ENABLED.
188

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents