o<retractatc> sub

M65 P0 ; Turn off carousel out solenoid
M64 P1 ; Move Carousel IN

M66 P0 L3 Q5 ; check carousel in position sensor
o100 if [#5399 LT 0]
    M65 P1 ; turn off the solenoid to send atc home
    (abort, Failed to send carousel home) ; abort if the sensor does not activate in 5 seconds
o100 endif
M65 P1

o<retractatc> endsub [1]

M2
