Response Format - Brainboxes ED-549 Product Manual

Ethernet to analogue io
Hide thumbs Also See for ED-549:
Table of Contents

Advertisement

Checksum: An optional two character checksum denoted [CS] can be included immediately before the
terminating (CR). The purpose of the checksum is to help the PC and devices detect the communication errors
that have corrupted the command strings. When the checksum is enabled all commands from the PC to the
devices and all responses from the devices must contain a valid checksum otherwise the data is discarded.
When the checksum is enabled, commands sent without a valid checksum will be ignored by the devices and
the device will not respond to the host PC. By default the checksum is turned off. To turn checksum on, you
must configure the device via its webpage using a browser.
In the following sections of this chapter, those parts of the command string in lower case are parameters that
the user must enter. Those parts of the command string in capitals, or which are numbers or punctuation
symbols, are to be used literally in the command without replacement by the user.
Additionally, any parts of the command string that are in square brackets are optional. The checksum is an
example of this as it is only required when the checksum is enabled in the firmware of the device.
Example Commands: Assuming that the checksum has not been turned on by the user, one of the simplest
commands is:
$aaM(CR)
This command reads the status of the digital input port. Assuming the ED devices address is
then the command the user would issue would be:
$01M(CR)
The response to this command from an ED-549 device at factory default settings would be:
!01ED-549(CR)

Response Format

The response received from the device will depend on the ASCII command that has been sent. The response
for each command is detailed in the
!
Delimiter
Address
* Only applicable for certain commands that return data.
** Optional parameter for the command.
Prefix or Delimiter: Each ASCII response starts with a single character prefix or delimiter. The prefix will be one
of the following three characters:-
>
Greater than sign, ASCII value hex 0x3E
!
Exclamation sign, ASCII value hex 0x21
?
Question mark sign, ASCII 0x3F
Address: The address is a two character field giving the hexadecimal address of the device (
01
address is
. The address field is written as aa in the examples that follow.
Data: The data being sent from the device in response to the command sent.
Checksum: Optional 2 character checksum.
Ethernet Analogue DIO
Product Manual V1.3
Command List
aa
(Data)
Data*
© Copyright Brainboxes Ltd
Section.
[CS]
Checksum**
Carriage Return
01
aa=01
, that is
(CR)
00-FF
). The default
Page 54 of 100
,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ed-560

Table of Contents