Realn_To_Dint; Realn_To_Dint_Simp - ABB ACSM1 Firmware Manual

Speed and torque control program
Hide thumbs Also See for ACSM1:
Table of Contents

Advertisement

248
Inputs
Outputs

REALn_TO_DINT

(10029)
Illustration
Execution time
Operation
Inputs
Outputs

REALn_TO_DINT_SIMP

(10028)
Illustration
Execution time
Operation
Standard function blocks
Input (I): REAL24
Output (O): REAL
REALn_TO_DINT
(REAL)
TLA1 1 msec
I
6.45 µs
Output (O) is the 32-bit integer equivalent of the REAL/REAL24 input (I). Output O1 is
the integer value and output O2 is the fractional value.
The output value is limited to the maximum value of the data type range.
Example (from REAL to DINT):
When I = 2.04998779297, O1 = 2 and O2 = 3276.
The input data type is selected by the user.
Input (I): REAL, REAL24
Output (O1, O2): DINT
REALn_TO_DINT_SIMP
(REAL)
TLA1 1 msec
I
SCALE
5.54 µs
Output (O) is the 32-bit integer equivalent of the REAL/REAL24 input (I) multiplied by
the scale input (SCALE).
Error codes are indicated by the error output (ERRC) as follows:
Error code
Description
0
No error
1001
The calculated integer value exceeds the minimum value. The output
is set to the minimum value.
1002
The calculated integer value exceeds the maximum value. The
output is set to the maximum value.
1003
Scale input is 0. The output is set to 0.
1004
Incorrect scale input, i.e. scale input is < 0 or is not a factor of 10.
Example (from REAL to DINT):
When I = 2.04998779297and SCALE = 100, O = 204.
91
(1)
O1(91)
O1
O2(91)
O2
92
(1)
O(92)
O
ERRC(92)
ERRC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents