Data Type Conversion Functions Convert Real Data To Word Data; Data Type Conversion Functions Truncate Real Number - GE VersaMax PLC User Manual

Table of Contents

Advertisement

Input/ Output
enable
IN
ok
Q
160
GFK-1503E
For public disclosure
10.4.5 Data Type Conversion Functions Convert Real
Data to Word Data
The Convert to Word function outputs the Word equivalent of Real data. The original data
is not changed by this function.
When the function receives power flow, it performs the conversion, making the result
available via output Q. The function passes power flow when power is received, unless
the specified conversion would result in a value that is outside the range 0 to FFFFh.
Enable
Value to be converted
10.4.5.1 Parameters of the Convert to Word Function
Choices
flow
R, AI, AQ, constant
flow, none
I, Q, M, T, G, R, AI, AQ
10.4.5.2 Example
%I0002
IN Q
%R0003
%R0001
LOW_LIM
10.4.6 Data Type Conversion Functions Truncate
Real Number
The Truncate function copies a Real number and rounds the copied number down to an
integer or double precision integer. The original data is not changed by this function.
When the function receives power flow, it performs the conversion, making the result
available via output Q. The function passes power flow when power is received, unless
the specified conversion would result in a value that is out of range or unless IN is not a
number.
Enable
Value to be converted
OK
IN
Q
Output
Description
When the function is enabled, the conversion is
performed.
IN contains a reference for the value to be
converted to Word type.
OK is energized when the function is performed
without error.
Contains the word form of the original value in IN.
%Q1001
HI_LIM
L1 Q
L2
%R0003
IN
OK
Output
IN
Q
VersaMax PLC User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents