1 / 43

Lesson Topic: Handshaking Process

Lesson Topic: Handshaking Process. -narrated version-. Handshaking. Handshaking. The process of interfacing and coordinating the milling machine and the robot arm to work together to manipulate and manufacture a part. What you should know. Programming and Control of the Robot Arm.

Download Presentation

Lesson Topic: Handshaking Process

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lesson Topic: Handshaking Process -narrated version-

  2. Handshaking Handshaking The process of interfacing and coordinating the milling machine and the robot arm to work together to manipulate and manufacture a part.

  3. What you should know... Programming and Control of the Robot Arm Programming and Control of the Milling Machine and Vice

  4. Objectives

  5. You will be able to... Identify G&M codes used to sense and control inputs/outputs (CNC) Identify process and decision statements associated with inputs/outputs (Robot Arm) Explain how signals are interpreted between the CNC and the Robot Arm Give examples of Robot Arm and CNC positioning for safe operations

  6. G&M Codes

  7. The actions of the CNC mill can be controlled by the state of the outputs…as opposed to the Robot Arm, whose actions can be controlled by the state of the inputs. G-codes wait for a change G25 - Wait until TTL output #1 goes on G26 - Waits until TTL output #1 goes off G35 - Wait until TTL output #2 goes on G36 - Waits until TTL output #2 goes off These G-codes behave like decision statements. If the condition is met, the program will drop to the next line. If the condition is not met, the program will wait until the proper output state is changed.

  8. Typically used in combination with a pause in between to “unlock” the robot’s input “door”…give the robot time to act…and then “lock” the input “door”. Example... N10 M25 ; Turn input #1 to off N11 G04 F2 ; 2 second pause N12 M26 ; Turn input #1 to on N13 G25 ; Wait for output #1 on M-codes cause a change M25 - Sets input #1 to off M26 - Sets input #1 to on M35 - Sets input #2 to off M36 - Sets input #2 to on These M-codes are used to turn the Robot Arm on and off.

  9. Scorbase Programming

  10. If the condition is not met, the program will continue to loop until the proper input is changed. The actions of the Robot Arm can be controlled by the state of the inputs…as opposed to the CNC Mill, whose actions can be controlled by the state of the outputs. Decision Statements If Input 1on jump to Some_Label If Input 1off jump to Some_Label These decision statements are used mostly in “dead” loops. If the condition is met, the program will jump to a new location and start a series of actions.

  11. Typically used in combination with a pause in between to “unlock” the CNC’s output “door”…give the CNC time to act…and then “lock” the output “door”. Example... 26: Turn on output 1 28: WaiT 10 (10 ths of seconds) 30: Turn off output 1 32: WAIT_2 Process Statements Turn on output 1 Turn off output 1 These statements are used to manipulate the CNC by controlling the output.

  12. The Handshaking Process

  13. #1 #4 #5 #2 #6 #3 “home” position #1 #4 #5 #2 #6 #3

  14. #1 #4 #5 #2 #6 #3 “home” position #1 #4 #5 #2 #6 #3

  15. Individual Steps

  16. Step #1 …CNC to “Load”

  17. Step #2 …Loading the Part

  18. Step #3 …Milling the Part

  19. Step #4 …Unloading the Part

  20. How they “Talk”

  21. G&M Code Flowchart Scorbase Program

  22. ON (default state) “State of Activity” Input #1 Output #1

  23. ON (default state) “State of Activity” Input #1 Output #1 Scorbase... 2: WAIT_1 3: IF Input #1 off jump to START_1 6: Jump to WAIT_1 7: START_1

  24. Step #1…CNC to “Load” “State of Activity” Input #1 Output #1 ON CNC Mill... N1 M5 ; Turn Spindle Off N2 G90 ; Absolute Coordinate Mode N3 G20 ; Inch Mode N4 M10 ; Open the Vise

  25. Step #1…CNC to “Load” “State of Activity” Input #1 Output #1 ON OFF CNC Mill... N4 M10 ; Open the Vise N5 G00 X10.2003 Y2.7850 Z1.3 ; Load N6 M25 ; Turn Input #1 Off N7 G04 F2 ; 2 Second Pause N4 M10 ; Open the Vise N5 G00 X10.2003 Y2.7850 Z1.3 ; Load N6 M25 ; Turn Input #1 Off N7 G04 F2 ; 2 Second Pause

  26. “State of Activity” Input #1 Output #1 OFF Scorbase... 2: WAIT_1 3: IF Input #1 off jump to START_1 6: Jump to WAIT_1 7: START_1

  27. Step #2…Loading the Part “State of Activity” Input #1 Output #1 ON OFF OFF Scorbase... 2: WAIT_1 3: IF Input #1 off jump to START_1 6: Jump to WAIT_1 7: START_1 10: Turn off output 1 13: Go to Position 1 fast 14: Open Gripper 15: Go to Position 2 fast

  28. Step #2…Loading the Part “State of Activity” Input #1 Output #1 ON OFF ON OFF CNC Mill... N7 G04 F2 ; 2 Second Pause N8 M26 ; Turn Input #1 On N9 G25 ; Wait for Output #1 On N7 G04 F2 ; 2 Second Pause N8 M26 ; Turn Input #1 On N9 G25 ; Wait for Output #1 On

  29. Step #2…Loading the Part “State of Activity” Input #1 Output #1 ON OFF ON Scorbase... 16: Go Linear to Position 3 speed 5 17: Close Gripper 18: Go Linear to Position 2 fast 19: Go Linear to Position 4 fast 20: Go Linear to Position 5 fast 21: Go Linear to Position 6 speed 5 22: Open Gripper 23: Go Linear to Position 5 fast 24: Go Linear to Position 4 fast 26: Turn on output 1 28: WaiT 10 (10 ths of seconds) 24: Go Linear to Position 4 fast 26: Turn on output 1 28: WaiT 10 (10 ths of seconds)

  30. Step #3…Milling the Part “State of Activity” Input #1 Output #1 ON ON CNC Mill... N7 G04 F2 ; 2 Second Pause N8 M26 ; Turn Input #1 On N9 G25 ; Wait for Output #1 On

  31. Step #3…Milling the Part OFF “State of Activity” Input #1 Output #1 ON ON ON Scorbase... 28: WaiT 10 (10 ths of seconds) 30: Turn off output 1 32: WAIT_2 33: If Input 1 off jump to START_2 30: Turn off output 1 32: WAIT_2 33: If Input 1 off jump to START_2 35: Jump to WAIT_2

  32. Step #3…Milling the Part “State of Activity” Input #1 Output #1 ON OFF CNC Mill... N18 G00 Z1 N19 M47 ; Recycle to Beginning N1 M5 ; Turn Spindle Off N2 G90 ; Absolute Coordinate Mode N3 G20 ; Inch Mode N4 M10 ; Open Vise N5 G00 X10.2003 Y2.7850 Z1.3 ; Unload N10 M11 ; Close the Vise N11 G00 X0 Y0 Z.25 ; Cutter Above Block N12 M3 S3000 ; Spindle On N13 G01 Z-.02 F5 ; Milling the Block N14 G01 Y2 F20 N15 X3 N16 Y0 N17 X0

  33. Step #3…Milling the Part “State of Activity” Input #1 Output #1 ON OFF OFF CNC Mill... N6 M25 ; Turn Input #1 Off N7 G04 F2 ; Pause for 2 Seconds N8 M26 ; Turn Input #1 On N9 G25 ; Wait for Output #1 On N6 M25 ; Turn Input #1 OffN7 G04 F2 ; Pause for 2 Seconds N8 M26 ; Turn Input #1 On N9 G25 ; Wait for Output #1 On

  34. Step #4…Unload the Part “State of Activity” Input #1 Output #1 OFF OFF Scorbase... 32: WAIT_2 33: If Input 1 off jump to START_2 35: Jump to WAIT_2 36: START_2

  35. Step #4…Unload the Part “State of Activity” Input #1 Output #1 OFF ON OFF CNC Mill... N6 M25 ; Turn Input #1 Off N7 G04 F2 ; Pause for 2 Seconds N8 M26 ; Turn Input #1 On N9 G25 ; Wait for Output #1 On N6 M25 ; Turn Input #1 Off N7 G04 F2 ; Pause for 2 Seconds N8 M26 ; Turn Input #1 On N9 G25 ; Wait for Output #1 On

  36. Step #2…Loading the Part Step #4…Unload the Part “State of Activity” Input #1 Output #1 ON OFF ON Scorbase... 51: Turn on output 1 53: WaiT 10 (10 ths of seconds) 49: Jump to WAIT_1 36: START_2 40: Go Linear to position 5 fast 41: Go Linear to position 6 speed 5 42: Close Gripper 43: Go Linear to position 5 fast 44: Go Linear to position 4 fast 45: Go Linear to position 2 fast 46: Go Linear to position 3 speed 5 47: Open Gripper 48: Go Linear to position 2 fast 49: Go Linear to position 1 fast 51: Turn on output 1

  37. Keep it Safe Ideas to remember

  38. Make sure you do not go beyond the CNC milling machine’s X-axis and Y-axis limits when setting the Load/Unload position. The robot should be programmed to load the part into the vise using a linear Z-axis motion.

  39. Position the Robot Arm in a location where the CNC safety shield cannot contact it during the movements of the mill table.

  40. ATTENTION ATTENTION ATTENTION Run the Robot program first…before you start the CNC program !!!

  41. Never have the CNC milling machine and the robot arm performing actual movements at the same time…keep your hands on the emergency stop switches when testing your programs!!!

More Related