beautypg.com

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

Page 232

background image

Planning Your Application Program

$aaSiCj5s

Name

Set Counter Start/Stop

Chapter 6





Description

Request the addressed counter/frequency

module to start or stop the counting.

Syntax $aaSiCj5s(cr)

$ is a delimiter character.

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

SiCj identifies the I/O slot i and the channel j of the
module you want to set.

5 is the command for setting counter Start/Stop.

s represents start/stop command. s=0 indicate

stop counter. s=1 indicate start counter.

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

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

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

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



ADAM-5000/TCP User’s Manual


6-161