Hello Guest it is February 25, 2021, 03:23:01 AM

Author Topic: Making an output stay active until deactivated  (Read 4500 times)

0 Members and 1 Guest are viewing this topic.

Offline fast89

*
  •  144 144
    • View Profile
Making an output stay active until deactivated
« on: February 24, 2013, 03:54:25 PM »
I have an air cylinder to activate the drawbar. Made a m17 macro to activate the cylinder. It works but won't keep the cylinder active on m17. It blips the output then goes to the dwell or sleep function after the ActivateSignal(OUTPUT7) line. I'm sure i'm missing something simple here but i'm tired of fiddling with it. I just need it to hold the output on till i tell it to turn off with another macro.

Offline BR549

*
  •  6,944 6,944
    • View Profile
Re: Making an output stay active until deactivated
« Reply #1 on: February 24, 2013, 05:04:51 PM »
Post the macro you have running.

(;-) TP

Offline fast89

*
  •  144 144
    • View Profile
Re: Making an output stay active until deactivated
« Reply #2 on: February 24, 2013, 05:37:26 PM »
All i have for M17 is
ActivateSignal(output7)

Offline BR549

*
  •  6,944 6,944
    • View Profile
Re: Making an output stay active until deactivated
« Reply #3 on: February 24, 2013, 05:42:42 PM »
OK I see 2 explanations and they are not the same.

1st

It blips the output then goes to the" dwell or sleep function after the ActivateSignal(OUTPUT7) line".

2nd
ActivateSignal(OUTPUT7). only

Which is it going to be ??

(;-) TP

Offline fast89

*
  •  144 144
    • View Profile
Re: Making an output stay active until deactivated
« Reply #4 on: February 24, 2013, 05:47:35 PM »
i tried Sleep 10000, and Code "G4 P5000". Neither would hold the output on for the determined amount of time, just blip it.

Offline BR549

*
  •  6,944 6,944
    • View Profile
Re: Making an output stay active until deactivated
« Reply #5 on: February 24, 2013, 05:53:04 PM »
IF you are using that

ActivateSignal(OUTPUT7)

It should stay on until deactivated.  Does the output led stay on or shut off also. Is the ouput signal present at th PC and is lost in the BOB ??.

You need to verify WHERE you are loosing the signal.  PC? BOB? Cables? Relay?

Just a thought, (;-) TP

Offline fast89

*
  •  144 144
    • View Profile
Re: Making an output stay active until deactivated
« Reply #6 on: February 25, 2013, 04:55:44 PM »
Ok, got some more testing done. The problem appears to be a conflict with having output 7 in a macro and also in a brain. I have a manual push button that is input #2 which will output #7 to knock a tool out. That has worked fine for a year and a half. Now i have added a macro (m17) to activate output#7 With both enabled, it will only blip output#7 and button works fine. With button removed from brain, m17 will hold the output on. And i cannot have two outputs with the same port/pin. Stumped on how to get around this.

Offline BR549

*
  •  6,944 6,944
    • View Profile
Re: Making an output stay active until deactivated
« Reply #7 on: February 25, 2013, 05:54:39 PM »
YES there are QUIRKS in mach brains. In cases like this you are much better off using the macropump to drive the functions.

In the brains where you do a compare option it only knows to turn the ouptput ON or OFF so in your case it is constantly turning OFF the ouput even thought you turn in on somewhere else.

(;-) TP

Offline fast89

*
  •  144 144
    • View Profile
Re: Making an output stay active until deactivated
« Reply #8 on: February 25, 2013, 06:15:37 PM »
Never done a macropump. going to have to do some research

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: Making an output stay active until deactivated
« Reply #9 on: February 25, 2013, 06:17:21 PM »
What does the brain consist of?
Hood