Advantech Data Acquisition Modules ADAM 4000 User Manual page 304

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

4080, 4080D
@AADI
Name
Read Digital Output and Alarm State command
Description
The addressed counter module is instructed to return the
value of its two digital output channels and the state of its
alarm.
Syntax
@AADI(cr)
(cr)
Response
!AASOO00(cr)
7-69 ADAM 4000 Series User's Manual
@
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.
represents terminating character, carriage return (0Dh).
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)
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
S
(for ADAM-4080D)
represents the alarm state of counter 0:
0h: Alarm of counter 0 is disabled
1h: Alarm of counter 0 is in MOMENTARY mode
2h: Alarm of counter 0 is in LATCH mode
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).
is a hexadecimal number that
is a hexadecimal number that
7
Chapter

Advertisement

Table of Contents
loading

Table of Contents