Position Monitoring Using User Frame

  • Hi, I have a situation where i use user frame on a table with a box, instead of position monitoring of the robot cartesian i want to monitor the position of robot using user frame. Thank you

  • AD
  • HawkME

    Approved the thread.
  • Position Monitoring as in this link they monitor the coordinate of the robot , in my case i want monitor user frame coordinate


    Example i put a box on the table and i use pointer tool on robot and move to the edge of the box, so the position monitor provide me coordinate of the edge based on the user frame

  • Hi amin12,

    that's not an easy one liner .. :(

    Do you really need it? In Background? For PLC?


    Is it an option to use LPOS at some point in your code?


    ---

    In TP there is no RELATIVE POSITION OPERATOR( : )

    So you might have to use/program a karel programm running in Background..

    --

  • if you want to send current coordinates to plc you must do it with a bg logic task and read them from the system variables, you cannot use lpos or jpos inside any routine other than the main task because it locks the group.


    System variable that is accesible only outputs the world coordinates in automatic mode, not the coordinates from the current active frame. But there are ways to do a base conversion of points in real time, you need to read that system variables on another task, convert them to the frame you are using and send it back. I use this when working with vision equipment since it always sends the destiny coords on world frame, I convert that coords to the work area frame and then use that converted points in program in irder to get all data on the sane frame and also check limits before going to pick a piece.


    First of all, tell us what really you need, if you want to send the current position on a determinate frame to the plc I can provide you a way to do that but you must have the karel option on the robot first.

  • I was going to say to TitusLepic that making a macro won't work... since I tried everything and the only way I found to do this and also edit PR was to do it on a bglogic task...


    But good to know this can be done with newer softwares, debugging a bg task is a nightmare and if this is possible I may update the code I use to run it with a RUN statement since you can open the run tasks and see the pointer.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account
Sign up for a new account in our community. It's easy!
Register a new account
Sign in
Already have an account? Sign in here.
Sign in Now