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

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

Advertisement

**_TO_*** (Integer-to-Bit String
Conversion Group)
These instructions convert integers to bit strings.
Instruction
**_TO_***
Integer-to-Bit String
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
Out
OK OK*
*1 For an NX1P2 CPU Unit, a CPU Unit with unit version 1.14 or later and Sysmac Studio version 1.18 or higher are required
to use the LINT_TO_WORD instruction.
Function
These instructions convert an integer, In, to a bit string.
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 WORD data, the name of the instruction is INT_TO_WORD.
The following example for the INT_TO_WORD instruction is for when In is INT#−1234.
LD
INT#-1234
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
Input
Data to convert
Output
Conversion result
OK OK OK OK OK OK OK OK*
1
OK OK
INT_TO_WORD
EN
ENO
abc
In
Graphic expression
(@)**_TO_***
EN
ENO
In
Out
"**" must be an integer data type.
"***" must be a bit string data type.
Valid range
*
*
Integers
1
ST
abc:=INT_TO_WORD(INT#-1234);
2 Instruction Descriptions
ST expression
Out:=**_TO_*** (In);
"**" must be an integer data
type.
"***" must be a bit string
data type.
Unit
Default
0
---
---
---
Times, durations,
dates, and text strings
2
2-265

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents