PLCDontUQuitOnMe
Member
This one program where I need to use a pushbutton button to control a motor is giving me a bit of trouble. Normally this would be a sinch, but I'm having some trouble with this one.
Basically I need the pushbutton to turn on a bit when it's pushed and I need it to turn on the same bit when it's off. This function of the button can only start after it is first pressed.
I tried the usual
A I 0.0
ON I 0.0
= M 1.0
But the problem is that the bit must give a rising edge whenever the button goes from off to on or from off to on. The above logic won't give a rising edge. Furthermore, it will never give a rising edge except for the first time OB1 runs. Anyone help me out.
I've tried using every possible combination of FP, FN that I can think of and nothing works.
It's sort of like a toggle but not...
Basically I need the pushbutton to turn on a bit when it's pushed and I need it to turn on the same bit when it's off. This function of the button can only start after it is first pressed.
I tried the usual
A I 0.0
ON I 0.0
= M 1.0
But the problem is that the bit must give a rising edge whenever the button goes from off to on or from off to on. The above logic won't give a rising edge. Furthermore, it will never give a rising edge except for the first time OB1 runs. Anyone help me out.
I've tried using every possible combination of FP, FN that I can think of and nothing works.
It's sort of like a toggle but not...