</ LATCH «latch»> </ UNLATCH «latch»>
Set or remove a latch¶
Serial command(s) to set or remove a latch.
Command(s)¶
</ LATCH «latch»>Set pin latch</ UNLATCH «latch»>Remove pin latch
Parameters¶
- latch: Required identifier of the Sensor (0-255)
Response¶
TODO MEDIUM - Responses
Notes¶
TODO LOW - Notes
Also refer to the EXRAIL Sensor commands:
JMRI_SENSOR(vpin [,count])- Creates<S>type sensors visible to JMRIAT( vpin )- Causes a sequence to wait until a sensor is active/triggeredAFTER( vpin )- Causes a sequence to wait until after a sensor has been triggeredATTIMEOUT( vpin, timeout_ms )- Causes a sequence to wait until either a sensor is active/triggered, or if the timer runs outIF( vpin )- If sensor activated or latched, continueIFNOT( vpin )- If sensor NOT activated and NOT latched, continueIFTIMEOUT- Tests if “timed out” flag has been set by an ATTIMEOUT() sensor reading attemptATGTE( vpin, value )- Waits for an analog pin to reach a valueATLT ( vpin, value )- Waits for an analog pin to go below a valueIFGTE( vpin, value )- Test if analog pin reading is greater than or equal to valueIFLT( vpin, value )- Test if analog pin reading is less than valueATTIMOUT1 ( vpin, value )- TBAATTIMOUT2 ( vpin, value )- TBADRIVE ( vpin )- TBALATCH( vpin )- Latches a sensor onUNLATCH( vpin )- Remove LATCH on sensorONBUTTON( vpin )- Event handler for debounced button pressesONSENSOR( vpin )- Event handler for sensors
Examples¶
Example Commands¶
- TODO LOW - Example Commands
Example Responses:¶
- TODO LOW - Example Responses