RobotStudio event

Update robtarget in a record

Hello,

Is it possible to update a position from the flexpendant that exist in a record?
Tagged:

Answers

  • This is from the technical reference manual - Rapid overview:
    A specific component of a record data can be accessed by using the name of that component, for example pos1.x := 300; assignment of the x-component of pos1.
    Now if you mean by modposing the position with the pendant, I don't know. 
    Lee Justice
  • lemster68 said:
    This is from the technical reference manual - Rapid overview:
    A specific component of a record data can be accessed by using the name of that component, for example pos1.x := 300; assignment of the x-component of pos1.
    Now if you mean by modposing the position with the pendant, I don't know. 
    I mean modposing the position. When I try to do it in the virtual flexpendant, an error pops up and says "The given source position is illegal for the operation". I'm also using correct wobj and tool when attempting this.

    I feel like this should work because you can modpos a robtarget in an array atleast.
  • Is the robtarget in question constant?
    Lee Justice
  • lemster68 said:
    Is the robtarget in question constant?
    I have tried both constant and persistent
  • How about in a routine as an INOUT parameter?
    Lee Justice
  • Hey ...
    I believe that what you are trying to do is something similar to wanting to modify a position obtained through an Offs(pp,0,0,0) routine. This is not possible.
    The flexpendant 'modpos' function expects to receive a robtarget and not 'RECORD.robtarget' or 'Offs(robtarget, x,y,z)'.
    Good job.