7.Robot Programming_Instruction
7.Robot Programming_Instruction
Instructions
Training Department
Factory Automation Engineering Centre
Factory Automation & Industrial Division
Mitsubishi Electric India Private Limited
[email protected]
30 October 2023 COPY RIGHT @ 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 1
6.Commands/Instructions
1. Joint interpolation movement ( Mov):
The robot moves with joint interpolation to the target position.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 2
6.Commands/Instructions
2. Linear interpolation movement ( Mvs):
The robot moves with linear interpolation to the target position.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 3
6.Commands/Instructions
Convenient interpolation instructions:
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 4
Exercise 1
1. Program the Robot to move in Linear Interpolation for the following profile using Linear
Interpolation command?
P2 P3
P1 P4
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 5
Exercise 1(Solution)
1. Program the Robot to move in Linear Interpolation for the following profile using Linear
Interpolation command?
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 6
6.Commands/Instructions
3. Circular interpolation movement
The robot moves with circular interpolation to the target position.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 7
6.Commands/Instructions
3. Circular interpolation movement
Program Example:
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 8
6.Commands/Instructions
4. Continuous path mode selection (Cnt):
Select from one of the following actions to be taken when passing through the taught points:
• Decelerate and stop
• Do not accelerate or decelerate, and complete smooth interpolation to the end point
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 9
6.Commands/Instructions
4. Continuous path mode selection (Cnt):
Program Example:
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 10
6.Commands/Instructions
4. Continuous path mode selection (Cnt):
Program Example:
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 11
Exercise 2
2. Program the Exercise no: 2 with Continuous path as per the dimensions below
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 12
Exercise 2(Solution)
2. Program the Exercise no: 2 with Continuous path as per the dimensions below
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 13
6.Commands/Instructions
5. Acceleration/Deceleration time and speed control
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 14
6.Commands/Instructions
5. Acceleration/Deceleration time and speed control
Program Example :
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 15
6.Commands/Instructions
5. Acceleration/Deceleration time and speed control
Program Example :
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 16
6.Commands/Instructions
7 & 8. Hand control (HOpen/EHOpen/HClose/EHClose):
These instructions are used to control a tool attached to the robot.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 17
6.Commands/Instructions
9. Pallet Operation( Def Plt, Plt):
• When carrying out the operation to arrange workpieces with equal distance (palletizing),
or removing workpieces arranged with equal distance (depalletizing), the reference
workpiece positions on the four corners are taught and other positions can be obtained
by calculation.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 18
6.Commands/Instructions
9. Pallet Operation( Def Plt, Plt):
* To move to a grid point into the pallet, describe the instruction in the following order:
• Mov (move)
• Pallet No. Example: Mov Plt 1, M10
• Grid point No.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 19
Exercise 3
3. Program for the (4*3=12) Pallet operation using Def Plt function.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 20
Exercise 3(Solution)
3. Program for the (4*3=12) Pallet operation using Def Plt function.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 21
6.Commands/Instructions
10. Unconditional/Conditional branch( GoTo, If Then Else):
• Select branch instructions are used in the command for unconditional jump or jump based
on condition judgment.
• There are 4 types of branching.
1. GoTo
2. If Then Else
3. Select Case
4. While Wend
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 22
6.Commands/Instructions
GoTo:
• Program jumps to a designated label.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 23
6.Commands/Instructions
If Then Else:
• If the condition expression designated with the If statement is established (true), the
instruction after Then is executed.
• If not established (false), the next step is executed.
• If Else is designated after Then and the condition expression designated with the If
statement is established (true), the instruction after Then is executed. If not established
(false), the instruction after Else is executed.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 24
6.Commands/Instructions
While-WEnd:
• This instruction repeats the program between the While statement and WEnd statement
as long as the loop conditions are satisfied.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 25
6.Commands/Instructions
11. Waiting for conditions( Wait):
1. The robot waits here until the variable data reaches the value designated in the program.
2. Use this for interlock control, etc.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 26
6.Commands/Instructions
12. Repetitions ( For-Next ):
• Repeatedly Executes the Program between the FOR & Next Statement until the end
conditions are satisfied.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 27
6.Commands/Instructions
14. Subroutine( Gosub - Return, CallP ):
• GoSub- Return:
• The subroutine for the designated label is executed.
• The main routine is returned to with the return command in the subroutine.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 28
6.Commands/Instructions
14. Subroutine( Gosub - Return, CallP ,FPrm):
• CallP & FPrm:
• The designated program is called and executed.
• The variables defined in the program to be called can be handed over.
Syntax:
CallP "<program name>" [,<argument> [, <argument>] ]
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 29
6.Commands/Instructions
15. Timer ( Dly ):
• Program waits the designated time before moving to execution of the instruction on the next
line.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 30
6.Commands/Instructions
16. Stop/Wait( End, Hlt ):
• End:
1. When cycle stop turns ON, one cycle operation is executed and then the program ends.
• Hlt:
1. The program will stop when this instruction is executed.
2. The start signal is used to resume the program.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 31
6.Commands/Instructions
17. Input/Output signal ( M_In, M_Out ):
• Signals can be received /outputted ,from/to an external controller ( like PLC, additional IO card,
etc.,)
Input Signal example:
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 32
6.Commands/Instructions
18. Output signal/ Variable clear( Clr ):
• This instruction clears general-purpose output signals, local numeric variables in a
program, and external numeric variables.
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 33
Thank You
30 October 2023 COPY RIGHT : 2012 MITSUBISHI ELECTRIC INDIA PVT. LTD. ALL RIGHTS RESERVED 34