Campbell Scientific LR4 Four Channel Latching Relay Module User Manual
Page 12

LR4 Four Channel Latching Relay Module
 
SDI-12 Command 
Command 
Function/Description 
 
Values Returned 
aMC! 
aMCn! 
Same as aM!
aC! Concurrent
Measurements
Status All 4 Relays - 0 or 1 
State 
R1, R2, R3, R4 (4 
values) 
aCn!
Concurrent
Measurements
Same as M1 – M8
Output is the 
Same as M1 – M8 
aCC! 
aCCn! 
Concurrent Measurement 
Commands with Checksum. 
See aM and aM1- aM8 
Output is the same 
as 
aM, aM1-aM8 
Checksum is added 
aD0!
Send Data
Dependent upon 
command Sent 
aV! Verification
command
S1,S2,V,WD
S1 = BootRom 
Signature 
S2 = Firmware 
Signature 
V = Supply 
Voltage 
Note1
WD = Watch Dog 
Errors 
aI! Send
Identification
013CAMPBELL 
LR4 2.0SN 
SN = Serial number 
(5 digits) 
?! Address
Query
a
aAb!
Change Address command
b is the new address
aXR;0,R1,R2,R3,R4!
Extended 
command 
Sets Values of All 4 Relays to 
either 0 or 1 state 
Where R1 is 0 or 1 for Relay #1
Where R2 is 0 or 1 for Relay #2
Where R3 is 0 or 1 for Relay #3
Where R4 is 0 or 1 for Relay #4 
a 
Address is returned 
with a value of 1. 
aXR;N,V! 
Extended 
command 
Set the State of an Individual 
Relay. 
N is 1-4 corresponding to 
Relays #1 to #4, 
V is 0 or 1 state 
a 
Address is returned 
with a value of 1. 
aR0!
Same as aM!
Same as aM! 
command 
aR1! to aR8!
Same as aM1! to aM8!
Same as M 
commands 
 
Where a = address of SDI-12 device. 
Where n = numbers 1 to 9 
6
