Robot palletization sample program
Sample program for palletization on the RV-7FLL robot.
It can also be used for other robots.
"Copyright © Mitsubishi Electric Europe B.V.
IMPORTANT !
These Function Blocks are demo versions that are only intended to demonstrate program functions and provide general orientation for your software choices. They are not suitable for use in real applications! "
"Improper use of demo versions in applications can lead to serious malfunctions and damage! Programs for real applications must always be configured for the individual application by trained staff and tested thoroughly before being used.
Mitsubishi Electric cannot assume any liability if these examples are used in real applications."
1 Program description
The program is designed to calculate cycle times for most palletizing applications on a robot. In particular, it is addressed to the Euro-pallet palletization application on the RV-7FLL robot. The definition of the program consists in setting one point of the pallet and picking and packaging parameters.
2 Description of variables
Input parameters:
Variable | Description |
MBoxWidth | Box width [mm] |
MBoxDeep | Box depth [mm] |
MBoxHigh | Box height [mm] |
MPalletWidth | Pallet width [mm] |
MPalletDeep | Pallet depth [mm] |
MLayNum | The number od layers |
MOffsetZ | Approach offset |
MTimePos | Time for robot positioning [s] |
MTimeGrip | Time to pick up the box [s] |
Positions to teach:
Pal0 – pallet corner
Ppick – picking position
3 Program example
- '(1) Pal0 - Teach point - pallet corner
- '(2) Ppick - Teach Point - picking position
- '************** pallet setting ********************
- MBoxWidth=292
- MBoxDeep=161
- MBoxHigh=166
- MPalletWidth=1200
- MPalletDeep=805
- MBoxNumX=MPalletWidth\MBoxWidth
- MBoxNumY=MPalletDeep\MBoxDeep
- MLayNum=6
- MOffsetZ=50
- MTimePos=0.05
- MTimeGrip=0.2
- '************* pallet calculation **********************
- MHGrip=-MOffsetZ 'wysokosc najazdu bez produktu
- MHPut=-MBoxHigh-MOffsetZ 'wysokosc najazdu z produktem
- MBoxNum=MBoxNumX*MBoxNumY
- PalA=Pal0
- PalB=Pal0
- PalD=Pal0
- PalA.X=Pal0.X+(MBoxNumX-1)*MBoxWidth
- PalB.Y=Pal0.Y+(MBoxNumY-1)*MBoxDeep
- PalD.X=Pal0.X+(MBoxNumX-1)*MBoxWidth
- PalD.Y=Pal0.Y+(MBoxNumY-1)*MBoxDeep
- def plt 1, Pal0,PalA,PalB,PalD,MBoxNumX,MBoxNumY,1
- loadset 1,1
- mvtune 2
- tool 1
- MCount=0
- cnt 1
- for mLayer=1 to MLayNum
- for mprod=1 to MBoxNum
- mov ppick,MHGrip
- mvs ppick
- dly MTimePos
- hclose 1
- dly MTimeGrip
- mvs ppick,MHPut
- ppal=plt 1, mprod
- ppal.Z=Pal0.Z+(mLayer-1)*MBoxHigh
- mov ppal,MHPut
- mvs ppal
- dly MTimePos
- hopen 1
- dly MTimeGrip
- mvs ppal,MHGrip
- MCount=MCount+1 'licznik cykli
- next mprod
- Next MLayer
- cnt 0
- end
Attachments:
File name
| Description
|
Uniwersalny_program_paletyzacji.pdf | Manual |
Paletyzacja_Sample.zip | Projekt RT Toolbox |