How would you write this?

mort

Member
Join Date
Nov 2004
Posts
4
I want to write a simple ladder logic sequence.
When the input comes on, the output turns on.
When the input turns off, the output turns on.

I believe we will need to have the output on a timer so that we can adjust the "time on" and make sure the signal is sensed by another controller before it turns off.

We don't know if the input is a short pulse or is held on for a long time.

I know this is simple, but my brain goes flat every time I try to write it. Thanks.
 
mort said:
When the input comes on, the output turns on.
When the input turns off, the output turns on.

Can you clarify that? When does the output turn off?

Do you mean to say that whenever the input changes state, the output comes on for a short period?
 
confused?

-------]  [----------------(   )------------
----------------]/[-----------( )---------



The above will do:
When the input comes on, the output turns on. When the input turns off, the output turns on.


I believe we will need to have the output on a timer so that we can adjust the "time on" and make sure the signal is sensed by another controller before it turns off.
When you figure out just what you need to do for sure here, your brain will probably kick in and help you out. Remember, you can not write a program for any situation you do not fully understand! So, try your best, post some of your work and we can help you from there.
 
<<Do you mean to say that whenever the input changes state, the output comes on for a short period?>>
Yes, that's right. The output comes on for a short period of time and the "on time" is adjustable. Thx
 
I'm not quite sure what you want the output to do. Do you want it to turn on for a brief period every time the input changes state?

If your PLC has one, this might be a place for an off-delay timer. trigger the off-delay timer by parallel one-shots. The parallel one-shots should be the positive and the negative transitions of the input. The preset of the timer will be the duration that the output is on at each transition of the input. If the input is on for less time than the timer preset, you'll only get the output to turn on once.
 
The following is very generic... your mileage might vary.


INPUT SIGNAL
+-------------------------+
|--+ |--+
---+ | +- |--
| |
| |
| +-----+ | +-----+
+->|/////| +->|/////|
------+/////+------ -------+/////+-----
Timer Timer
| |
+-------------------------+--------> Output



If Input goes ON or OFF...
...Start a timer...
...While the Timer is running, turn ON the Output.

The following assumes that you have transition detectors (if not, they can be easily made).

If the Input Signal changes state while the Timer is running then the Timer will reset at the end of the time as initiated by the previous transition.

INPUT RST
JUST ON TMR
---|/\|---+---|/|--------( RUN TMR )
|
INPUT |
JUST OFF |
---|\/|---+
|
|
RUN TMR |
---|\/|---+


RUN TMR +-------+
---| |-----| Timer |-----( Time Out )
+-------+

RUN TMR Time Out
---| |--------|/|--------( Output )


 

Similar Topics

Hello, I am fairly experienced programming and modifying existing FTView ME programs. I have also used FTView SE to make modifications to a...
Replies
5
Views
133
Hi I have a ifix 5.5 application where the operator opens a valve by clicking on a screen object. I can trace from object to data base that it is...
Replies
2
Views
65
Hi everyone, I hope you're all doing well. I'm currently working on updating an HMI project for the GP2500, and I've encountered a bit of a...
Replies
1
Views
128
I've gotten to the learning curve where I can program a call for pump to come on at set point but I'm not sure how to turn the same pump off when...
Replies
1
Views
157
Hi everyone, I am working on a project that needs to expose the SV (Set Value) of a temperature controller to a SCADA system. SCADA <-...
Replies
4
Views
192
Back
Top Bottom