How to run a before every auto mode?

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
ashesman
Posts: 395
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

How to run a before every auto mode?

Post by ashesman »

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.
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: How to run a before every auto mode?

Post by cncsnw »

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.
martyscncgarage
Posts: 9912
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?

Post by martyscncgarage »

ashesman wrote: Sat Jun 19, 2021 3:43 am 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.
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
ashesman
Posts: 395
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?

Post by ashesman »

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.
martyscncgarage
Posts: 9912
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?

Post by martyscncgarage »

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.
I kind of don't follow.
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
ashesman
Posts: 395
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?

Post by ashesman »

martyscncgarage wrote: Fri Jun 25, 2021 10:24 am
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.
I kind of don't follow.
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.
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.

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.
Post Reply