Homing Galils under SECI - ISISComputingGroup/ibex_developers_manual GitHub Wiki
Home methods
- Home call script
- None
- Home signal
- Reverse Limit
- Forward Limit
Home call script
- Send the script in the home call variable to the Galil, and
XQ
on a specified thread - Wait until
_XQ
for that thread is false - If motor is set to de-energise after move, send
MO
- Wait 0.6 seconds
- If apply home position is true, apply the home position
None
- Send
SH
andBG
- Wait for the move in progress to be false
- If there is a home offset,
PR
to the home offset * motor steps, sendSH
andBG
, wait for the move in progress to be false - Send
ST
- Wait for the move in progress to be false
- If motor is set to de-energise after move, send
MO
- Wait 0.6 seconds
- If apply home position is true, apply the home position
Home Signal
- Set speed to home speed
- Send
HM
,SH
andBG
- Wait for the move in progress to be false
- If there is a home offset,
PR
to the home offset * motor steps, sendSH
andBG
, wait for the move in progress to be false - Send
ST
- Wait for the move in progress to be false
- If motor is set to de-energise after move, send
MO
- Wait 0.6 seconds
- If apply home position is true and the stop code is 10 (Stopped after homing), apply the home position
Reverse Limit
- If the reverse limit is true,
JG
at home speed, sendSH
andBG
, wait until the limit switch is off,ST
, wait for move in progress to be false - Set
JG
to minus the home speed, sendSH
andBG
- Wait for the move in progress to be false
- If there is a home offset,
PR
to the absolute of the home offset * motor steps, sendSH
andBG
, wait for the move in progress to be false - Send
ST
- Wait for the move in progress to be false
- If motor is set to de-energise after move, send
MO
- Wait 0.6 seconds
- If apply home position is true, the forward limit is false, the reverse limit is true, and the stop code is 3 (Decelerating or stopped by reverse limit switch or soft limit BL), apply the home position
Forward Limit
- If the forward limit is true,
JG
at minus the home speed, sendSH
andBG
, wait until the limit switch is off,ST
, wait for move in progress to be false - Set
JG
to home speed, sendSH
andBG
- Wait for the move in progress to be false
- If there is a home offset,
PR
to the absolute of minus the home offset * motor steps, sendSH
andBG
, wait for the move in progress to be false - Send
ST
- Wait for the move in progress to be false
- If motor is set to de-energise after move, send
MO
- Wait 0.6 seconds
- If apply home position is true, the forward limit is true, the reverse limit is false, and the stop code is 2 (Decelerating or stopped by forward limit switch or soft limit FL), apply the home position