133 ADAM-4000 Series User Manual
Chapter 5 Analog Input Module Commands
4011, 4011D, 4012, 4013,
4015, 4015T, 4016
5.1.11 #**
Name Synchronized sampling comand
Description Orders all analog input modules to sample their input
values and store the values in special registers.
Syntax #**
# is a delimiter character.
** is the Synchronized Sampling command.
The terminating character, in the form of a carriage return
(0Dh), is not required.
Response The analog input modules will send no response after
executing the synchronized sampling command. In order to
retrieve the data, a separate Read Synchronized Data
command has to be issued for every analog input module.
The pound sign (#) followed by two asterisks (**) does not
represent an optional value, but is the actual command string.
4011, 4011D, 4012, 4013,
4015, 4015T, 4016
5.1.12 $AA4
Name Read Synchronized Data command
Description Returns the input value that was stored in the addressed
module’s register, after a Synchronized Sampling command
#** was issued.
Syntax $AA4(cr)
$ is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address of the analog input module from which data is to be sent.
4 is the Read Synchronized Data command.
(cr) is the terminating character, carriage return (0Dh).
Response !AA(status)(data)(cr) if the command was valid.
?AA(cr) if an invalid operation was entered.
There is no response if the module detects a syntax error or
communication error or if the specified address does not exist.
! delimiter character indicates a valid command was received.
AA (range 00-FF) represents the 2-character hexadecimal
address of the analog input module that is responding.
(status) will tell you if the data (data) from the last
Synchronized Sampling command (#**) has already been
sent. If status = 1, then the data has been sent for the first
time since a Synchronized Sampling command was issued.
If status = 0, then the data has been sent at least once before.