Advertisement
Guest User

robo_prg_01

a guest
Apr 25th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 0.61 KB | None | 0 0
  1. Waiti Input_1,On //press button to turn can crusher on
  2. Label Start
  3. Pmove <home>
  4. Pmove Point_1 //become aligned with feeder
  5. Waiti Input_10,On //wait for limit switch
  6. Pmove Point_2 //get to position to pick up can
  7. Grasp
  8. Pmove Point_3 //lifted from can grabbing position
  9. Pmove Point_4 //hover over dropping position
  10. Release
  11. Pmove Point_5 //move to a safe distance from pistons
  12. Writeo Output_2,On //big piston crushes can
  13. Delay 3
  14. Writeo Output_2,Off //big piston releases
  15. Delay 1
  16. Writeo Output_1,On //small piston pushes can into slot
  17. Delay 2
  18. Writeo Output_1,Off //small piston releases
  19. Delay 1
  20. Branch Start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement