EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #294 background imageLoading...
Page #294 background image
2 Instruction Descriptions
2-246
NJ-series Instructions Reference Manual (W502)
**_TO_*** (Real Number-to-Integer
Conversion Group)
These instructions convert real numbers to integers.
* The valid ranges depend on the data types of In and Out. Refer to Function, below, for details.
These instructions convert a real number, In, to an integer.
The name of the instruction is determined by the data types of In and conversion result Out. For exam-
ple, if In is LREAL data and Out is LINT data, the name of the instruction is LREAL_TO_LINT.
The following example for the LREAL_TO_LINT instruction is for when In is LREAL#1.0e+10.
Instruction Name FB/FUN Graphic expression ST expression
**_TO_*** Real Number-to-
Integer Conversion
Group
FUN Out:=**_TO_*** (In);
"**" must be a real number
data type.
"***" must be an integer data
type.
Variables
Name Meaning I/O Description Valid range Unit Default
In Data to
convert
Input Data to convert *
--- 0
Out Conver-
sion result
Output Conversion result *
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK OK
Out OKOKOKOKOKOKOKOK
Function
"**" must be a real number data type.
"***" must be an integer data type.
(@)**_TO_***
EN ENO
In Out
abc:=LREAL_TO_LINT(LREAL#1.0e+10);
LD
ST
abc
LREAL#1.0e+10
LREAL_TO_LINT
EN ENO
In

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals