Chapter 4. Ladder Diagram (LD) Programming
132
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C
4.6.10
Truncate
When power is received, the Truncate functions TRUNC_DINT and
TRUNC_INT round a floating-point (REAL) value down respectively to the
nearest signed double-precision signed integer (DINT) or signed single-
precision integer (INT) value. TRUNC_DINT and TRUNC_INT output the
converted value to Q. The original data is not changed.
Note:
The output data can be used directly as input for another program function.
TRUNC_DINT and TRUNC_INT pass power flow when power is received, unless the specified
conversion would result in a value that is out of range or unless IN is NaN (Not a Number).
Operands
Parameter Description
Allowed Operands Optional
IN
The REAL value whose copy is to be converted and truncated.
The original is left intact.
All except S, SA, SB,
and SC
No
Q
The truncated value of the original REAL value in IN.
All except S, SA, SB,
and SC
No
Example
The displayed constant is truncated and the integer result 562 is placed in %T0001.
Summary of Contents for PACSystems RSTi-EP
Page 357: ......
Page 466: ...Chapter 9 Diagnostics GFK 2950C February 2018 451 ...