boolen teory

13
Chapter - Boolean Logic Design AND A 0 0 1 1 B 0 1 0 1 X 0 0 0 1 X A B = OR A 0 0 1 1 B 0 1 0 1 X 0 1 1 1 X A B + = NOT A 0 1 X 1 0 X A = EO R A 0 0 1 1 B 0 1 0 1 X 0 1 1 0 X A B = NAND A 0 0 1 1 B 0 1 0 1 X 1 1 1 0 X A B = NOR A 0 0 1 1 B 0 1 0 1 X 1 0 0 0 X A B + = A B A B A B A B A B A X X X X X X

Upload: moddy-cavallindo

Post on 15-Dec-2015

213 views

Category:

Documents


0 download

DESCRIPTION

mechatronics

TRANSCRIPT

Page 1: Boolen teory

Chapter - Boolean Logic Design

AND

A

0011

B

0101

X

0001

X A B=

OR

A

0011

B

0101

X

0111

X A B+=

NOT

A

01

X

10

X A=

EOR

A

0011

B

0101

X

0110

X A B=

NAND

A

0011

B

0101

X

1110

X A B=

NOR

A

0011

B

0101

X

1000

X A B+=

AB

AB

AB

AB

AB

AX X X

X X X

Page 2: Boolen teory

Boolean Axioms A A+ A= A A A=

Idempotent

A B+ C+ A B C+ += A B C A B C =

Associative

A B+ B A+= A B B A=

Commutative

A B C + A B+ A C+ = A B C+ A B A C +=

Distributive

A 0+ A= A 1+ 1=

Identity

A 0 0= A 1 A=

A A+ 1= A A=

Complement

A A 0= 1 0=

A B+ A B= A B A B+=

DeMorgan’s

Page 3: Boolen teory

Example Equation

X A B C+ A B C+ +=

Write the ladder logic

Page 4: Boolen teory

Some logic form examples

NAND

X A B=

X A B+=

NOR

X A B+=

X A B=

A

B

X

A B X

EOR

X A B=

X A B A B+=A B X

Page 5: Boolen teory

A B C D E C+ + F C+ =

Boolean Example

Page 6: Boolen teory

Example Description

Process Description:A heating oven with two bays can heat one ingot in each bay. When the heater is on it provides enough heat for two ingots. But, if only one ingot is present the oven may become too hot, so a fan is used to cool the oven when it passes a set temperature.

Control Description:If the temperature is too high and there is an ingot in only one bay then turn on fan.

Define Inputs and Outputs:B1 = bay 1 ingot presentB2 = bay 2 ingot presentF = fanT = temperature overheat sensor

Page 7: Boolen teory

The equation

F T B1 B2 =

Simplified

Ladder Logic

Page 8: Boolen teory

Simplified Further

Ladder Logic

Page 9: Boolen teory

Circuits can be reverse engineered to Boolean equations

A

B

C

B

C

A

X

And then to Ladder Logic

Page 10: Boolen teory

Simplify the following and write ladder logic

A B+ A B+

Page 11: Boolen teory

Simplify the following and write the ladder logic

ABCD ABCD ABCD ABCD+ + +

Page 12: Boolen teory

A B C D+ + B C+ A B C D+ ++

Simplify the following and write the ladder logic

Page 13: Boolen teory

Example Case

Problem: Design a controller using an equation that will turn on an output to a cylinder ‘C’ when only one of two optical sensors, ‘A’ or ‘B’, is on. The system will be disabled if an input switch ‘D’ is on.

Hint: start with a truth table