Hello Guest it is March 03, 2021, 07:50:02 PM

Author Topic: my very simple brain just wont work.....  (Read 4614 times)

0 Members and 1 Guest are viewing this topic.

my very simple brain just wont work.....
« on: December 09, 2012, 09:07:11 AM »
Hi Guys, me again with the next noob question.

This time it’s about simple brains. I have watched the videos, done a little searching hoped making a button to manually release the tool holder clamp was going to be easy… Oh how I was wrong.

So here is where I am at so far :

Oem trig# 3 (manual tool holder clamp release green when no button pressed )
Oem Trig# 6 (tool spinning)
Enable 1 
Output #4 tool release.

So I tried hooking this up as in the first image so that the manual button would need to be pressed, tool not spinning and then the estop not pressed before the output activated.


This did not work….

I decided to get simple and stripped it right back to the single button activated OEMtrig 3# driving a compare = to 0 (the state that is displayed when the button is pressed) that drives output 4.


Still no luck…. I have reloaded the brain many times, I can view it the input state goes from green to blue WHEN the button is pressed. I

What am I doing wrong? Why is it feeling like the lobs are connecting to the inputs? Or is it because my switching is setup to be active when it goes low?

 I am running a Ethernet smooth stepper and have tested activating the output using so 99% sure this issue just in my brain.

All your pointers so far have help a lot so looking forward to a push in the right direction with this one too!

« Last Edit: December 09, 2012, 09:11:24 AM by jestah »
Re: my very simple brain just wont work.....
« Reply #1 on: December 09, 2012, 10:28:12 AM »
this seemed to work
Re: my very simple brain just wont work.....
« Reply #2 on: December 09, 2012, 10:44:21 AM »
Instead of "Compare Immediate", I think you want "Invert-Flip Signal" at the 2 OEM Triggers.

Craig's looks good too, needing the No OP at En1 but does not invert the triggers.

I'm just learning too.
Thanks Craig, correct me if I'm wrong.
Respectfully,
Russ
Re: my very simple brain just wont work.....
« Reply #3 on: December 09, 2012, 06:33:38 PM »
thanks guys, I will test it as soon as I arrive at the workshop!
Re: my very simple brain just wont work.....
« Reply #4 on: December 09, 2012, 08:29:53 PM »
ok so inverting and using a nop lobe worked well but then when I went to run a tool change I found that the tool clamp release would not work!

Turning of the brain then solved the tool change issue!

Is it because the draw bar signal even outside the brain is now permanently flipped?
Re: my very simple brain just wont work.....
« Reply #5 on: December 09, 2012, 08:44:20 PM »
is it possible to have a brain run a macro/vb command rather than output4 directly ?

It seems that the brain when its running will not allow output for to run even from MDI so I would like to find a workaround for this

At the moment the only other option is to use my only free output and run a parallel lead to the spindle clamp release so that the manual release is separate from the "auto" release
Re: my very simple brain just wont work.....
« Reply #6 on: December 09, 2012, 09:32:21 PM »
ok found button "1034 - Execute Button Script"

Dropped M200 into my int string in general config.
Made two macros
------------
 M200:
‘Start up macro for atc
ActivateSignal(OUTPUT3)' release z brake
SetTriggerMacro(201) 'Trigger macro for manual spindle release
--------------------------
M201:
'Manual tool release macro
ActivateSignal(OUTPUT4)
sleep(500)
DeActivateSignal(OUTPUT4)


Running from MDI M201 works as expected
brain viewer show the macros should be run

M200 turns the z brake off but im not sure it is setting up the trigger macro set up right…

Suggestions or help please as I am so keen to start cutting!!!


Re: my very simple brain just wont work.....
« Reply #7 on: December 09, 2012, 09:38:12 PM »
ok for any one else who may run into this problem

SetTriggerMacro:

Sub SetTriggerMacro(MacroNum As Integer)

This function allows an M-macro to be associated with OEM code 301. This can be used
to cause one of the OEM Trigger signals to automatically run a macro when asserted.

1) To do this, the OEM Trigger signal must first be configured in Config->Ports&Pins>InputSignals.

2) Then the OEM Trigger must be associated with OEM code 301 in
Config->SystemHotKeys. Finally, SetTriggerMacro must be used to define which Mmacro
will be executed when OEM button code 301 is executed.
Re: my very simple brain just wont work.....
« Reply #8 on: December 09, 2012, 09:59:02 PM »
Good Job !
I just set this up myself 2 days ago. Using 4 inputs to 4 triggers, 1 macro w/4 different If's.
Was just looking for the pertinent topic to post for you.
I will anyway to help clarify the process for anyone else following this.
http://www.machsupport.com/forum/index.php/topic,16607.0.html
Neat stuff !

Thanks for posting your progress,
Russ
Re: my very simple brain just wont work.....
« Reply #9 on: December 09, 2012, 10:02:14 PM »
Hi Russ,


***** edit **** sorry i just found your thread had a page two! Working in a -8c work shop is effecting my ability to function normally

Thanks for posting your progress as well…. I love mach3, run in to an issue and the answer is out there or people are willing to help solve it!
« Last Edit: December 09, 2012, 10:04:52 PM by jestah »