B&B Electronics ADAM-6066 - Manual User Manual

Page 151

Advertising
background image

141

Chapter 6

#aaDnd
Name

Set Digital Output

Description Set the digital output status in ADAM-6000 analog input

module.

Syntax #aaDnd(cr)

# is a delimiter character.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of the ADAM-6000 module to be read.
(Always 01)
D represents the digital output setting command.
n (range 0-1) represents the specific channel you want to set
the output status.
d (range 0-1) represents the status you want to set to the
specific channel
(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 address does not exist.
! delimiter indicating a valid command was received.
? delimiter indicating the command was invalid.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of an ADAM-6000 module.
(cr) is the terminating character, carriage return (0Dh)

Example

command: #01D01(cr)
response: !01
The command set digital channel 0 "ON” status
for the specific module at address 01h.

Advertising