Command set – B&B Electronics ADAM-4521 - Manual User Manual
Page 4

After you have made the changes for a block of
parameters, press
you are satisfied with the changes you have
made or not. Press “Yes” to keep the changes
you have made, “No” to escape without changing
the values.
Command Set
To avoid communication conflicts when several
devices try to send data at the same time, all actions
are instigated by the host computer. The basic form is
a command/response protocol with the host initiating
the sequence.
When modules are not transmitting, they are in listen
mode. The host issues a command to a module with a
specified address and waits a certain amount of time
for the module to respond. If no response arrives, a
timeout aborts the sequence and returns control to the
host.
NOTE:
When changing configuration
parameters, always make sure a
window appears notifying you that
the target module has confirmed
the changes.
S y n t a x
[delimiter character] [address] [command] [data]
[checksum] [carriage return]
Te r m i n a l
This selection allows you to directly send and receive
commands on the RS-485 line. It has two options:
Advantech ASCII and Modbus Screen.
Choosing Advantech ASCII will place the ADAM-4521 in
command test mode, where you send commands one at
a time by typing them into the top blank and
pressing
blank. To send the command again, simply press
Modbus mode is a Modbus type of command test.
Previous commands and their responses stay on the
screen for you to refer to. If you want to repeatedly send
a command, press
and you can choose the Modbus type to fit your setting.
There are Coil Status, Input Status, Holding Register,
Input Register.
Every command begins with a delimiter character. The
first four commands can use a dollar sign $ or a
percentage sign %, but the Data Pass command uses
one of eight special characters, as described on the
following page.
The delimiter character is followed by a two-character
address (hexadecimal) that specifies the target
module. The actual two character command follows
the address. Depending on the command, an optional
data segment follows the command string. An optional
two character checksum may be appended to the total
string. Every command is terminated by a carriage
return (cr).
NOTE:
ALL COMMANDS SHOULD BE
ISSUED IN UPPERCASE
CHARACTERS.
Figure 3 Command Test
A box on the right hand side of the screen shows the
communication parameters for the serial line such as
the baud rate and number of stop bits.
Q u i t
Choosing File on the menu bar, then choose the
Exit button to ends the ADAM utility program.
ADAM-4521 User's Manual
Command
Syntax
Command Name
Description
$AA6(ID)
Set ID
Assign an ID of
up to 24 bytes to
the module at
address AA.
$AA7
Read ID
Read the ID from
the module at
address AA.
$AAC(delimiter)
Set Delimiter
Set the delimiter
character for the
Data Pass
command.
$AAD
Read Delimiter
Read the
delimiter
character from
the module at
address AA.
Delimiter
AA(data)
Data Pass
Tell the module at
address AA to
pass up to 32
bytes of data to
the RS-232
device.
4.