B&B Electronics ADAM-6066 - Manual User Manual

Page 177

Advertising
background image

167

Chapter 6

$aaJCFFFFssmm
Name

Read DI Channel Counter Value

Description

Returns the counter value from specified DI channels in a
specified module.

Syntax $aaJCFFFFssmm(cr)

$ is a delimiter character.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of the ADAM-6000 module you want to
interrogate. (Always 01)
JCFFFF is the Digital Input Channel Counter Value
command.
ss (range 00-07) represents the specific start channel you
want to read the counter value.
mm (range 00-07) represents the total channel numbers you
want to read the counter value.
(cr) is the terminating character, carriage return (0Dh).

Response

>aa(data) 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 address does not exist.
> delimiter indicating a valid command was received.
? delimiter indicating the command was invalid.
(data) is the counter value read.
(cr) is the terminating character, carriage return (0Dh).

Example

Command: $01JCFFFF0001(cr)
Response: >010000000A(cr)
The command requests the module at address 01h to return
count value from channel 0. (the first read channel is 0,
represent by “00”, and only one channel is read)
That module return the count value 0000000A(h) from
channel 0.

Example Command:

$01JCFFFF0C02(cr)

Response: >010000000A00000001(cr)
The command requests the module at address 01h to return
count value from channel 12 and 13. (The first read channel
is 12, represent by “0C”, and two channels are read)

Advertising