beautypg.com

Chapter 6 – B&B Electronics ADAM-5000_TCP - Manual User Manual

Page 223

background image

Chapter 6

Planning Your Application Program

$aaSiArrff

Name

Set Configuration

Description

Set slot index and counter mode.

Syntax $aaSiArrff(cr)

$ is a delimiter character.

aa (range 00-FF) represents the 2-character hexadeci-
mal address of the ADAM-5000/TCP system
you want to configure.

Si identifies the I/O slot i you want to configure. A

is command for setting I/O module configuration. rr

indicates which mode is.

rr=00 represents Bi-direction counter mode.

rr=01 represenrs UP/DOWN counter mode.

rr=02 represents Frequency mode. ff

indicates which format is

ff=00 represents the engineer format.

ff=02 represents the hexadecimal format.

Response !aa(cr)

if the command is valid.

?aa(cr) if an invalid operation was entered. There is
no response if the module detects a syntax error or
communication error or if the specified ad- dress
does not exists.

! delimiter character indicating a valid command was
received.

? delimiter character indicating the command was in-
valid.

aa (range 00-FF) represents the 2-character hexadeci-
mal address of an ADAM-5000/TCP system.

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

Example

command: $01S1A0002(cr)

response: !01(cr)

The ADAM-5080 in Slot 1 of ADAM-5000 system at
address 01h is in Bi-direction mode and configured
for hexadecimal format.


6-152

ADAM-5000/TCP User’s Manual