beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 265

background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-30 ADAM 4000 Series User’s Manual

%AANNTTCCFF

Response

!AA(cr)

if the command is valid.

?AA(cr)

if an invalid parameter was entered or the INIT*

terminal was not grounded when changing baud rate or
checksum setting were attempted.
There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exist.

!

is a delimiter character which indicates a valid command.

?

is a delimiter character which indicates an invalid

command.

AA

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

address of the module.

(cr)

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

Example command:

%0120510600(cr)

response: !20(cr)

The ADAM 4080D module is configured by changing
address 01 to a new address 20, choosing frequency
measurement module, assigning 9600 to baud rate, setting
frequency gate time 0.1 second and no checksum checking
or generation.

The response indicates that the command was received.

Wait seven seconds to let the new configuration settings
take effect before you issue a new command to the module.

Table 4-7 Baud Rate Codes

Baud Rate Code (Hex)

Baud Rate

03 1200

bps

04 2400

bps

05 4800

bps

06 9600

bps

07 19.2

Kbps

08 38.4

Kbps

NOTICE: You can change all configuration parameters dynamically

except checksum and baud rate parameters. They can only be
altered when the INIT* terminal is grounded.

4080, 4080D