Programming Help

JPFX

Member
Join Date
Feb 2015
Location
New Zealand
Posts
1
Hi,
I am trying to figure out how to achieve the following logic:

I have two inputs and 1 output
I need the output to be on ONLY when BOTH inputs are on
I need the output to be off ONLY when BOTH inputs are off.

I can't figure this one out, please any help will be much appreciated.

Thanks.
 
People are kinder to posts like this if you can show what you've tried so far. This sounds like a homework question and it raises a flag or two. Not that we don't want to help, but we won't do the homework for you... ;)

I'll reword the question to give you a hint.

You want to seal an output on when both Input1 AND Input2 are on, and stay sealed as long as Input1 OR Input2 are on.
 
This is and easy one. AND refers to series contacts. and OR refers to parallel contacts. basically each switch will be used twice in your rung. and then there is a seal in as mentioned above. here is a basic start / stop with sealin contact from the output:
-----I\I---------I  I----------O---
I I
I-----I I-----I

 
Hi,
I am trying to figure out how to achieve the following logic:

I have two inputs and 1 output
I need the output to be on ONLY when BOTH inputs are on
I need the output to be off ONLY when BOTH inputs are off.

I can't figure this one out, please any help will be much appreciated.

Thanks.

The question I have is what is supposed to happen when only one input is on? You didn't specify it was supposed to be a sequence, so that leaves us with undefined states.
 
The question I have is what is supposed to happen when only one input is on? You didn't specify it was supposed to be a sequence, so that leaves us with undefined states.

I'll also state that the two "requirements" are conflicting, and the way they are written neither can be achieved without making the other a nonsense.

In more detail....

1. "I need the output to be on ONLY when BOTH inputs are on"

The highlighted text above is clear and precise, the output should only be on if both inputs are on, so by inference, if either one of the inputs are off, then the output must be off.

2. "I need the output to be off ONLY when BOTH inputs are off.

This second requirement is also clear and precise, the output must be off only if both inputs are off, but this is a contradiction to the first requirement, which stipulates that the output must not be on (must be off) if any one of the two inputs are off.

Clearly the person setting these requirements lacks a good grasp of grammar, by using the phrases "to be on" and "to be off", instead of the phrases "to come on" and "to go off". Only when those changes are made to the specifications can the logic be correctly produced.
 
I'll also state that the two "requirements" are conflicting, and the way they are written neither can be achieved without making the other a nonsense.


Excellent point, daba.
 
do you still need a help

post you program no matter whether is right or wrong

Unless the original requirements are re-written, no amount of help you could give would be able to solve the inherent dilemma imposed by them.
 

Similar Topics

Hi can you help, have a book stitching machine with collates pages in 8 stages. I have installed a camera system that will give an input to...
Replies
24
Views
1,819
I don't have much experience in programming. I can do simple configuration. it is like this. i want to add something to the existing ladder...
Replies
39
Views
6,022
Hello there, I'm practically new to the PLC world, I'm quite familiar with Siemens TIA Portal but I'm currently tasked to program Schneider PLCs...
Replies
5
Views
1,833
Hello All, As you can guess by the title I am a total noob to programming PLC's. So my problem is that I have an old Pallet wrapper that uses an...
Replies
21
Views
4,875
Hi all I have a program question what is the best way to go around the following, i have a micrologix 1400 and I have a mixer that I would...
Replies
13
Views
2,659
Back
Top Bottom