This function takes 2 non-float values (whole numbers) and creates a single floating value.
The two non-float values are added together; the A input, a whole number, is added to the B input, which is the fractional part of the number following the decimal point.
Note♦ The Data Type ( M I or M L) selected for operand B determine n, the number of digits that follow the point. When an MI is selected, n equals 1000; when an ML is selected, n equals 1,000,000.
Casting separates an MF value into two registers, where output A contains the whole number, and output B contains the fractional part of the number following the decimal point.
This function enables you to show floating-point values on the controller screen, by using 2 Numeric Display Variables, linked to the output MIs.
Note ♦
The Data Type ( M I or M L) selected for operand B determine n, the number of digits that follow the point. When an MI is selected, n equals 1000; when an ML is selected, n equals 1,000,000.