- Bool
- Integer
- Real
- String
- 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. |
Nice for data types description for beginners
ReplyDeleteGood Description of data types......
ReplyDeleteReally informative....\
ReplyDeleteEasily Understandable in one page.
ReplyDeleteReally helpful for the learning...