Hello Guest it is November 16, 2019, 06:28:47 PM

Author Topic: Should a Brain disable a Macro  (Read 4831 times)

0 Members and 1 Guest are viewing this topic.

Should a Brain disable a Macro
« on: November 03, 2009, 01:25:22 PM »
Hi All,

Short story long, I wrote a short macro to home tool changer to a switch, then set a Dro with the Slot number. So far so good, as this was early in the process I had not written the M6 macro yet(No way to move the changer turret from the home position). So, since there is a manual index push button on the machine that I had wired and mapped , I made a brain that activated the turret while the button was pressed. The brain moved the turret like I wanted, but now the turret home macro did not work. If I disable the brain the macro will work. My question is, should a brain disable a macro?

Thanks
Doug

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Should a Brain disable a Macro
« Reply #1 on: November 04, 2009, 11:56:08 AM »
if your brians and maco are both active, make sure you are not fighting over the same data point(s)........ expecially conflicts
liike one turning this on, and the other turning it off.  If you waiting on stuff in the macro, or the like, and the data point do things
during execution, then the VB tthread may be Erroring out.

scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
Re: Should a Brain disable a Macro
« Reply #2 on: November 04, 2009, 07:49:49 PM »
Hi Scott,

Thanks for the reply. The only thing common between the two, is the output for the turret motor run relay. It is activated and deactivated in the macro based on the tool position 1 prox switch. The brain only has one line, if the push button input is make activate the output. It's not a huge deal as the brain was just for my convenience and will not be used in the final version. I guess my big question is it a bad idea to mix and match control logic between brains and macros?

Thanks
Doug

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Should a Brain disable a Macro
« Reply #3 on: November 04, 2009, 10:13:58 PM »
no, it works well together, just more of a pain for you to track it.

scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
Re: Should a Brain disable a Macro
« Reply #4 on: June 25, 2010, 05:28:50 AM »
Hi Doug,

I have the same problem in regards to output not activating when brain is running, Where you able to resolve the problem? i have made a macro that AcivateSignal(output1) and a simple brain turning Output1.

Thanks
Renato

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Should a Brain disable a Macro
« Reply #5 on: June 29, 2010, 04:23:04 AM »
just a side note here, make sure in Ports/Pins you have that output ENABLED!!!

scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
Re: Should a Brain disable a Macro
« Reply #6 on: June 29, 2010, 04:53:56 AM »
hello Scott,

Thanks for the reply. I was able to find a solution to fix the problem.

Thanks for the support
Renato