Advantech ADAM-6050 18-Channel Isolated Digital I/O Modbus TCP Module ADAM-6050-BE Scheda Tecnica

Codici prodotto
ADAM-6050-BE
Pagina di 272
ADAM-6000 Series User Manual
124
6.4   ASCII Commands for ADAM-6000 Modules 
For users do not familiar to Modbus protocol, Advantech offers a func-
tion library as a protocol translator, integrating ASCII command into 
Modbus/TCP structure. Therefore, users familiar to ASCII command can 
access ADAM-6000 easily. Before explaining the structure of ASCII 
command packed with Modbus/TCP format. Lets see how to use an 
ASCII command and how many are available for your program.
6.4.1 Syntax of ASCII
Command Syntax: [delimiter character][address][channel][com-
mand][data][checksum][carriage return] Every command begins with a 
delimiter character. There are two valid characters:
$ and # The delimiter character is followed by a two-character address 
(hex-decimal) that specifies the target system. The two characters follow-
ing the address specified the module and channel.
Depending on the command, an optional data segment may follow the 
command string. An optional two-character checksum may also be 
appended to the command string. Every command is terminated with a 
carriage return (cr).
 The command set is divided into the following five categories: 
•  System Command Set
•  Analog Input Command Set
•  Analog Input Alarm Command Set
•  Universal I/O Command Set
•  Digital I/O Command Set 
Every command set category starts with a command summary of the par-
ticular type of module, followed by datasheets that give detailed informa-
tion about individual commands. Although commands in different 
subsections sometime share the same format, the effect they have on a 
certain module can be completely different than that of another. There-
fore, the full command sets for each type of modules are listed along with 
a description of the effect the command has on the given module. 
Note: All 
commands 
should be issued in UPPERCASE 
characters only!