Download User Guide PLC WorkShop for Modicon

Transcript
PLC WorkShop for Modicon
Chapter 11 – Instructions, Miscellaneous Instructions
ITOF (Signed/Unsigned Integer-to-Floating Point Conversion)
DESCRIPTION
ITOF is a three-node instruction that converts signed or unsigned integer value in the top
node to a floating point (FP) value and posts that FP value in two contiguous holding
registers. The first register is specified in the middle node.
Figure 86 – ITOF Instruction
The top and middle nodes may contain either:
l
A constant value up to 65,535
l
A 3x input register
l
A 4x holding register
The middle node is the first of two contiguous 4x holding registers where the converted
floating point value is stored.
The bottom node contains a constant value of 1.
FTOI (Floating Point-to-Signed/Unsigned Integer Conversion)
DESCRIPTION
FTOI is a three-node instruction that converts the floating point (FP) value in the top
node to a signed or unsigned integer value and posts that integer value in the middle node.
- 639 -