To_*** (Bit String-To-Integer Conversion Group) - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

**_TO_*** (Bit String-to-Integer
Conversion Group)
These instructions convert bit strings to integers.
Instruction
Name
**_TO_***
Bit String-to-Inte-
ger Conversion
Group
Variables
Name
Meaning
In
Data to
convert
Out
Conver-
sion result
* The valid ranges depend on the data types of In and Out. Refer to Function, below, for details.
Bit strings
In
OK OK OK OK
Out
Function
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.
LD
WORD#16#1234
NJ-series Instructions Reference Manual (W502)
FB/FUN
FUN
I/O
Description
Input
Data to convert
Output
Conversion result
OK OK OK OK OK OK OK OK
WORD_TO_INT
EN
ENO
abc
In
Graphic expression
(@)**_TO_***
EN
ENO
In
Out
"**" must be a bit string data type.
"***" must be an integer data type.
Valid range
*
*
Integers
ST
abc:=WORD_TO_INT(WORD#16#1234);
2 Instruction Descriptions
ST expression
Out:=**_TO_*** (In);
"**" must be a bit string data
type.
"***" must be an integer data
type.
Unit
Default
0
---
---
---
Times, durations,
dates, and text strings
2
2-239

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents