July 15, 2019, 06:29:22 PM

# FRAME instruction

### Author Topic:  FRAME instruction  (Read 347 times)

0 Members and 1 Guest are viewing this topic.

April 15, 2019, 07:21:17 AM

#### avc

##### FRAME instruction

hello everyone,

I've the robot moving material from(to) a matrix 5x4 where the spacing between the elements is 250 mm but, the problem is that the matrix (actually a table) is not parallel and perpendicular to the base of the robot, so i had to find the straight line function for both X and Y axis to compensate the variations by using a shift function
as follows:

POINT billet2 = on_corner_grip_
FOR row = 0 TO 4
FOR col = 0 TO 3
POINT billet2 = SHIFT(on_corner_grip_ BY 250*row+2*col,-248*col+1.5*row,0)
JMOVE billet2
OPEN 2
DELAY 3
DRAW ,,-213
CLOSE 2
DELAY 2
DRAW ,,500
JMOVE facing_table_gr
CALL vl_2
JMOVE billet2
DRAW ,,-215
OPEN 2
DELAY 1
DRAW ,,500
END
END
JMOVE facing_table_gr
HOME

I'd like to solve the problem using the FRAME function to eliminate "the offsets" and do steps of exactly 250mm instead to be using a mathematics function to compensate the errors but i am a bit lost about how to do it....could anyone give me a hand with it?
The other thing that i'd like to ask (sorry about me asking two question in the same post), how can i start the program with values different than ZERO for ROW and COL?
For example ROW =3 and COL =2 , without to modify the program, as this would allow me to initiate the program from any position of the matrix, instead to start always from the same point

Today at 06:29:22 PM

Guest
##### Re:  FRAME instruction

April 15, 2019, 04:58:32 PM

#### Alexandru

##### Re: FRAME instruction
Hello,

Here is a FRAME example. I wouldn't do the program with FOR function, you can use the CASE function instead.

At your example ROW =3 and COL =2 you can have 2 variables, i and j.

;initializations
i = 3
j = 2

FOR row = i TO 4
FOR col = j TO 3

I would use the Case function like in example2.

April 15, 2019, 07:27:52 PM

#### kwakisaki

Global Moderator
##### Re: FRAME instruction
It's all about relativity and depends how conversant you are with Kawasaki and Co-ordinates.

Yes, have a look at the FRAME command, but also consider the TRANS command too.
Check out the AS Manual for these commands.....there's some good information contained about relative locations.
- The SHIFT command is applied to the current location along/parallel to the current BASE....not the location.
- The TRANS command is applied to the current location along/parallel to the location and the OAT values (angle/rotation) of the location.
- If your reference position is correctly aligned to the table in all planes, then the frame does not need to be used.
- This can be achieved by aligning the TCP vectors to the table in all planes.

To have a closer look at the TRANS Command - move the robot to the reference location (assumes the TCP is correctly set).
- Select TOOL Interpolation.
- Rotate around Z so that you align your row/col directions with the X and Y of the TCP and teach the reference location.
- In this position, using JMOVE billet2+TRANS(250*row,250*col,0) will accomplish what you need without the FRAME.
- Either row or col will use a negative value more than likely if you adopt this approach.
« Last Edit: April 15, 2019, 07:36:40 PM by kwakisaki »

April 15, 2019, 10:18:00 PM

#### avc

##### Re: FRAME instruction
Hello again

thanks for the answers kwakisaki and Alexandru , I appreciate your time guys
I will take a look at them

cheers

### Similar Topics

###### instruction for three points define a frame

Started by irobot on KUKA Robot Forum

2 Replies
1882 Views
March 31, 2015, 02:30:34 AM
by irobot
###### Informal Instruction to skip Motion Instruction

Started by rAviteja_g on Yaskawa Motoman Robot Forum

6 Replies
1154 Views
August 13, 2018, 12:16:17 PM
by rAviteja_g
###### Transformation of coordinate system from Base Frame to Tool Frame

Started by Austenite on Yaskawa Motoman Robot Forum

2 Replies
2286 Views
March 03, 2016, 03:00:19 PM
by motofoto
###### about the sequence of calibrating tool frame and base frame in KRC4

Started by Deejay on KUKA Robot Forum

1 Replies
936 Views
August 10, 2017, 11:34:53 AM
by panic mode