Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 08:55:27 PM
Home Help Search Calendar Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Robot Help and Discussion Center
| |-+  KUKA Robots (Moderators: Werner Hampel, kai_n, MartinH)
| | |-+  smoothing your PTP moves
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: smoothing your PTP moves  (Read 222 times)
robots_at_apex
Newbie
*
Offline Offline

Posts: 11


« on: August 17, 2008, 02:59:57 AM »

what is the best way to smooth or round your PTP moves? What is the difference between C_PTP and  C_DIS?

Thanks in advance.
Logged
MartinH
Global Moderator
Full Member
*****
Offline Offline

Gender: Male
Posts: 122

Kent, UK


« Reply #1 on: August 17, 2008, 11:59:58 AM »

There are some very good examples in the Expert Programming Manual in this thread

Basically, you need to set the approximate angle for PTP moves eg

$APO.CPTP = 5.0 ; 5 degrees of approximation - NOTE - no underscore in this
PTP xP1 C_PTP
PTP xP2

this will smooth as it approaches xP1 and then go on to xP2.

C_DIS is normally used for LIN moves.  I believe it is possible to combine C_DIS and C_PTP for PTP but I've never tried it  kopfkratz
Logged

There are 10 types of people in this world - those who understand binary, and those who dont.
MartinH
Global Moderator
Full Member
*****
Offline Offline

Gender: Male
Posts: 122

Kent, UK


« Reply #2 on: August 17, 2008, 12:23:56 PM »

I forgot one thing.  I tried to explain the difference between LIN, PTP and smoothed moves to an operator once, and he got completely confused (maybe it was my explanation  icon_redface )

I solved it in the end by writing a demonstration, showing moves to the four corners of a square 800mm x 800mm.  I cant remember the exact code, but it was something like :-

Code:
DECL POS P1
DECL POS P2
DECL POS P3
DECL POS P4
; set values for point P1
; set values for point P2
; set values for point P3
; set values for point P4

;simple square using LIN moves
PTP HOME
PTP P1
LIN P2
LIN P3
LIN P4
LIN P1
PTP HOME

; square with lightly smoothed LIN moves
$APO.CDIS = 5.0 ; check this value
PTP HOME
PTP P1
LIN P2 C_DIS
LIN P3 C_DIS
LIN P4 C_DIS
LIN P1
PTP HOME


; square with heavily smoothed LIN moves
$APO.CDIS = 50.0 ; check this value
PTP HOME
PTP P1
LIN P2 C_DIS
LIN P3 C_DIS
LIN P4 C_DIS
LIN P1
PTP HOME


; square with PTP moves
PTP HOME
PTP P1
PTP P2
PTP P3
PTP P4
PTP P1
PTP HOME


; square with lightly smoothed PTP moves
$APO.CPTP = 2.5 ; check this value
PTP HOME
PTP P1
PTP P2 C_PTP
PTP P3 C_PTP
PTP P4 C_PTP
PTP P1
PTP HOME



; square with heavily smoothed PTP moves
$APO.CPTP = 25.0 ; check this value
PTP HOME
PTP P1
PTP P2 C_PTP
PTP P3 C_PTP
PTP P4 C_PTP
PTP P1
PTP HOME

Logged

There are 10 types of people in this world - those who understand binary, and those who dont.
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.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!