Hello Guest it is March 28, 2024, 04:56:57 PM

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

0 Members and 1 Guest are viewing this topic.

Offline fast89

*
  •  154 154
    • View Profile
Re: Making an output stay active until deactivated
« Reply #10 on: February 25, 2013, 07:17:16 PM »
My brain is the control panel input. All the switches in the control panel go into pokeys and are brain controlled. Except MPG and drawbar cylinder, they go right to the breakout board.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Making an output stay active until deactivated
« Reply #11 on: February 26, 2013, 03:07:26 AM »
Ok what I was really meaning was what exactly is in your Brain, ie is it just a single input switching a single output and if so what input?
You could do it this way, I will just use input 1 as an example but you would obviously need to change to suit, also I have used UserLED 1111, if you already use that then again you would need to change to suit.
 What you would do is in the Brain have it look at the input and also look at the user LED, you would then Or them. Your macro would then turn the UserLED on. See screenshots.
 Just a word of caution, using macros under 100 is not the best idea as they are reserved for Machs internal functions, at this time M17 is not used for anything but in the future it may well be so best to use m117 or something similar.
Hood

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Making an output stay active until deactivated
« Reply #12 on: February 26, 2013, 10:12:38 AM »
Hood from what testing I did the problem lies with the brain. It only knows 2 states of an output. It either turns it ON or turns it OFF. AND that is a continous turn on or off. So if you turn the output on with a macro the brain turns it right back off.

Just a thought, (;-) TP

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Making an output stay active until deactivated
« Reply #13 on: February 26, 2013, 10:23:06 AM »
Seems to work fine for me with the or as above, LED for output stays lit until I turn it off with another macro via the user LED.
Also seems to turn on/off fine with a latching switch (assuming the User LED is off ;)  )

Hood

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Making an output stay active until deactivated
« Reply #14 on: February 26, 2013, 11:59:09 AM »
hUM I never tried it that way.

(;-) TP

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Making an output stay active until deactivated
« Reply #15 on: February 26, 2013, 12:16:14 PM »
Yep the OR is the trick. Interesting(;-) as to why the OR turns off the dual mode BUT a single entry uses the dual mode of switching.

Would be nioce IF there were a manual defining all the definitions of the controls. as it is it is a guessing game as to how to use them.

(;-) TP
« Last Edit: February 26, 2013, 12:18:58 PM by BR549 »

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Making an output stay active until deactivated
« Reply #16 on: February 26, 2013, 01:17:05 PM »

The Or will work as there are two possible options to turn the output on so you can use either of them.

Art would likely be the only one who could tell you all the definitions/options/whatever but now he is retired I dont think he will be volunteering to write a manual ;D
.
Hood