Installed my first Macro and have a couple of questions.
G53 G0 ZO; Machine co-ordinates, Spindle safe hght.
G53 G0 X125 Y125 ; Machine co-ords, mvs to X & Y co-ords.
In my case the X125 Y125 are the co-ordinates for the inside corner of the 90 degree fence I clamp the work against,
The macro apears to stay resident. At boot up & before homing, time remaining shows 0.01 seconds and line 1 of 2. Is this normal and what will happen when I install a second/ third macro?
I wanted to check the macro so went to macro edit, could not get out of the edit, turned off the machine and restarted it fortunately it kept the offsets saving some time to reset the axis.
The macro apears to stay resident. At boot up & before homing, time remaining shows 0.01 seconds and line 1 of 2.
What do you mean by resident. In what screen? When the macros are run they appear in the regular run screen - the place you usually run programs from. When you run another macro it then appears in the run screen.
I wanted to check the macro so went to macro edit, could not get out of the edit,
If you press the three bars ( the way you got into the menus ) could you not get back to the controller screen? That has always worked for me.
Let us know a little more details about what you are doing, what you pressed and what is or is not happening.
As I said, since installing this macro
G53 G0 ZO; Machine co-ordinates, Spindle safe hght.
G53 G0 X125 Y125 ; Machine co-ords, mvs to X & Y co-ords.
The macro works well and does what I want it to.
Now when I first turn on the computer and 1F in the box that shows time remaining as a program runs, it shows 0.01 seconds, in the box that shows the line number while a program runs it shows line 1 of 2,- ; note it is a two line macro.
In the late 1980’s I had a program written that was called a TSR or terminate and stay resident, Once loaded it stayed in the background unless called. This macro appears to be similar, except that it shows onscreen at startup, before touching any keys. & therefore it has become part of the start up. Should I be putting an end of file command at the end of the macro?
I just started my machine and typed your macro in and ran it then shut down and started again to see.
Yes, the code is still in the Auto window since that is the last thing that ran. The last program to run whether it’s a macro or any other NC code always stays there. So that is normal behavior.
You just have to be aware that if you press the play button whatever is in the Auto window will run. That caught me out just last weekend. I ran a cutting program in the usual way. When it was done I pressed a macro button to reposition the spindle. After the macro ran I pressed the play button again expecting that the cutting program would start again. But the macro started to run instead since it was the last thing that ran.
My display says Line: 0 of 2 before I run your macro and 2 of 2 after I run it. So why yours says 1 of 2 I don’t know.
My time remaining says 0:00 so why yours says .01 I don’t know.
It sounds like on boot up the macro runs the first line only then stops. That would explain it saying line 1 of 2 and 1 second remaining - which is all it would take to run the second line.
However this controller does not have the ability to run one line at time ( single block mode ). And I have never seen a program stop like that.
Maybe it’s a glitch in the matrix.
There is no end of file command needed. I have 10 macros and none of them have any end of file and they all work great.
The only thing I would recommend is to put a G90 on your first line just incase you happen to be in G91 mode when you call the macro.
If you can run that macro then run other programs fine then I think it’s all good. But that’s just my opinion.
I installed a spindle on the weekend and used the macro to create the warm up code, now the warmup code stays loaded on boot up. It does create a safety issue as it play button gets accidentally pushed then spindle starts. I would think there would be a means to unload the code after it is used.