RobotStudio event

changing the value of external axis in robtarget

Options
Hi,
i'm trying to change the value of the external axis for a robtarget.
In detail i would change the value "800" with a num variabile.
Ho can i do it?

VAR robtarget MandrinoTornioVAR:=[[-65.228,106.297,5.472],[0.707106781,0,0.707106781,0],[0,0,0,0],[ 800, 9E9, 9E9, 9E9, 9E9, 9E9]];

Tagged:

Comments

  • lemster68
    lemster68 ✭✭✭
    Options
    One way:

        VAR num nMyEaxNum;
        VAR robtarget MandrinoTornioVAR:=[[-65.228,106.297,5.472],[0.707106781,0,0.707106781,0],[0,0,0,0],[ 800, 9E9, 9E9, 9E9, 9E9, 9E9]];
        nMyEaxNum:=900;
        MandrinoTornioVAR.extax.eax_a:=nMyEaxNum;

    The other:

        MandrinoTornioVAR.extax.eax_a:=900;
    One less step there, but you asked about using a variable.
    Lee Justice
  • edorobot
    Options
    Hi,
    thanks for the reply.
    I try it and i solve the problem.
    Thank you, best regards