Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 07:52:48 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)
| | |-+  Programming Doubt?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Programming Doubt?  (Read 218 times)
kanna
Newbie
*
Offline Offline

Posts: 16


« on: January 25, 2012, 12:42:16 PM »

I nned to declare a variable 'a'

And i need to write my coordinates (x,y,z) in that variable,

and
the robot should move to that point (a).


For can your tell me how to do it in programming.
Logged
JoseMi
Full Member
***
Offline Offline

Gender: Male
Posts: 117



« Reply #1 on: January 25, 2012, 03:15:08 PM »

Hi

if you have auxiliary axis
DECL E6POS a ={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0,S 0,T 0,E1 0.0,E2 0.0,E3 0.0,E4 0.0,E5 0.0,E6 0.0}

if not
DECL POS a ={X 0.0,Y 0.0,Z 0.0,A 0.0,B 0.0,C 0.0,S 0,T 0}

so the declaration and initialition is done in the same line you can change 0.0 to the value that you would want, or to do this:

a.x=10.0
a.y=11.0
a.z=13.0

PTP a

but this one is an example, and it is a very, very simple example.

regards
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!