Conveyor Pick
A sensor detects the workpiece. Only then does the pick-and-place sequence continue.
How the demo works
- Open the scenario and start the program.
- The program waits at WAIT FOR $IN[1].
- Press “Move conveyor to sensor”. The part moves to the sensor and $IN[1] becomes TRUE.
- The robot moves to pick, grips with $OUT[1], transports and releases.
DEF ConveyorPick( )
$TOOL = TOOL_DATA[1]
BAS(#INITMOV,0)
BAS(#VEL_PTP,18)
BAS(#VEL_CP,0.12)
$OUT[1] = FALSE
PTP HOME
WAIT FOR $IN[1] == TRUE
PTP P_PICK_APPR
LIN P_PICK
$OUT[1] = TRUE
WAIT SEC 0.30
LIN P_PICK_APPR
PTP P_PLACE_APPR
LIN P_PLACE
$OUT[1] = FALSE
WAIT SEC 0.30
LIN P_PLACE_APPR
PTP HOME
END