27 |
P a g e
Example:
Option V h - set to verbose mode, lower case hexadecimal output
The response from the Option command is a summary the current settings. Entering the O command with no
parameters returns the current settings.
8.2.1
Verbose Mode
The Verbose mode adds formatting characters to command responses. Commas are inserted between each
field and each record is enclosed in [ ] brackets.
8.2.2
Hex / hex / Decimal option
The Hex / hex and Decimal option determines how numeric data is displayed if not specifically designated
as a
float, integer, long
or
string
value.
When entering data a ‘0x’ indicates a hex value.
8.2.3
I2C Address
The IF-006 defaults to using I2C address 0x68.
8.2.4
Bus Speed
The I2C bus speed defaults to 40 kb/second, suitable for up to 5-meter cable lengths.
Option Verbose
Verbose, Hex mode, i(ignore INTR), I2C Address: 0x68 @ 50 kbp, Modbus Address: 0x01
// Read current sensor readings, display as 4 floats
R 0x3c 4f
[Dev: 104 Reg: 060 Cnt: 016 -> 23.1, 50.1, 984.0, 0.0 ]
// Force failure by disconnecting device
R 0x3c 4f
[Dev: 104 Reg: 060 E_NAK (009)
O v
verbose, Decimal mode, n(INTR ignored), I2C Address: 0x68 @ 50 kbp, Modbus Address: 0x01
R 0x3c 4f
23.1, 49.8, 983.9, 0.0
R 0x3c 4f
E_NAK (009)
Option
Verbose, Hex mode, Ignore INTR, I2C Addr: 0x68 @ 50 kbp, Modbus Addr: 0x01