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 #287 background imageLoading...
Page #287 background image
2-239
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Data Type Conversion Instructions
2
**_TO_*** (Bit String-to-Integer Conversion Group)
**_TO_*** (Bit String-to-Integer
Conversion Group)
These instructions convert bit strings to integers.
* The valid ranges depend on the data types of In and Out. Refer to Function, below, for details.
These instructions convert a bit string, 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 WORD data and Out is INT data, the name of the instruction is WORD_TO_INT.
The following example for the WORD_TO_INT instruction is for when In is WORD #16#1234.
Instruction Name FB/FUN Graphic expression ST expression
**_TO_*** Bit String-to-Inte-
ger Conversion
Group
FUN Out:=**_TO_*** (In);
"**" must be a bit string 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 OK OK
Out OKOKOKOKOKOKOKOK
Function
"**" must be a bit string data type.
"***" must be an integer data type.
(@)**_TO_***
EN ENO
In Out
abc:=WORD_TO_INT(WORD#16#1234);
LD ST
abc
WORD#16#1234
WORD_TO_INT
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