12 |
P a g e
7
IF-006 Interface
The IF-006 interface allows the radio or USB interface to directly access the externally attached smart sensor register space.
If no smart sensor is attached attempts to access the smart sensor register space will return a or INVALID REGISTER
(Modbus interface). Refer to the Smart Sensor Interface specification for a complete description of the smart sensor register
space.
7.1
IF-006-1 USB (Serial) Packet Format
Communications to the IF-006 are based on Serial data frames. For serial terminal sessions and Modbus ASCII
interaction the ‘transaction’ ends on the receipt of a CR (0x0d) character. For Modbus RTU transactions the entire
transaction must adhere to the Modbus serial RTU time specifications.
The IF-006 uses the
first byte
of the transaction (Start of Frame character) to determine the type of transaction.
For the Modbus ASCII protocol the ascii ‘#’ character denotes the start of the frame. For the CLI interface the first
character denotes the operation to be performed as indicated in the table below. Any other byte value appearing
in the start of the frame is interpreted as a Modbus RTU Modbus device address. Note that this requires excluding
several Modbus addresses in the RTU mode, but in most cases, this will have no impact.
Refer to the Smart Sensor Command Line Interpreter documentation for further details on the interactive
command line mode commands.
SoF
Character
Hex
Interpretation
#
0x23
CLI Comment line (ignored)
:
0x3a
Start of Fame for Modbus ASCII frame
?
0x3f
CLI ‘Help’ command – display command / current state summary
C
0x49
CLI ‘Configure’ command – configure smart sensor device
I
0x4c
CLI ‘Interface’ command – configure interface device (IF-006)
O
0x4F
CLI ‘Options’ command – configuration options
R
0x52
CLI ‘Read’ command – Read any Smart Sensor register
T
0x54
CLI ‘Trigger’ command – trigger and event on smart sensor device
V
0x56
CLI ‘View’ command – view smart sensor data and status information
W
0x57
CLI ‘Write’ command – Write any Smart Sensor register
<any other>
<any
other>
Indicates Register address for a Modbus RTU frame.