I am new to Kawasaki robots and am wondering how do I change the X value of a stored position using the HERE command.
HERE P1
I want to change the X value = 0 of P1 then move to it
LMOVE P1
Thanks
I am new to Kawasaki robots and am wondering how do I change the X value of a stored position using the HERE command.
HERE P1
I want to change the X value = 0 of P1 then move to it
LMOVE P1
Thanks
Welcome to the forum..........
HERE is a command to save the current location, not adjust the location data.
If used in the monitor screen of the keyboard or via an application like KRTerm or KCWin, then entering this command, will return the current location values, followed by a 'CHANGE or RETURN' prompt, which allows you to change the values of components.
Programmatically, you are looking at using common variations of the following:
POINT, DECOMPOSE, SHIFT, TRANS
Are you just typing these commands and wanting the robot to execute the commands after you type them in or are you trying to create a program to execute this instead?
I ask this, as there are several ways to accomplish this, so if you could provide some additional details, that would be great.
Simplest program kind of instructions could be:
HERE p1
DECOMPOSE pts[1] = p1
pts[1] = 0
LMOVE TRANS(pts[1],pts[2],pts[3],pts[4],pts[5],pts[6])
or
or
HERE p1
DECOMPOSE pts[1] = p1
pts[1] = 0
POINT p1 = TRANS(pts[1],pts[2],pts[3],pts[4],pts[5],pts[6])
LMOVE p1
or
Thanks, that's what I needed. I am using this to help recover the robot from anywhere back to the home position.
Glad it helps.......
Using the DECOMPOSE creates real variable values of each component of the transform used.
You can therefore adjust any component of that array variable to whatever value you require, then using POINT you can redefine the p1 variable using the DECOMPOSE array adjusted component(s) to suit.
Just make sure you are adjusting/replacing the relevant component(s) of the transform as required.
Alternatively by using the TRANS command instead, you are not changing the p1 variable at all, but moving to the copied components of p1 obtained using the DECOMPOSE command and again adjusting/replacing the relevant component(s) of the transform as required.