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 #292 background imageLoading...
Page #292 background image
2 Instruction Descriptions
2-244
NJ-series Instructions Reference Manual (W502)
**_TO_*** (Bit String-to-Real
Number Conversion Group)
These instructions convert bit strings to real numbers.
* The valid ranges depend on the data types of In and Out. Refer to Function, below, for details.
These instructions take a bit string, In, as an unsigned integer of the same size and convert it to a real
number.
The name of the instruction is determined by the data types of In and conversion result Out. For exam-
ple, if In is WORD data and Out is REAL data, the name of the instruction is WORD_TO_REAL.
The following example for the WORD_TO_REAL instruction is for when In is WORD#16#8000.
Instruction Name FB/FUN Graphic expression ST expression
**_TO_*** Bit String-to-Real
Number Conversion
Group
FUN Out:=**_TO_*** (In);
"**" must be a bit string data
type.
"***" must be a real number
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 OK OK
Out OK OK
Function
"**" must be a bit string data type.
"***" must be a real number data type.
(@)**_TO_***
EN ENO
In Out
abc:=WORD_TO_REAL(WORD#16#8000);
LD
ST
abc
WORD#16#8000
WORD_TO_REAL
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