Team 3
After a million iterations, Task 2 complete!
https://www.youtube.com/watch?v=bEVqJ-uPEHY
Code
Program
Init Variables
BeforeStart
Script: accessor_capt.script
socket_close("stream")
socket_open("127.0.0.1",63351,"stream")
var_2≔get_actual_tcp_pose()
MoveJ
var_2
Robot Program
Loop
'Write robot program here.'
Call SubP_team_3_x_t
Wait: 0.01
Thread_1
sensor_data≔socket_read_ascii_float(6,"stream")
If sensor_data[0] ≥6
Fx≔sensor_data[1]
Fy≔sensor_data[2]
Fz≔sensor_data[3]
Mx≔sensor_data[4]
My≔sensor_data[5]
Mz≔sensor_data[6]
Else
Fx≔0.0
Fy≔0.0
Fz≔0.0
Mx≔0.0
My≔0.0
Mz≔0.0
SubP_rq_set_zero
rq_set_zero()
SubP_rq_print_firmware_version
rq_print_firmware_version()
SubP_rq_print_prod_year
rq_print_prod_year()
SubP_rq_print_serial_number
rq_print_serial_number()
SubP_rq_print_version
rq_get_version()
SubP_team_3_x_t
MoveJ
Waypoint_1
Gripper Open
Camera Locate
MoveL
Waypoint_2
Waypoint_3
Gripper Close
Waypoint_2
MoveJ
Waypoint_5
Pallet
Pattern: Line
StartPos_1
EndPos_1
PalletSequence
Approach_1
PatternPoint_1
Wait: 1.0
Loop Fz>-3
Waypoint_4
Waypoint_7
'Waypoint_6'
'If My>10'
Loop Mx>-.5
Waypoint_6
sync()
'Waypoint_7'
'Waypoint_8'
Gripper Open
MoveJ
Waypoint_9
Challenge with increased difficulty: Pick & Place with insertion in jig
Provided material :
- Multiple PCBs
- PCB test jig
Goal: Locate the PCB using vision, pick and insert inside the test jig.Hint: Use the sensor signal to guide the jig insertion.
Good luck!