Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 287

Advertising
background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-52 ADAM 4000 Series User’s Manual

$AA0H(data)

Name

Set Minimum Input Signal Width at High Level command

Description

Set the minimum input signal width at high level for a
specified counter/frequency module to filter the noise.

Syntax

$AA0H(data)(cr)
$

is a delimiter character.

AA

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

address that you will access to.

0H

is the Set Minimum Input Signal Width at High Level

command.

(data)

is the minimum width at high level. The unit is in

µsec (microseconds) and its resolution is 1

μsec. The

format is a five digit integer that can range from 2

μsec to

65535

μsec. Out of range values will cause errors.

(cr)

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

Response

!AA(cr)

if the command is valid. The addressed module

stores the value and will recognize the input signal “high”
only after the input signal continues “high” and for longer
than the specified value.

?AA(cr)

if an invalid operation was entered.

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: $130H00020(cr)
response: !13(cr)
The command requests the counter/frequency module at
address 13 to set the minimum input width at high level to
20

μsec. The module stores the value and will identify an

input signal to be "high” only if the signal continues to be
“high” longer than 20

μsec. This function can be used as a

digital filter.

4080, 4080D

Advertising