26 |
P a g e
8.1.2
Alternate Address {Add}
The I2C address used to access the Smart Sensor device defaults to 0x68, unless overwritten by the Options
command. The address may be further overwritten in each command by enclosing the address in { } bracket.
8.1.3
Numeric formats
Data may be entered or displayed as hexadecimal, decimal or float values. The standard output shows data
in decimal or hex format depending on the Verbose H/h/D mode setting, which may be overwritten using
formatting characters. The following formatting characters are accepted.
Data Type
Suffix
Example (assume hex option selected)
Byte
<none, default>
R 0x68 -> display single byte value
16-bit integers
i
R 0x68 20 2 i -> result displayed as 0x1234
32-bit integers
l (lower case ‘L’)
R 0x68 20 2 l -> result displayed as 0x12345678
Floats
f.n (n == precision)
R 0x68 0x3c 4 f.3
result displayed as 12.345,
precision is optional and defaults to 1 digit.
Strings
S/s
R 0xe0 s
result displays the user defined device
name located at 0xe0
W 0xe0 “My Name”
will write a new device name
to the string. Be cautious not to exceed the maximum
string lengths.
8.1.4
Invalid Commands
Since the first character of the serial record is used to determine the command and all other characters are
treated as Modbus Start of Frame (‘:’) or address values no interpretation is made of characters other than
those shown in the Help summary and no error reporting will be generated. All commands must be entered
as uppercase characters, and only the first character of commands or keywords are required.
8.1.5
Password Protection
If the Status information indicates that a password is required all accesses to the attached probed data will
be blocked. Passwords may contain up to 16 characters. Use the
Interface
command to enter the correct
UPW password:
I P = xxxx
8.2
Option Command
The Option command allows configuring the IF-006 device to use default values to simplify the user interface by
providing extended formatting options. Changes to the Options settings are retained in internal Flash memory.
O(ptions) <V/v(erbose)> <H/h(ex)/D(ecimal)>
Characters shown in parenthesis (..) are optional. To Enable an option, specify the name with an upper-case
character. Multiple options may be specified in the same command line in any order. To disable the option, specify
the name with a lower-case character.
V(erbose)
– turn on Verbose mode
v(erbose)
– turn off Verbose mode
H(ex)
– data values are output in hexadecimal Upper case ie: 0x1AC7
h(ex)
– data values are output in hexadecimal Lower case ie: 0x1ac7
D(ecimal)
– data values are output in decimal format ie: 6855
Multiple Options may be combined into a single command line.