Author Topic: "Spinning" Axis "Endlessly"  (Read 21 times)


  • Robots in Architecture Members
  • Forum User
  • *
  • Posts: 10
    • View Profile
"Spinning" Axis "Endlessly"
« on: September 24, 2020, 02:00:28 AM »
I have axis4 type set to Endless.  Here's my quick code:

FOR Counter=1 TO 20 STEP 1
   PTP_REL {A4 360}
FOR Counter=1 TO 20 STEP 1
   PTP_REL {A4 -360}

This doesn't "spin" axis around around 360 degrees but rather like 5 and also there's a short pause between each of the FOR loop step.

What's the proper syntax for axis4to keep spinning endlessly in positive or negative?


Johannes @ Robots in Architecture

  • Lead Developer
  • Administrator
  • Forum User
  • *****
  • Posts: 1062
    • View Profile
    • Robots in Architecture
Re: "Spinning" Axis "Endlessly"
« Reply #1 on: September 24, 2020, 08:47:48 PM »
You could try to modify the code as follows to get a continuous motion:

FOR Counter=1 TO 20 STEP 1
   PTP_REL {A4 360} C_PTP

However I cannot think of an easy way to get an axis to rotate with continuous speed "in the background" if that is what you are going for,