To_*** (Bit String-To-Real Number 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-Real
Number Conversion Group)
These instructions convert bit strings to real numbers.
Instruction
Name
**_TO_***
Bit String-to-Real
Number Conver-
sion 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 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.
LD
WORD#16#8000
2-274
FB/FUN
FUN
"**" must be a bit string data type.
"***" must be a real number data type.
I/O
Description
Input
Data to convert
Output
Conversion result
WORD_TO_REAL
EN
ENO
In
Graphic expression
(@)**_TO_***
EN
ENO
In
Out
Valid range
*
*
Integers
ST
abc:=WORD_TO_REAL(WORD#16#8000);
abc
NY-series Instructions Reference Manual (W560)
ST expression
Out:=**_TO_*** (In);
"**" must be a bit string data
type.
"***" must be a real number
data type.
Unit
---
0
---
---
Times, durations, dates,
and text strings
OK OK
Default

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents