beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 239

background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-4 ADAM 4000 Series User’s Manual

%AANNTTCCFF

Name Configuration

command

Description

Configure address, baud rate and/or checksum status of the
digital I/O module.

Syntax

%AANNTTCCFF(cr)

%

is a delimiter character.

AA

(range 00-FF) represents the 2-character hexadecimal

address which is to be configured.

NN

represents the new hexadecimal address ranging from

00h to FFh of the digital I/O module.

TT

represents the type of code that is always set to 40 for a

digital I/O module.

CC

represents the baud rate code.

(Refer to Table 7-1 on next page)

FF

is a hexadecimal number that equals to a 8-bit

parameter that represents the checksum and protocol status.

Bits 3 through 5 and bit 0, 1, 7 are not used and are being
set to 0. (Refer to Figure 7-1 below)

Bit 6 is the selection of checksum and bit 2 is the selection
of protocol. (0: advantech; 1: modbus). (Modbus protocol
is supported by ADAM-4052, 4055, 4056S, 4056SO, 4068
only)

(cr)

is the terminating character, carriage return (0Dh).

Figure 7-1 Data format for FF (8-bit parameter)

4050, 4051, 4052, 4053, 4055,

4056S, 4056SO, 4060, 4068, 4069