GE 90-30/20/Micro manual Conversion Functions, Abbreviation Function Description

Models: 90-30/20/Micro

1 311
Download 311 pages 52.91 Kb
Page 175
Image 175

4

Section 8: Conversion Functions

Use the conversion functions to convert a data item from one number type to another. Many programming instructions, such as math functions, must be used with data of one type. This section describes the following conversion functions:

Abbreviation

Function

Description

Page

 

 

 

 

 

 

 

 

BCD-4

Convert to BCD-4

Convert a signed integer to 4-digit BCD

4-95

 

 

format.

 

 

 

 

 

INT

Convert to Signed Integer

Convert BCD-4 or REAL to signed integer.

4-97

 

 

 

 

DINT

Convert to Double Precision

Convert REAL to double precision signed

4-99

 

Signed Integer

integer format.

 

 

 

 

 

REAL

Convert to REAL

Convert INT, DINT, BCD-4, or WORD to

4-101

 

 

REAL.

 

 

 

 

 

WORD

Convert to WORD

Convert REAL to WORD format.

4-103

 

 

 

 

TRUN

Truncate

Round the real number toward zero.

4-105

 

 

 

 

4-94

Series 90-30/20/Micro Programmable Controllers Reference Manual–September 1998

GFK-0467K

Page 175
Image 175
GE 90-30/20/Micro manual Conversion Functions, Abbreviation Function Description