Contents
  1. I. Install the Gripper
  2. II. Create the Conveyor
  3. III. Create the Palletizing Base
  4. IV. Create the Robot System
  5. V. Configure the Simulation System
  6. Program
  7. Simulation Test

I. Install the Gripper

  1. Import an IRB2600 robot. I. Install the Gripper
  2. Move the gripper’s local coordinate origin to the center of its top surface (where it connects to the flange). I. Install the Gripper (2) I. Install the Gripper (3)
  3. Align the local coordinates of the gripper Smart Component with those of the robot’s end flange so that they coincide, preparing the gripper for installation in the next step. I. Install the Gripper (4)
  4. In the Layout menu, drag the gripper onto the IRB2600 robot to complete the installation. I. Install the Gripper (5)

II. Create the Conveyor

  1. Import the conveyor and set its position. II. Create the Conveyor
  2. Create the object to be palletized and move it to the beginning of the conveyor. II. Create the Conveyor (2) II. Create the Conveyor (3)
  3. Create a Smart Component to move objects on the conveyor. Add the following components. II. Create the Conveyor (4)
  4. Configure each component. II. Create the Conveyor (5)

II. Create the Conveyor (6) II. Create the Conveyor (7) II. Create the Conveyor (8) II. Create the Conveyor (9)

III. Create the Palletizing Base

III. Create the Palletizing Base

IV. Create the Robot System

IV. Create the Robot System IV. Create the Robot System (2) Under Options, select the following option. IV. Create the Robot System (3)

V. Configure the Simulation System

  1. In Simulation Setup, clear the checkbox next to the robot system. V. Configure the Simulation System

  2. Run the simulation until the block reaches the plane sensor, then stop the simulation and capture several target points. (The last two target points are used because the blocks have two placement poses during palletizing, so two target points are required.) V. Configure the Simulation System (2)

  3. Rotate the third target point by -90 degrees about the Z-axis. V. Configure the Simulation System (3)

  4. Configure the parameters for the target points. V. Configure the Simulation System (4)

  5. Return the robot to its mechanical home position, then create an empty path and drag the three target points into it in sequence. V. Configure the Simulation System (5) V. Configure the Simulation System (6)

  6. Synchronize to the station. V. Configure the Simulation System (7) V. Configure the Simulation System (8)

  7. Delete the copied block created by the earlier simulation.

  8. Add two signals: an in-position signal that the conveyor waits for and a gripper signal. Restart the controller after adding them. V. Configure the Simulation System (9) V. Configure the Simulation System (10) V. Configure the Simulation System (11) V. Configure the Simulation System (12)

  9. Open the controller. You can see the program module under RAPID/T_ROB1 and then begin writing the program.

Program

The main program code is as follows:

MODULE Module1
	CONST robtarget Target_10:=[[347.037,682.5,875.06],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
	CONST robtarget Target_20:=[[500,-300,100],[1,0,0,0],[-1,0,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
	CONST robtarget Target_30:=[[500,-300,100],[0,0,0,1],[-1,0,1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
	VAR num layer:=1;
    VAR num x:=0;
    VAR num z:=0;
    PROC main()
        FOR i FROM 0 TO 20 DO
            SetDO JiaJu0,0;
            MoveJ Offs(Target_10,0,0,200),v500,fine,Tool1;
            WaitDI DaoWei0,1; 
            MoveL Offs(Target_10,0,0,0),v500,fine,Tool1;
            SetDO JiaJu0,1;
            WaitTime 1;
            MoveL Offs(Target_10,0,0,200),v500,fine,Tool1;

            IF layer MOD 2 = 1 THEN
                IF i MOD 5 < 4 and i MOD 5 <> 0 THEN
                    MoveL Offs(Target_30,90+x,-150,300+z),v500,fine,Tool1;
                    MoveL Offs(Target_30,90+x,-150,100+z),v500,fine,Tool1;
                    SetDO JiaJu0,0;
                    WaitTime 1;
                    MoveL Offs(Target_30,90+x,-150,300+z),v500,fine,Tool1;
                    x:=x+210;
                    IF i MOD 5 = 3 THEN
                        x:=0;
                    ENDIF
                ELSE
                    MoveL Offs(Target_20,150+x,-410,300+z),v500,fine,Tool1;
                    MoveL Offs(Target_20,150+x,-410,100+z),v500,fine,Tool1;
                    SetDO JiaJu0,0;
                    WaitTime 1;
                    MoveL Offs(Target_20,150+x,-410,300+z),v500,fine,Tool1;
                    x:=x+300;
                ENDIF
                IF i MOD 5 = 0 THEN
                    layer:=2;
                    x:=0;
                    z:=z+100;
                ENDIF
                
            ELSE
                IF i MOD 5 < 3 THEN
                    MoveL Offs(Target_20,150+x,-100,300+z),v500,fine,Tool1;
                    MoveL Offs(Target_20,150+x,-100,100+z),v500,fine,Tool1;
                    SetDO JiaJu0,0;
                    WaitTime 1;
                    MoveL Offs(Target_20,150+x,-100,300+z),v500,fine,Tool1;
                    x:=x+300;
                    IF i MOD 5 = 2 THEN
                        x:=0;
                    ENDIF
                ELSE
                    MoveL Offs(Target_30,100+x,-350,300+z),v500,fine,Tool1;
                    MoveL Offs(Target_30,100+x,-350,100+z),v500,fine,Tool1;
                    SetDO JiaJu0,0;
                    WaitTime 1;
                    MoveL Offs(Target_30,100+x,-350,300+z),v500,fine,Tool1;
                    x:=x+210;
                ENDIF
                IF i MOD 5 = 0 THEN
                    layer:=1;
                    x:=0;
                    z:=z+100;
                ENDIF
            ENDIF
                
        ENDFOR
        z:=0;
    ENDPROC
ENDMODULE

Simulation Test

  1. Synchronize the code to the station. Simulation Test
  2. Delete the Path_10 path, leaving only the main path. Simulation Test (2)
  3. Configure the station logic. Simulation Test (3)
  4. Run the simulation.