To_*** (Integer-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_*** (Integer-to-Real Number
Conversion Group)
These instructions convert integers to real numbers.
Instruction
Name
**_TO_***
Integer-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
Out
Function
These instructions convert an integer, In, 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 INT data and Out is REAL data, the name of the instruction is INT_TO_REAL.
The following example for the INT_TO_REAL instruction is for when In is INT#1234.
LD
INT#1234
2-268
FB/FUN
FUN
"**" must be an integer data type.
"***" must be a real number data type.
I/O
Description
Input
Data to convert
Output
Conversion result
OK OK OK OK OK OK OK OK
INT_TO_REAL
EN
ENO
abc
In
Graphic expression
(@)**_TO_***
EN
ENO
In
Out
Valid range
*
*
Integers
ST
abc:=INT_TO_REAL(INT#1234);
NY-series Instructions Reference Manual (W560)
ST expression
Out:=**_TO_*** (In);
"**" must be an integer 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