11. Floating Point Operation Design Examples 11.2 Elementary Arithmetic for Floating Point Control Purpose: z Perform the operation (1.236+1.324) Ч 2.5 ч 10.24 by Delta’s binary floating point operation instruction. Devices: Control Program: X0 The values in D1 and D0 are combined into a decimal floating point value:1.236=1236X10 -3 The values in D3 and D2 are combined into a decimal floating point value:1.324=1324X10 -3 The values in D5 and D4 are combined into a decimal floating point value:2.5=25X10 -1 The values in D7 and D6 are combined into a decimal floating point value:10.24=1024X10 -2 X1 A decimal floating point value is converted into a binary floating point.
1.236+1.324 (1.236+1.324) 2.5 Ч (1.236+1.324) 2.5 10.24 Ч ч A binary floating point value is converted into a decimal floating point . DVP-PLC Application Examples 11-4 Device Function X0 Initialization switch X1 Operation control switch MOVP K1236 D0 MOVP K-3 D1 MOVP K1324 D2 MOVP K-3 D3 MOVP K25 D4 MOVP K-1 D5 MOVP K1024 D6 MOVP K-2 D7 DEBIN D0 D10 DEBIN D2 D12 DEBIN D4 D14 DEBIN D6 D16 DEADD D10 D12 D100 DEMUL D100 D14 D102 DEDIV D102 D16 D104 DEBCD D104 D106