To_*** (Bit String-To-Integer Conversion Group) - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
**_TO_*** (Bit String-to-Integer
Conversion Group)
These instructions convert bit strings to integers.
Instruction
Name
**_TO_***
Bit String-to-Integer
Conversion Group
Variables
Name
Meaning
In
Data to
convert
Out
Conversion
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
2-270
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);
NY-series Instructions Reference Manual (W560)
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents