EasyManua.ls Logo

Omron NJ501-1500

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
Loading...
2 Instruction Descriptions
2-242
NJ-series Instructions Reference Manual (W502)
**_TO_*** (Bit String-to-Bit String
Conversion Group)
These instructions convert bit strings to bit strings with different data types.
* 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 a bit string with a different data type.
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 DWORD data, the name of the instruction is WORD_TO_DWORD.
The following example for the WORD_TO_DWORD instruction is for when In is WORD#16#F123.
Instruction Name FB/FUN Graphic expression ST expression
**_TO_*** Bit String-to-Bit
String Conversion
Group
FUN Out:=**_TO_*** (In);
"**" and "***" must be differ-
ent bit string data types.
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 OKOKOKOK
Function
"**" and "***" must be different
bit string data types.
(@)**_TO_***
EN ENO
In Out
abc:=WORD_TO_DWORD(WORD#16#F123);
LD
ST
abc
WORD#16#F123
WORD_TO_DWORD
EN ENO
In

Table of Contents

Related product manuals