Trunc - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Chapter 5
Arithmetic instructions

TRUNC

Parameter
EN
IN
TRUNC
ENO
106
TRUNC truncates Real values, leaving just the integer.
Arguments
Data Type
Parameter
Type
Input
BOOL
Input
REAL
Output
REAL
Output
BOOL
TRUNC function language examples
Function block diagram
Ladder diagram
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When EN = TRUE, perform the truncation of Real value computation.
When EN = FALSE, there is no computation.
Any Real value.
If IN>0, biggest integer less or equal to the input.
If IN<0, least integer greater or equal to the input.
Enable out.

Advertisement

Table of Contents
loading

Table of Contents