Advantech Adam 4000 Series User Manual page 216

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

Advertisement

! is a delimiter character which indicates a valid command.
? is a delimiter character which indicates an invalid command.
AA (range 00-FF) represents the responding 2-character
hexadecimal address of the digital I/O module.
(status) will tell you if the data (data) from the last
Synchronized Sampling command (#**) have already been
sent. If (status=1), data have only been sent for the first
time after a Synchronized Sampling command was issued.
If (status=0), then the data have been sent at least once
since no Synchronized Sampling command was issued.
(dataOutput) two-character hexadecimal value which is
either the feedback of a digital output channel or a relay.
(dataInput) two-character hexadecimal value representing
the input values of the digital I/O module.
(cr) is the terminating character, carriage return (0Dh).
Example
command: $064(cr)
response: !1055100(cr)
The command asks the ADAM-4050 digital I/O module at
address 06h to send its digital input data that was gathered
during the last Synchronized Sampling command. The
module returns the value 1055100 with status equals to 1
which also represents that data have not been sent before.
From inspection, the value has dataOutput = 05h
(00000101), ON for digital output channels 0 and 2 and
OFF for channels 1, 3, 4, 5, 6, 7. It also has dataInput = 51h
(01010001) which represents HIGH for digital input
channels 0, 4, 6 and LOW for channels 1, 2, 3, 4, 5.
The digital I/O module responds with data = 055100 and
status = 1. These mean that the data has been sent for the first time.
command: $064(cr)
response: !0055100(cr)
The command asks the digital I/O module at address 06h to
send its digital input data.
The digital I/O module responds with data = 055100 and
status = 0, which means that it has sent the same data at
least once before. This may also indicates that a previous
Synchronized Sampling command was not received!
ADAM-4000 Series User Manual
202

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents