Software Commands
EnBOX User’s Manual
16
2.
Software Commands
This chapter describes the software commands used for configuration of the
EnBOX unit and for data readout from encoders. For more information about the
Ethernet settings see the Ethernet Communication chapter.
2.1
Command Syntax
The command syntax used by the EnBOX protocol is described in the
following sections.
Commands must be sent in ASCII format and are composed by a
“command
field”
and one, two or none
“parameter field”
, separated by a colon (
‘:’
or
‘0x3A’
in
hexadecimal notation). The number of
“parameter fields”
depends on the specific
command. Commands are
NOT case sensitive
and therefore the command string can
be sent either using uppercase or lowercase characters (conversion to uppercase
characters is performed internally). Each instruction must be terminated with a
‘
carriage return\line feed
’ sequence ‘
\r\n
’ (or
‘0x0D 0x0A’
in hexadecimal notation or
commonly CRLF).
Command Example
:
ENC_SEL
:
ABS
\r\n
•
“ENC_SEL”
is the command field;
•
‘:’
is the parameter’s separation character;
•
‘ABS’
is the first parameter field;
•
‘\r\n’
are the termination sequence of the command.