English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

My friend in work is trying to program a PLC and got a question...does an "and (&)" gate with 3 inputs need to have all three inputs positive to give a positive output or will just 2 do it?...what is the gate called that has multiple inputs (which have to be active) to give a positive output

2007-02-13 05:32:04 · 9 answers · asked by Anonymous in Computers & Internet Programming & Design

9 answers

With PLC ladder logic programming switches in series are AND while switches in parallel are OR.

So three switches placed in series would be

SW1 AND SW2 AND SW3 = OUTPUT

All three switches must evaluate to a TRUE condition in order for the OUTPUT to be placed in a TRUE condition. If any switch is FALSE then the result is FALSE

2007-02-13 08:40:05 · answer #1 · answered by MarkG 7 · 1 0

Input 1 AND input 2 AND input 3 must all be positive to give positive output.

2007-02-13 05:44:04 · answer #2 · answered by bulliont 2 · 2 0

I'm not really sure, but isn't it an OR gate which only needs one of the inputs to be positive.

And for the and gates, all three would have to be positive.

2007-02-13 06:34:30 · answer #3 · answered by Ben P 2 · 1 0

AND logic requires that all inputs be positive for output to be positive, so I would assume yes. I don't know the name of the gate you are talking about, but I recall using it.

2007-02-13 06:03:30 · answer #4 · answered by Pfo 7 · 1 0

If you desire three inputs to create a result and all inputs correspond to a given output then it would not be logical to use such an expression in programmatic terms. Since you are asking that a.b.c should equate to the same value, it is better to test these values within seperate functions and then to evaluate tthe values of a b and c. Thereby you should not even be asked to use such a function because in a larger heirachy of class design this can give an unresolved solution

2007-02-13 12:31:40 · answer #5 · answered by Anonymous · 1 0

For your first one you are saying I want to have a value and it is called "i" I want to make it equal to 4 and everytime I go through this loop and i is less than or equal 9, print out what 3 time i is.. then add 1 to i here is the output 12 15 18 21 24 27 You can apply this to the others as well. += is the same as ++ unless the value is higher than 1, ie +=2 means increment by 2

2016-05-24 05:44:29 · answer #6 · answered by Melissa 3 · 0 0

because its a AND gate all the inputs have to be positive, to have a positive output, if any is negitive the output will be negitive.

2007-02-13 05:39:28 · answer #7 · answered by suby 3 · 2 0

All three must be positive. It's called an AND gate.

2007-02-13 06:00:37 · answer #8 · answered by Meg W 5 · 0 1

Its easy, its a punnani gate, that in turn fluctuates the voltage to create a mugabi gate on demand.

2007-02-13 05:36:17 · answer #9 · answered by Anonymous · 0 3

fedest.com, questions and answers