lesson topic: handshaking process -narrated version-
TRANSCRIPT
![Page 1: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/1.jpg)
Lesson Topic: Handshaking Process-narrated version-
![Page 2: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/2.jpg)
HandshakingHandshaking
The process of interfacing and coordinating the milling machine and the robot arm to work together to manipulate and manufacture a part.
![Page 3: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/3.jpg)
What you should know...
Programming and Control of the Robot Arm
Programming and Control of the Milling Machine and Vice
![Page 4: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/4.jpg)
Objectives
![Page 5: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/5.jpg)
Identify G&M codes used to sense and control inputs/outputs (CNC)
You will be able to...
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
![Page 6: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/6.jpg)
G&M Codes
![Page 7: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/7.jpg)
G-codes wait for a changeG25 - Wait until TTL output #1 goes onG26 - Waits until TTL output #1 goes offG35 - Wait until TTL output #2 goes onG36 - 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.
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.
![Page 8: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/8.jpg)
M25 - Sets input #1 to offM26 - Sets input #1 to onM35 - Sets input #2 to offM36 - Sets input #2 to on
M-codes cause a change
These M-codes are used to turn the Robot Arm on and off.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”.
N10 M25 ; Turn input #1 to offN11 G04 F2 ; 2 second pauseN12 M26 ; Turn input #1 to onN13 G25 ; Wait for output #1 on
Example...
![Page 9: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/9.jpg)
Scorbase Programming
![Page 10: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/10.jpg)
If Input 1 on jump to Some_LabelIf Input 1 off jump to Some_Label
Decision Statements
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.
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.
![Page 11: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/11.jpg)
Turn on output 1Turn off output 1
Process Statements
These statements are used to manipulate the CNC by controlling the output.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”.
26: Turn on output 128: WaiT 10 (10 ths of seconds)30: Turn off output 132: WAIT_2
Example...
![Page 12: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/12.jpg)
HandshakingThe
Process
![Page 13: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/13.jpg)
![Page 14: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/14.jpg)
#3
#3
“home” position #1
#1
#2
#2
#4
#4
#6
#6
#5
#5
![Page 15: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/15.jpg)
#6
#6
#4
#4
#5
#5
#3
#3
#2
#2
“home” position #1
#1
![Page 16: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/16.jpg)
Individual Steps
![Page 17: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/17.jpg)
Step #1 …CNC to “Load”
![Page 18: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/18.jpg)
Step #2 …Loading the Part
![Page 19: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/19.jpg)
Step #3 …Milling the Part
![Page 20: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/20.jpg)
![Page 21: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/21.jpg)
Step #4 …Unloading the Part
![Page 22: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/22.jpg)
How they “Talk”
![Page 23: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/23.jpg)
Flowchart
G&M Code
Scorbase Program
![Page 24: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/24.jpg)
“State of Activity”
Input #1 Output #1
(default state)ON
![Page 25: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/25.jpg)
Input #1 Output #1
“State of Activity”
2: WAIT_1 3: IF Input #1 off jump to START_1 6: Jump to WAIT_1
7: START_1
Scorbase...
(default state)ON
![Page 26: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/26.jpg)
Input #1
“State of Activity”
N1 M5 ; Turn Spindle OffN2 G90 ; Absolute Coordinate ModeN3 G20 ; Inch Mode N4 M10 ; Open the Vise
CNC Mill...
ON
Step #1…CNC to “Load”
Output #1
![Page 27: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/27.jpg)
ONOFF
Input #1 Output #1
“State of Activity”
N4 M10 ; Open the Vise N5 G00 X10.2003 Y2.7850 Z1.3 ; LoadN6 M25 ; Turn Input #1 OffN7 G04 F2 ; 2 Second Pause
Step #1…CNC to “Load”
N4 M10 ; Open the Vise N5 G00 X10.2003 Y2.7850 Z1.3 ; LoadN6 M25 ; Turn Input #1 OffN7 G04 F2 ; 2 Second Pause
CNC Mill...
![Page 28: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/28.jpg)
OFF
Input #1 Output #1
“State of Activity”
2: WAIT_1 3: IF Input #1 off jump to START_1 6: Jump to WAIT_1
7: START_1
Scorbase...
![Page 29: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/29.jpg)
2: WAIT_1 3: IF Input #1 off jump to START_1 6: Jump to WAIT_1
7: START_1
Input #1 Output #1
“State of Activity”
10: Turn off output 113: Go to Position 1 fast 14: Open Gripper 15: Go to Position 2 fast
Scorbase...
OFFONOFF
Step #2…Loading the Part
![Page 30: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/30.jpg)
ONOFF
Input #1 Output #1
OFF
N7 G04 F2 ; 2 Second Pause N8 M26 ; Turn Input #1 OnN9 G25 ; Wait for Output #1 On
CNC Mill...
ON
N7 G04 F2 ; 2 Second Pause N8 M26 ; Turn Input #1 OnN9 G25 ; Wait for Output #1 On
Step #2…Loading the Part
“State of Activity”
![Page 31: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/31.jpg)
ON
Input #1 Output #1
“State of Activity”
16: Go Linear to Position 3 speed 517: Close Gripper 18: Go Linear to Position 2 fast
19: Go Linear to Position 4 fast
Scorbase...
OFF
20: Go Linear to Position 5 fast21: Go Linear to Position 6 speed 5 22: Open Gripper 23: Go Linear to Position 5 fast
24: Go Linear to Position 4 fast26: Turn on output 1 28: WaiT 10 (10 ths of seconds)
ON
Step #2…Loading the Part
24: Go Linear to Position 4 fast26: Turn on output 1 28: WaiT 10 (10 ths of seconds)
![Page 32: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/32.jpg)
Input #1
“State of Activity”
CNC Mill...
N7 G04 F2 ; 2 Second Pause N8 M26 ; Turn Input #1 OnN9 G25 ; Wait for Output #1 On
ONON
Output #1
Step #3…Milling the Part
![Page 33: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/33.jpg)
ON
28: WaiT 10 (10 ths of seconds)30: Turn off output 1 32: WAIT_2
33: If Input 1 off jump to START_2
ONON
Input #1
Scorbase...
“State of Activity”
30: Turn off output 1 32: WAIT_2
33: If Input 1 off jump to START_2 35: Jump to WAIT_2
Step #3…Milling the Part
OFF
Output #1
![Page 34: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/34.jpg)
ON
Input #1 Output #1
“State of Activity”
N10 M11 ; Close the Vise N11 G00 X0 Y0 Z.25 ; Cutter Above BlockN12 M3 S3000 ; Spindle OnN13 G01 Z-.02 F5 ; Milling the Block
CNC Mill...
N14 G01 Y2 F20N15 X3N16 Y0 N17 X0
N18 G00 Z1N19 M47 ; Recycle to Beginning
N1 M5 ; Turn Spindle Off
OFF
Step #3…Milling the Part
N2 G90 ; Absolute Coordinate ModeN3 G20 ; Inch ModeN4 M10 ; Open ViseN5 G00 X10.2003 Y2.7850 Z1.3 ; Unload
![Page 35: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/35.jpg)
ON
Input #1 Output #1
“State of Activity”
CNC Mill...
OFF
N6 M25 ; Turn Input #1 OffN7 G04 F2 ; Pause for 2 SecondsN8 M26 ; Turn Input #1 OnN9 G25 ; Wait for Output #1 On
OFF
N6 M25 ; Turn Input #1 OffN7 G04 F2 ; Pause for 2 SecondsN8 M26 ; Turn Input #1 OnN9 G25 ; Wait for Output #1 On
Step #3…Milling the Part
![Page 36: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/36.jpg)
OFF
Output #1
“State of Activity”
Scorbase...
32: WAIT_2 33: If Input 1 off jump to START_2
35: Jump to WAIT_2 36: START_2
OFF
Input #1
Step #4…Unload the Part
![Page 37: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/37.jpg)
Input #1 Output #1
OFF
CNC Mill...
“State of Activity”
N6 M25 ; Turn Input #1 OffN7 G04 F2 ; Pause for 2 SecondsN8 M26 ; Turn Input #1 OnN9 G25 ; Wait for Output #1 On
Step #4…Unload the Part
OFFON
N6 M25 ; Turn Input #1 OffN7 G04 F2 ; Pause for 2 SecondsN8 M26 ; Turn Input #1 OnN9 G25 ; Wait for Output #1 On
![Page 38: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/38.jpg)
ON
Input #1
“State of Activity”
OFFON
Step #2…Loading the Part
Scorbase...
36: START_2 40: Go Linear to position 5 fast 41: Go Linear to position 6 speed 5
42: Close Gripper
Step #4…Unload the Part
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
51: Turn on output 153: WaiT 10 (10 ths of seconds) 49: Jump to WAIT_1
Output #1
![Page 39: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/39.jpg)
Keep it SafeIdeas to remember
![Page 40: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/40.jpg)
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.
![Page 41: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/41.jpg)
Position the Robot Arm in a location where the CNC safety shield cannot contact it during the movements of the mill table.
![Page 42: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/42.jpg)
ATTENTIONATTENTIONATTENTIONRun the Robot program first…before you start the CNC program !!!
![Page 43: Lesson Topic: Handshaking Process -narrated version-](https://reader035.vdocuments.us/reader035/viewer/2022081514/56649c765503460f94929cfa/html5/thumbnails/43.jpg)
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!!!