How do I change the X value of a stored position on a Kawasaki RS050N T52 controller

  • Welcome to the forum.......... :beerchug:

    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:

    Code
    HERE p1
    DECOMPOSE pts[1] = p1
    pts[1] = 0
    LMOVE TRANS(pts[1],pts[2],pts[3],pts[4],pts[5],pts[6])

    or

    Code
    HERE p1
    DECOMPOSE pts[1] = p1
    LMOVE TRANS(0,pts[2],pts[3],pts[4],pts[5],pts[6])

    or

    Code
    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

    Code
    HERE p1
    DECOMPOSE pts[1] = p1
    POINT p1 = TRANS(0,pts[2],pts[3],pts[4],pts[5],pts[6])
    LMOVE p1
  • Glad it helps....... :top:


    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.

Advertising from our partners