Truncate - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
4.6.10

Truncate

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
IN
The REAL value whose copy is to be converted and truncated.
The original is left intact.
Q
The truncated value of the original REAL value in IN.
Example
The displayed constant is truncated and the integer result 562 is placed in %T0001.
132
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
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.
Allowed Operands
Optional
All except S, SA, SB,
No
and SC
All except S, SA, SB,
No
and SC
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents