Linx Technologies RXM-GPS-SG User Manual
Page 13
Page 25
Page 24
212 – ReadInput
The table below contains the values for the following example to read the state
of an input:
$PLSC,212,1*0C
The receiver outputs a response to this command. The table below contains the
response for the above command:
For some further examples of this command:
n Read that GPIO 1 is low
Input command: $PLSC,212,1*0C
Output response: $PLSR,212,1,0*01
n Read that GPIO 1 is high
Input command: $PLSC,212,1*0C
Output response: $PLSR,212,1,1*00
n Read that GPIO 1 is not an input
Input command: $PLSC,212,1*0C
Output response: $PLSR,212,1,2*03
Name
Example
Units
Description
MID
$PLSC,212
Message ID
GPIO
Number
1
Number of the GPIO line to read. Only
one line can be set at a time.
Checksum
*0C
End of message termination
Table 28: ReadInput Example
Name
Example
Units
Description
MID
$PLSR,212
Message ID
GPIO
Number
1
Number of the GPIO line to set. Only one
line can be set at a time.
State
0
0 = Low; 1 = High; 2 = the referenced
GPIO is not an input
Checksum
*01
End of message termination
213 – WriteOutput
The table below contains the values for the following example to write the state
of GPIO 1 to low:
$PLSC,213,1,0*11
The receiver outputs a response to this command. The table below contains the
response for the above command:
For some further examples of this command:
n Set GPIO 1 to low
Input command: $PLSC,213,1,0*11
Output response: $PLSR,213,1*1C
n Set GPIO 1 to high
Input command: $PLSC,213,1,1*10
Output response: $PLSR,213,1*1C
n GPIO 1 is not an output
Input command: $PLSC,213,1,1*10
Output response: $PLSR,213,0*1D
Name
Example
Units
Description
MID
$PLSC,213
Message ID
GPIO
Number
1
Number of the GPIO line to write. Only
one line can be set at a time.
State
0
State; 0 = Low; 1 = High
Checksum
*11
End of message termination
Table 30: WriteOutput Example
Name
Example
Units
Description
MID
$PLSR,213
Message ID
Valid
1
0: command invalid, 1: command valid
Checksum
*1C
End of message termination
Table 29: ReadInput Response Example
Table 31: WriteOutput Response Example