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.


4 comments:

  1. Nice for data types description for beginners

    ReplyDelete
  2. Good Description of data types......

    ReplyDelete
  3. Really informative....\

    ReplyDelete
  4. Easily Understandable in one page.
    Really helpful for the learning...

    ReplyDelete

Featured post

Up Counter Instruction In PLC