To_*** (Integer-To-Real Number Conversion Group) - Omron NJ501-1500 Reference Manual

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

Advertisement

**_TO_*** (Integer-to-Real Number
Conversion Group)
These instructions convert integers to real numbers.
Instruction
Name
**_TO_***
Integer-to-Real
Number 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
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
NJ-series Instructions Reference Manual (W502)
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);
2 Instruction Descriptions
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
2
Default
2-237

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents