Bringing the Benefits of Real-Time Data Collection to the World
Sutron Corporation, Tel: 703-406-2800 http://www.sutron.com
To set slope to 2.4 and leave all other parameters unchanged (default if never programmed), use
1XP4+X+2.4!
To configure M4 to measure period with an internal pull-up and all other parameters set to factory
default, use two commands
1XP4+FD! followed by 1XP4+X+X+X+X+H! or one command
1XP4+1.1+1+0+D+H+FD! if you need to specify parameters before input-type
In the example where all the parameters are „X‟ except for the 2
nd
parameter, the „X‟ means “leave
the parameter unchanged” (factory default in this example).
1XP4+X+2.4+FD! will leave the pulse wait timeout unchanged (default if never programmed), sets
slope to 2.4 and puts factory-default values for all the remaining parameters
Verification and Reading current Set-up
There are 2 options to read set-up
1.
aXPm (1XP4! in our examples) command which returns
a+s+o+p+t+v+i<CR><LF> or
a+NC<CR><LF> if Mm is not set to measure Time-period.
2.
aXGm (1XG4) command if you are not sure whether Mm measures Time-period or something else.
Refer appendix A for description on XGm command.
Quadrature Shaft Encoder Measurement
To measure Quadrature Counts (such as from Quadrature shaft encoder), connect the two Quadrature output
lines to channel DIN and AN4 and issue the SDI-12 extended command
aXQm+FD!
Where,
a: SDI-12 -address of module
m: Measurement number (M command number : 1…9)
FD: Instructs module to assume factory defaults (Offset: 0.00, Scale-factor: 0.01, Measurement-time: 0)
or,
aXQm+o+s+t!
Where,
a: SDI-address of module
m: Measurement number (M command number : 1…9)
o: Offset. (Used to set current level)
s: Scale factor. (Plus sign before s can be a minus also depending upon required shaft direction)
t: Measurement-time in seconds. (Setting t to 1 or more will invoke averaging, see below for details)
For example, to configure the M4 to measure level with factory default parameters, use
1XQ4+FD!
this will configure the M4 command in the module at SDI-12 address „1‟ to return current level with a
resolution of 0.01ft (assuming wheel of 1-foot in circumference with 100 counts per rotation) and current-
level as reference or zero reading point.