23 August, 2020

Introduction of Logic Gates

1. AND Gate


    Logic Diagram :

AND-GATE
AND Gate
  • The AND gate is an electronic circuit that gives a high output (1) only if all its inputs are high. 
  • A dot (.) is used to show the AND operation.

     AND Gate Truth Table : 


Inputs

Output

A

B

0

0

0

0

1

0

1

0

0

1

1

1


2. OR Gate


    Logic Diagram :

OR-GATE
OR Gate
  • The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs are high. 
  • A plus (+) is used to show the OR operation.

    OR Gate Truth Table : 


Inputs

Output

A

B

0

0

0

0

1

1

1

0

1

1

1

1


3. NOT Gate


    Logic Diagram :

NOT-GATE
NOT Gate
  • The NOT gate is an electronic circuit that produces an inverted version of the input at its output.  
  •  It is also known as an inverter gate.

    NOT Gate Truth Table :


Inputs

Output

A

0

1

1

0


4. NAND Gate


    Logic Diagram :

NAND-GATE
NAND Gate
  • This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. 
  • The outputs of all NAND gates are high if any of the inputs are low. 
  • The symbol is an AND gate with a small circle on the output. 
  • The small circle represents inversion.

     NAND Gate Truth Table : 


Inputs

Output

A

B

0

0

1

0

1

1

1

0

1

1

1

0


5. NOR Gate


    Logic Diagram :

NOR-GATE
NOR Gate
  • This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate.  
  • The outputs of all NOR gates are low if any of the inputs are high.
  • The symbol is an OR gate with a small circle on the output.  
  • The small circle represents inversion.

    NOR Gate Truth Table : 


Inputs

Output

A

B

0

0

1

0

1

0

1

0

0

1

1

0


6. EXCLUSIVE-OR Gate


    Logic Diagram :

XOR-GATE
Exclusive-OR Gate
  • The 'Exclusive-OR' gate is a circuit which will give a high output if either, but not both, of its two inputs are high. 
  • An encircled plus sign () is used to show the Exclusive-OR operation.

   Exclusive-OR Gate Truth Table : 


Inputs

Output

A

B

0

0

0

0

1

1

1

0

1

1

1

0


7. EXCLUSIVE-NOR Gate


    Logic Diagram :

XNOR-GATE
Exclusive-NOR Gate
  • The 'Exclusive-NOR' gate circuit does the opposite to the Exclusive-OR gate. 
  • It will give a low output if either, but not both, of its two inputs are high.
  • The symbol is an Exclusive-OR gate with a small circle on the output. 
  • The small circle represents inversion.

   Exclusive-NOR Gate Truth Table : 


Inputs

Output

A

B

0

0

1

0

1

0

1

0

0

1

1

1

15 August, 2020

PLC Data Types

What are the 5 Main Data Types Use in PLC?
  1. Bool
  2. Integer
  3. Real
  4. String
  5. Character

PLC Data Types Table :


Data Type

Size in Bits

Format

Data Types Example/ Range

BOOL (Bit)

1

Boolean 

TRUE/FALSE 

BYTE (Byte)

8

Hexadecimal number

B#16#0 to B#16#FF 

WORD (Word)

16

Binary number

2#0 to 2#1111_1111_1111_1111

Hexadecimal number

W#16#0 to W#16#FFFF

BCD

C#0 to C#999

Decimal number unsigned

B#(0,0) to B#(255,255)

DWORD (Double word)

32

Binary number

2#0 to 2#1111_1111_1111_1111_1111_1111_1111_1111

Hexadecimal number

W#16#0000_0000 to W#16#FFFF_FFFF

Decimal number unsigned

B#(0,0,0,0) to B#(255,255,255,255)

INT (Integer)

16

Decimal number signed

-32768 to 32767

DINT (Double integer)

32

Decimal number signed

L#-2147483648 to L#2147483647

REAL (Floating-point number)

32

IEEE Floating-point number

Upper limit +/-3.402823e+38     Lower limit +/-1.175495e-38

CHAR (Character)

8

ASCII characters

A', 'B' etc.


Featured post

Up Counter Instruction In PLC