Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 07:11:19 PM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  KUKA Robot Forum (Moderators: Werner Hampel, Martin H, SkyeFire)
| | |-+  determine when the input goes on
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: determine when the input goes on  (Read 200 times)
dcrobo
Newbie
*
Offline Offline

Gender: Male
Posts: 20



« on: January 20, 2012, 11:15:49 AM »

dear friends

i have a question

suppose i have 4 points


                p1----------------------------p2----------------------p3--------------------------p1



My input appears anywhere during the programmed points


is there any way to determine when my input appeared 

i.e. suppose my input appeared during travelling of p2----p3 point

how do i know that my input appeared between point p2-p3.














Logged

:)keep thinking keep smiling
kr16_2
Full Member
***
Offline Offline

Posts: 204


« Reply #1 on: January 20, 2012, 05:54:29 PM »

Interrupts.
You can run separate (independent from main program) subroutine when input comes in.
That subroutine can check current robot position or monitor variable that you can update in main program (variable changes depending on the points that you travel through)
Logged
MeanRobot
Full Member
***
Online Online

Posts: 239


« Reply #2 on: January 23, 2012, 02:43:50 PM »

There is a useful variable that you can take advantage of when your input triggers the interrupt.

$POS_INT will contain the Cartesian position at the moment the interrupt was triggered.

From it, you should be able to figure out where you are along your path.
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!