
Appendix B. Entering SDI-12 Commands/Changing Settings
B.1 Changing Settings
B.1.1 Query/Set the Address
Valid addresses are 0 to 9; A through Z; and a through z. The factory default
address is set to 0. The address can be verified by sending the sensor the
Address Query command (see Table B-2).
TABLE B-2. SDI-12 Command for Querying the Address
Initial Command Response
?!
a<cr><If>
Where a is the current address of the sensor.
Change the sensor’s address by sending the sensor the aAb! command, where a
is the original address and b is the new address. Table B-3 shows an example
of the command and response for setting the address.
TABLE B-3. Example of Setting Address
Initial Command Response
0A1!
Where 0 is the original address
and 1 is the new address
1<cr><If>
The new address (1) is set in response.
B.1.2 Set Units
The distance measurement can be reported in feet (default) or meters. Change
the units by first using the aXSU+n! command (where n=1 (feet) or 0 (meters))
followed by the aXGU! (Get Units) command. Table B-3 shows an example of
the command and response for changing this setting.
TABLE B-4. Example of Setting Units
Initial Command Response
0XSU+0!
Where the first zero is the sensor
address and the second zero sets the
units to meters
00011<cr><If>
Where (from left to right),
0—sensor’s address;
001—the amount of time (in seconds)
that you must wait before sending
another command;
1—the number of values that will be
placed in the buffer.
Subsequent Command Response
0XGU!
Where zero is the sensor address.
This is the get units command.
0+0<cr><If>
Where the first zero is the sensor
address and the second zero indicates
that the units are now meters
B-3
Commenti su questo manuale