Is there a way to run a macro in the background every time a program is started or mdi opened?
I am guessing no but thought I would ask.
How to run a before every auto mode?
Moderator: cnckeith
Re: How to run a before every auto mode?
No, not if it needs to be a CNC macro.
You can make your PLC program perform PLC-controlled tasks when a cycle begins, but you can't run G codes.
You can make your PLC program perform PLC-controlled tasks when a cycle begins, but you can't run G codes.
-
- Posts: 9914
- Joined: Tue Mar 28, 2017 12:01 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Location: Mesa, AZ
Re: How to run a before every auto mode?
Could you share what you are trying to accomplish?
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
We can't "SEE" what you see...
Mesa, AZ
-
- Posts: 399
- Joined: Thu Dec 03, 2020 4:54 am
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: How to run a before every auto mode?
I want to reset my travel limits. I have to make them unsafe during tool change. If the tool change completes ok then they are made safe again at the end of the tool change macro. But if something happens during tool change or it is stopped, then the limits are left unsafe until next tool change completes.
-
- Posts: 9914
- Joined: Tue Mar 28, 2017 12:01 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
- Location: Mesa, AZ
Re: How to run a before every auto mode?
I kind of don't follow.ashesman wrote: ↑Wed Jun 23, 2021 3:44 pm I want to reset my travel limits. I have to make them unsafe during tool change. If the tool change completes ok then they are made safe again at the end of the tool change macro. But if something happens during tool change or it is stopped, then the limits are left unsafe until next tool change completes.
Travel limits basically address the full travel of each axis minus a bit from the hard stops. Tool changers are generally within the work envelope of the machine, or move INTO the work envelope of the machine.
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
We can't "SEE" what you see...
Mesa, AZ
-
- Posts: 399
- Joined: Thu Dec 03, 2020 4:54 am
- Acorn CNC Controller: No
- Allin1DC CNC Controller: No
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: How to run a before every auto mode?
Not my tool change. It is fixed in location and the spindle moves into the tool change area. The tool change area is out of bounds during normal operation due to the travel limits. I have to alter the Y travel limit on the fly to move into the tool change area, then set it back when leaving. If something goes wrong during a tool change or it is cancelled, the limit could be left an unsafe state.martyscncgarage wrote: ↑Fri Jun 25, 2021 10:24 amI kind of don't follow.ashesman wrote: ↑Wed Jun 23, 2021 3:44 pm I want to reset my travel limits. I have to make them unsafe during tool change. If the tool change completes ok then they are made safe again at the end of the tool change macro. But if something happens during tool change or it is stopped, then the limits are left unsafe until next tool change completes.
Travel limits basically address the full travel of each axis minus a bit from the hard stops. Tool changers are generally within the work envelope of the machine, or move INTO the work envelope of the machine.
So, I want to run a macro or something before auto or mdi at least to always set the Y limit to its default value and move the spindle back out of the tool change area.
This is a video of a similar machine to mine. You can see it fetch the tool in the first few seconds.