Hello Guest it is September 15, 2019, 09:18:02 PM

Author Topic: Toggle output from button input?  (Read 8678 times)

0 Members and 1 Guest are viewing this topic.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Toggle output from button input?
« Reply #30 on: March 10, 2015, 06:51:54 AM »
i am not a friend of the macropump road.
can i get you into my OEMTRIGGER road as described in my small tutorial (PDF) ?

Hi Thomas

Unfortunately trigger macros have been "damaged" for many years. Your scheme as described (in your PDF) will work fine as long as Mach's not doing anything else but try triggering your macro whilst some gcode is running. I think you'll be disappointed. :'(

I tried for years to get this fixed but to no avail.

Ian

Offline TPS

*
  •  1,388 1,388
    • View Profile
Re: Toggle output from button input?
« Reply #31 on: March 10, 2015, 07:07:41 AM »
Hello Ian,

thank you for this information, never tryed this.

So the only possibilities during running the machine will be

macropump and brain (but brains are also courious sometimes).

Thomas
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Toggle output from button input?
« Reply #32 on: March 10, 2015, 07:54:37 AM »
indeed (note that OEM triggers are fine - they fire immediately - it's just trigger MACROS that have the "turned up late for work" problem).

Offline TPS

*
  •  1,388 1,388
    • View Profile
Re: Toggle output from button input?
« Reply #33 on: March 10, 2015, 08:28:00 AM »
Hello Ian,

- it's just trigger MACROS that have the "turned up late for work" problem).

sorry my english is to bad to translate ("turned up late for work" problem) this correctly, could you please explain ?

Thank You Thomas
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Toggle output from button input?
« Reply #34 on: March 10, 2015, 10:56:30 AM »
Sorry Thomas - I just meant to say that the problem is that the macro runs late i.e. after any gcode buffer is emptied rather than when the trigger actually fires.

Ian

Offline TPS

*
  •  1,388 1,388
    • View Profile
Re: Toggle output from button input?
« Reply #35 on: March 10, 2015, 11:03:54 AM »
ok got it now.

Thomas
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Toggle output from button input?
« Reply #36 on: May 27, 2015, 02:55:05 AM »
hello hood,
as you know all Digital outputs are turned off as soon as  E-stop or Emergency Button or limit Switch is trigged.

i have 2 horizontal Routers that travill Up/Down by a Penumatic Piston controlled by 2 Digital outputs.
and if they were in working in and i press the e stop or any Limit Switch been trigged the piston will go up and damage the Wooden workPiece or breake the tool.

so how i can avoid this problem that these digital outputs not turned off if the E-Stop is trigged or any emergency button is pressed??
please let me know!

regards;
Ghantos

Offline TPS

*
  •  1,388 1,388
    • View Profile
Re: Toggle output from button input?
« Reply #37 on: May 27, 2015, 07:36:15 AM »
Change the valves to 5/2 pulse triggered (4 Outputs).

than the valve stayes in his last Position.

Tomas
« Last Edit: May 27, 2015, 07:39:27 AM by TPS »
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Toggle output from button input?
« Reply #38 on: May 27, 2015, 08:05:46 AM »
Dear Tomas,
thank you for the answer.

by the way i know this solution but the problem that i have no more Outputs to use!

i ask if there is any logic condition or to wirte a macro for this.

please let me know!
regards;
Ghantos

Offline TPS

*
  •  1,388 1,388
    • View Profile
Re: Toggle output from button input?
« Reply #39 on: May 27, 2015, 09:02:06 AM »
Hi,
dont think there is a macro solution, bcause the Outputs will be turned off anyway.

may be you can use a Hardware filp-flop relay (1st puls on, next pulse off and so on)?

Thomas
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.