Hello Guest it is December 14, 2024, 06:18:26 AM

Author Topic: Programming Question  (Read 3715 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)

#1001=0
#1002=22.5


M98 P1001 L #8


O1001
g0 x#1001 A#1002
G73 z-.15 r.1 q.02 f3
#1002=[#1002+45]
M99
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.

Answer:

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