doglaw
02-24-2007, 10:49 AM
I wrote a part file to help me machine the bottom plates for violins. I designed the bottom plates to be cut on material 16 x 8.594 x .625. However, I want to be able to cut the file on different material sizes so I wrote the part file to allow me to specify the material size and if figures out the placement.
Here's the problem. I have two custom files that I call. C2 is the zzero routine and C4 is my 'find home' routine. I put a conditional statement before my calls to C2 and C4 that prevents them being called if I am in preview mode. In preview mode, my part file runs the way I expect. However, when in move/cut mode - things don't work quite the way I expect. It runs fine up until the first C2 call. It executes the C2 call - but on return, program control ends up in the wrong place. It acts as if the stack is getting corrupted somehow. Any thoughts?
my part file
3812 (6.4 k)
C2 file
3813 (0.2 k)
c4 file
3814 (5.1 k)
Here's the problem. I have two custom files that I call. C2 is the zzero routine and C4 is my 'find home' routine. I put a conditional statement before my calls to C2 and C4 that prevents them being called if I am in preview mode. In preview mode, my part file runs the way I expect. However, when in move/cut mode - things don't work quite the way I expect. It runs fine up until the first C2 call. It executes the C2 call - but on return, program control ends up in the wrong place. It acts as if the stack is getting corrupted somehow. Any thoughts?
my part file
3812 (6.4 k)
C2 file
3813 (0.2 k)
c4 file
3814 (5.1 k)