XRF Inlet 2 Commands
Last update: 22 Feb 2000
file: xinlet2.html
Commands:
- all commands preceded by # and terminated with CR (ENTER)
- responses are terminated by CRLF
- Note: for power controlling commands, 0 = ON and 1 = OFF
C - Close inlet
- responds with 0
- Note: test with STAT command for completion
H - request HELP menu
K - Kill inlet motor power
- responds with 1
- Note: stops the motor immediately
M - Motor commands (direct control)
- MEN[=0,1] - request current status or power ON/OFF motor
- eg: MEN=0 starts motor
- returns current setting (i.e. 0 or 1) after request or set
- MDIR[=0,1] - request current status or set direction of motor
- eg: MDIR=0 sets motor direction CW
- returns current setting (i.e. 0 or 1) after request or set
- MLIM[0,1] - request current status of limit switch 0 or 1
- eg: MLIM0 request limit switch 0 status (1 = activated, i.e. at limit)
- switch 0 indicates inlet closed status, switch 1 indicates inlet open status
O - Open inlet
- responds with 0
- Note: test with STAT command for completion
STAT - request HEX status byte
- status bits:
- bit 0 - Motor Direction - 0 = CW
- bit 1 - Motor Enable - 0 = ON
- bit 2 - Motor Main Power (redundant - set to 0 on power up)
- bit 3 - unused - always 1
- bit 4 - CW limit switch - 1 = activated (inlet closed)
- bit 5 - CCW limit switch - 1 = activated (inlet open)
- bit 6 - unused - always 1
- bit 7 - unused - always 1
- Useful status return values:
- C9 - opening
- E9 - open
- C8 - closing
- D8 - closed
- Example: returns CB - not closed or open; stopped midway by K command while opening