Data Formats For Digital Display |
Top Previous Next |
If you do not pursue an object you shall prefer the use of INT, DINT or REAL.
BIT, BOOL: the state of the bit is displayed as 0 (off, wrong) or 1 (on, true). In general an indicator light is more useful to display a bit.
Unsigned BYTE (1Byte): The range is from 0 to 255. Useful PLC-commands: INC and DEC
Signed BYTE (1Byte): The range is from -128 to +128. In FBD, LAD and STL this data type has got no correspondence.
Hex-BYTE (1Byte): The range is from 00 to FF, permitted are the numbers from 0 to 9 as well as the letters from A to F. If you only make use of numbers it will be possible to use this type as two-digit BCD as well.
BYTE as bit pattern (1Byte): The range is from 0000 0000 to 1111 1111. Only the numbers 0 and 1 are permitted. You can enter space characters and ‘_’, but these are not displayed afterwards.
WORD (2Byte): The range is from 0 to 65.535.
INT (2Byte): The range is from -32.768 to +32.767. Useful PLC-commands: +I, -I, *I and /I
Hex WORD (2Byte): The range is from 0000 to FFFF. Permitted are the numbers from 0 to 9 as well as letters from A to F. If you only make use of numbers you can use this type as four-digit BCD without a sign.
Three-digit BCD with sign (2Byte): The range is from -999 to +999. The number will be interpreted as negative if the four bits with the highest value equal 1. Useful PLC-commands: BTI and ITB. You cannot make a calculation with BCD-numbers.
WORD as bit pattern (2Byte): The range is from 0000 0000 0000 0000 to 1111 1111 1111 1111. Only the numbers 0 and 1 are permitted.While entering you can use space characters and ‘_’, but these are not displayed afterwards.
DWORD (4Byte): The range is from 0 to 4.294.967.295.
DINT (4Byte): The range is from -2.147.483.648 to 2.147.483.647. Useful PLC-commands: +D, -D, *D and /D
Hex-DWORD: The range is from 0000 0000 to FFFF FFFF. The numbers from 0 to 9 as well as the letters from A to F are permitted. While entering you can use space characters and ‘_’, but these are not displayed afterwards.
7-digit BCD with sign (4Byte): The range is from -9.999.999 to +9.999.999. The number will be interpreted as negative if the four bits with the highest value equal 1. Useful PLC-commands: BTD and DTB. You cannot make a calculation with BCD-numbers.
REAL (4Bytes): floating point numbers Useful PLC-commands: +R, -R, *R, /R, DTR and RND
Back to digital display
|