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 #297 background imageLoading...
Page #297 background image
2-249
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Type Conversion Instructions
2
**_TO_*** (Real Number-to-Bit String Conversion Group)
**_TO_*** (Real Number-to-Bit
String Conversion Group)
These instructions convert real numbers to bit strings.
* 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 a bit string.
The name of the instruction is determined by the data types of In and conversion output Out. For exam-
ple, if In is LREAL data and Out is DWORD data, the name of the instruction is LREAL_TO_DWORD.
The following example for the LREAL_TO_DWORD instruction is for when In is LREAL#6.5536e+4.
Instruction Name FB/FUN Graphic expression ST expression
**_TO_*** Real Number-to-
Bit String Conver-
sion Group
FUN Out:=**_TO_*** (In);
"**" must be a real number
data type.
"***" must be a bit string
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 OKOKOKOK
Function
"**" must be a real number data type.
"***" must be a bit string data type.
(@)**_TO_***
EN ENO
In Out
abc:=LREAL_TO_DWORD(LREAL#6.5536e+4);
LD
ST
abc
LREAL#6.5536e+4
LREAL_TO_DWORD
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