beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 255

background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-20 ADAM 4000 Series User’s Manual

$AAX0TTTTDDDD

Name

Write Safety Value command

Description Force the DO channels to safety status when communication

is in time-out and over pre-defined period.

Syntax

$AAX0TTTTDDDD(cr)

$

is a delimiter character.

AA (range 00-FF)

represents the 2-character hexadecimal

address that you will access to.

X0

is the Write Safety Value command.

TTTT

is the time, 100 ms per number.

DDDD

is the four-hexadecimal character representing the

desired input safety value. The first character D is always 0,
and the others are the channels values.

For Example, 017A

First character is always 0

The meaning of 17A is as follows:

Digital value

0 0 0 1 0 1 1 1 1 0 1 0

Adam-4056SO channel no. 11 10 9 8 7 6 5 4 3 2 1 0

17A means that the status of channel 1, 3, 4, 5, 6, 8 is ON;
and the rest are OFF.

(cr)

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

Response

>(cr)

if the command was valid.

?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.

>

is a delimiter character which indicates a valid command.

?

is a delimiter character which indicates an invalid

command.

AA

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

hexadecimal address of the module.

(cr)

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

4055, 4056S, 4056SO,

4060, 4068, 4069