Macro Program skipping around?
Posted: Mon Feb 23, 2015 4:56 pm
Hi,
I've written a G-Code program for one of the Macro buttons (in the S3D control panel) whose purpose is to warm the motors up before printing in the AM, or after a long wait. Unfortunately, I've had an issue which baffles me and I was hoping one of the members here could shed some light on the issue.
I've attached a Zip with 2 versions of the Macro, the first one, as it was written (in S3D) and the second, which the machine runs. The only difference is the Z command marked with asterisks in the lower program. The Z50 moves run right after the Z10 move, even though the program has it running at the end. This is the quandary.
I've been writing G-Code programs for CNC machines for many years and never has a program not done what was written, even if that program was wrong. That's one of the constants in G-Code programming, the machine doesn't have a choice as to the order of commands, it runs what it's told to run, except in this case.
It's not a huge deal as the warm-up program runs and does what I intended. But before I expand on the program, it would be nice to know why this glitch is happening and whether any other "issues" will pop up.
Thanks
Mike H.
I've written a G-Code program for one of the Macro buttons (in the S3D control panel) whose purpose is to warm the motors up before printing in the AM, or after a long wait. Unfortunately, I've had an issue which baffles me and I was hoping one of the members here could shed some light on the issue.
I've attached a Zip with 2 versions of the Macro, the first one, as it was written (in S3D) and the second, which the machine runs. The only difference is the Z command marked with asterisks in the lower program. The Z50 moves run right after the Z10 move, even though the program has it running at the end. This is the quandary.
I've been writing G-Code programs for CNC machines for many years and never has a program not done what was written, even if that program was wrong. That's one of the constants in G-Code programming, the machine doesn't have a choice as to the order of commands, it runs what it's told to run, except in this case.
It's not a huge deal as the warm-up program runs and does what I intended. But before I expand on the program, it would be nice to know why this glitch is happening and whether any other "issues" will pop up.
Thanks
Mike H.