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

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

Advertisement

**_TO_*** (Real Number-to-Bit
String Conversion Group)
These instructions convert real numbers to bit strings.
Instruction
Name
**_TO_***
Real Number-to-
Bit String
Conversion Group
Variables
Name
Meaning
In
Data to
convert
Out
Conversion
result
Bit strings
In
Out
OK OK OK OK
Function
These instructions convert a real number, In, to a bit string.
The name of the instruction is determined by the data types of In and conversion output Out. For exam-
ple, if In is LREAL data and Out is DWORD data, the name of the instruction is LREAL_TO_DWORD.
The following example for the LREAL_TO_DWORD instruction is for when In is LREAL#6.5536e+4.
LD
LREAL#6.5536e+4
NY-series Instructions Reference Manual (W560)
FB/FUN
FUN
"**" must be a real number data type.
"***" must be a bit string data type.
I/O
Description
Input
Data to convert
Output
Conversion result
LREAL_TO_DWORD
EN
ENO
In
Graphic expression
(@)**_TO_***
EN
ENO
In
Out
Valid range
Depends on data type.
Depends on data type.
Integers
OK OK
ST
abc:=LREAL_TO_DWORD(LREAL#6.5536e+4);
abc
2 Instruction Descriptions
ST expression
Out:=**_TO_*** (In);
"**" must be a real number
data type.
"***" must be a bit string
data type.
Unit
Default
---
0
---
---
Times, durations, dates,
and text strings
2
2-279

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents