determine which motion command was last executed

  • Hello,


    I am working on a rapid monitoring module and I am trying to determine which robtarget (or motion instruction) was last commanded by the robot. Is there some data in the robot to get this information directly? or is there an instruction such as "GetDataVal" with a switch that can pull this information?


    Many Thanks,

    MiRobotGuy

    +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

    MI Robot Guy

  • May I ask what the purpose of this is ?


    While you could create your own "MyMove" instructions, or you can take it another level and create "ghost" instructions that is an exact duplicate of the original but with your own code inserted to allow you to do this tracking... the downside is that you're now also responsible to do all the error handling which is usually a royal PITA and with your own instructions (non standard) you're also dealing with the programming aspects of things.


    So, while you're solving your initial problem, you have created multiple others.

    If this is meant to be in an production environment I for one would find other ways.

    Additionally, with this approach the read-ahead might (most likely will) trick your "tracker" since it'll show the last robtarget "read" not necessarily which one is the current one being addressed by the motion planner.

Advertising from our partners