Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 06:46:47 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
| |-+  Kawasaki Robots
| | |-+  Read Joint Values
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Read Joint Values  (Read 428 times)
zanealtenkirch
Newbie
*
Offline Offline

Posts: 19


« on: October 05, 2010, 06:19:19 PM »

Hello All

Does anybody know how to read the value of joint seven into a variable and use it in a if statement to check if it is larger than a certain value.

I want to write an asynchronous program that will control stop the robot if the stop button is press on the gate, but it must first check to see that the seventh axis (gun) is not closed or of a value less than 10mm.

Any help or ideas will be greatly appreciated

Thanks

Zane
Logged
zanealtenkirch
Newbie
*
Offline Offline

Posts: 19


« Reply #1 on: October 06, 2010, 03:53:41 PM »

Just out of interest this is how I managed to do it.

.PROGRAM AUTOSTART2.PC   

WHILE(TRUE) DO

  IF(SIG(i_stop)==ON) THEN               ; Check if stop request from PLC

   HERE #rob_pos                 ; Get robot joint values
   DECOMPOSE J_val[1]= #rob_pos   ; Load Array

    If J_val[7] > 5 THEN              ; Check gun value greater than 5mm
           PULSE (o_stop*s_on),1                 ; Send stop bit to PLC
    END

  END
 END
.END
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!