help Pulse instruction in AllenB

MrQ

Member
Join Date
Feb 2005
Posts
236
Hello,

I am starting to think I am stupid. New to compactlogix and rslogix.

I just need to generate a 2 seccond pulse.

INPUT goes true output shall be true for 2 secconds and then turn false even if input is true.

I have been trying TOF, TON etc but i just can't get it to work.

HELP!
 
You can achieve this in many ways.One such way is this:


|Input O1 +------+
|-| |--[ONS]---------| TOF |
| | T1 |
| +------+
|
|T1.DN Output
|-| |-------------------( )

 
|T2.DN...............+------+
|-|/|-------------| TON |

|.......................|.. T1.. |

|.......................+------+

|T1.DN................+------+
|-||--------------| TON |

|.......................|.. T2.. |

|........................+------+


|T1.DN................Output1
|-|/|-------------------( )

OUTPUT1=2 SECOND PULSE
 
Last edited:
It may help your thinking to use the Timer.TT bit instead of the timer done bit. This is true while the timer is timing.

This will give a 2 sec pulse is the input remains true for 2 or more seconds:

---|input|-------------(Timer)---

---|Timer.TT|---------(Output)---

If you want the 2 second pulse to happen even if the input goes false, then you need to "seal in" the input with the timer.TT bit:

------|input|-------------(Timer)---
| |
| --|Timer.TT|--|


---|Timer.TT|------------(Output)---
 
INPUT goes true output shall be true for 2 secconds and then turn false even if input is true.
What do you want to happen when the input goes from true to false, then back to true? Should you get another 2-second pulse, or not? In other words, do you want the pulse to repeat, or just strictly ON for the first time that the input goes true? Or do you want the pulse to go on 2 seconds, off 2 seconds, then repeat, as long as the input is true?
 
Define tag PulseTimer of type timer.
Define Alias tag Pulse2Sec, base tag is PulseTimer.TT


Trigger
-+------] [------+----------+-TON--------------+-(EN)
| | |Timer PulseTimer |-(DN)
| | |PRE 2000 |
| PulseTimer.TT | |ACC 0 |
+------] [------+ +------------------+




This timer will begin timing whenever trigger is true. Should trigger last less than two seconds or more than two seconds, the TT bit will still be true for only two seconds.

Elsewhere in your program, wherever you need the pulse, use the Pulse2Sec alias tag - it will improve program clarity.


Pulse2Sec Output
-----] [----------------------------( )---

 

Similar Topics

Hello dear members. I've been looking for a GSD file of a Litronic pulsregler with no success. I Cant even find a contact of the manufacturer. By...
Replies
3
Views
1,293
I have an issue with one pulse input. The LS0 is the sensors. The sensor stays ON one one of them and this makes the next step continuously gain...
Replies
1
Views
1,054
Hello All, This is my first time working with encoders and I am a little lost. I have a 1769-HSC/B card on a Compactlogix L32E controller running...
Replies
6
Views
2,989
Hey guys, I have a client that has a v-notch chlorinator that doesn't run off a 4-20mA loop, it instead has two discrete inputs that drive the...
Replies
6
Views
1,864
Hello all, I'm using a Omron CP1H-XA40DT-D programmed with CX-Programmer V9.3. I have programmed the Plc to move a camera on two axis on top of...
Replies
10
Views
3,220
Back
Top Bottom