beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 241

background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-6 ADAM 4000 Series User’s Manual

$AA6

Name

Digital Data In command

Description

This command requests the specified (AA) module to
return the status of its digital input channels and feedback
value from its digital output channels.

Syntax

$AA6(cr)

$

is a delimiter character.

AA

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

address of the module.

6

is the Digital Data In command.

(cr)

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

Response

!(dataOutput)(dataInput)00(cr)

if the command was valid.

(ADAM-4050)

!(dataInput)0000(cr)

if the command was valid.

(ADAM-4052)

!(dataInput)(dataInput) 00 (cr)

if the command was valid.

(ADAM-4053)

!(dataOutput)00(cr)

if the command was valid.

(ADAM-4056S/4056SO)

!(dataOutput)0000(cr)

if the command was valid.

(ADAM-4060/4068)

?AA(cr)

if an invalid command has been issued.

There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exist.

!

delimiter character indicates that a valid command was

received.

?

delimiter character indicates that the command

was invalid.

AA

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

hexadecimal address of the module.

(dataOutput)

two-character hexadecimal value which is

either the feedback of a digital output channel or a relay.
For ADAM-4056S and ADAM-4056SO, it is
four-character hexadecimal for representing 12 channel
digital output.

(dataInput)

two-character hexadecimal value representing

the input values of the digital I/O module.

(cr)

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

4050, 4051, 4052, 4053, 4055,

4056S, 4056SO, 4060, 4068, 4069