Spiral on a surface

Hello all,

Im trying to make robotstudio create a spiral path on a surface (like a cilinder or a sphere). Is there an easy way to do this and am i overlooking something or is this something very difficult to do?

I have tried the machining powerpac but this can only create a number of circles, not a spiral across the surface.

Kind regards, Gido

Hey Gido,

This should get you off to a good start:

MoveL pcircle, v200, z1, tpen;
ptemp := CPos(\Tool:=tpen, \WObj:=wobj0);
ii :=0;
WHILE Distance(ptemp,pcpoint) <= ndiameter DO
MoveL Offs(pcircle,ii*(nincrement/360) * Sin(ii),ii*(nincrement/360)*Cos(ii),0),v100,z0,tpen;
!SetDO doPL3, 0;
pcpoint:= CPos(\Tool:=tpen, \WObj:=wobj0);
Incr ii;
ENDWHILE

Sorry for the crazy formatting, maybe this will be easier to read

MoveL pcircle, v200, z1, tpen;ptemp := CPos(\Tool:=tpen, \WObj:=wobj0);ii :=0;WHILE Distance(ptemp,pcpoint) <= ndiameter DO MoveL Offs(pcircle,ii*(nincrement/360) * Sin(ii),ii*(nincrement/360)*Cos(ii),0),v100,z0,tpen; pcpoint:= CPos(\Tool:=tpen, \WObj:=wobj0); Incr ii; ENDWHILE

If you just want something quick and dirty you can draw a spline on the surface and then use AutoPath. Like this: