GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-97
4
—>INT (BCD-4, REAL)
The Convert to Signed Integer function is used to output the integer equivalent of BCD-4 or REAL
data. The original data is not changed by this function.
Note
The REAL data type is only available on 350 and 360 series CPUs, Release 9 or
later, or on all releases of CPU352.
When the function receives power flow, it performs the conversion, making the result available via
output Q. The function always passes power flow when power is received, unless the data is out of
range.
_____
| |
(enable) —|BCD4_|— (ok)
| |
| TO_ |
| |
| INT |
(value to be converted) —|IN Q|— (output parameter Q)
|_____|
Parameters:
Parameter Description
enable When the function is enabled, the conversion is performed.
IN IN contains a reference for the BCD-4, REAL, or Constant value to be converted to
integer.
ok The ok output is energized whenever enable is energized, unless the data is out of range
or NaN (Not a Number).
QOutput Q contains the integer form of the original value in IN.