beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 299

background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-64 ADAM 4000 Series User’s Manual

@AAEAN

Name Enable

Alarm

command

Description

Enable Alarm for the specified counter.

Syntax

@AAEAN (cr)

@

is a delimiter character.

AA

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

address of the module.

EAN

is the Enable Alarm command.

N = 0 Represents counter 0

N = 1 Represents counter 1

(cr)

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

Response

!AA(cr)

if the command is valid.

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.

AA

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

address of the module.

(cr)

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

Example command:

@12EA0(cr)

response: !12(cr)

The command sets the Alarm Status as ‘Enable’ for counter
0 of the counter module at address 12h. It means that the
digital output will be triggered while the count value of the
counter 0 reaches the alarm limit value. The module
replies that the command has been received.

4080