Hello Guest it is January 22, 2022, 03:17:11 AM

Author Topic: Programming Question  (Read 2596 times)

0 Members and 1 Guest are viewing this topic.

Programming Question
« on: January 01, 2007, 03:55:26 PM »
Look at the source code below.  It rotates the A axis the the first position when the subroutine starts at 22.5 degrees.  As it exits the subroutine the first time it increments the A Axis value to 67.5 and moves correctly.  But upon exiting the subroutine for the third time the pointer goes back to the start of the program at line #1 with the error "sub called with no sub in effect... looping"

What am I doing wrong? v1.90.081

(#1001 = X Axis)
(#1002 = A Axis)


M98 P1001 L #8

g0 x#1001 A#1002
G73 z-.15 r.1 q.02 f3
Re: Programming Question
« Reply #1 on: January 01, 2007, 04:00:26 PM »
Ok, You guys are too slow I was going to give the first person that answered a million dollars.   :o :o :o

Too late.


No # sign on the M98 subroutine call line.   ::)