Basics
42
For FP-e and FP0 only: Do not use REAL instructions in interrupt programs.
You can enter REAL values in the following format:
[+-] Integer.Integer [(Ee) [+-] Integer]
Examples:
5.983e-7
-33.876e12
3.876e3
0.000123
123.0
The REAL value always has to be entered with a decimal point (e.g. 123.0).
1.4.1.7 WORD
A variable of the data type WORD consists of 16 binary states. The switching states of 16 in/outputs can be
combined as a unity in one word (WORD).
The default initial value of a variable of this data type is 0.
Numbers can be entered in decimal, hexadecimal or binary format.
Decimal number Hexadecimal number Binary number
1234 16#4D2 2#10011010010
64302 16#FB2E 2#1111101100101110
1.4.1.8 DWORD
A variable of the data type DOUBLE WORD consists of 32 binary states. The switching states of 32
inputs/outputs can be combined as a unity in one DOUBLE WORD.
The default initial value of a variable of this data type is 0.
Numbers can be entered in decimal, hexadecimal or binary format.
Decimal number Hexadecimal number Binary number
123456789 16#75BCD15 2#111010110111100110100010101
4171510507 16#F8A432EB 2#1111100010100100001100101110
1.4.1.9 TIME
TIME (16 Bits): FP3, FP-C, FP5, FP10, FP10S
For variables of the data type TIME (16 bits) you can indicate a duration of 0.01 to 327.67 seconds. The
resolution amounts to 10 ms.
TIME (32 Bits): FP-X, FP-Sigma, FP0, FP0R, FP2/2SH, FP10SH
For variables of the data type TIME (32 bits) you can indicate a duration of 0.01 to 21 474 836.47 seconds. The