Numtodecstring And Numtohexstring - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions
NumToDecString and
NumToHexString
NumToDecString:
NumToHexString:
Instruction
NumToDecString
Fixed-length
Decimal Text String
Conversion
NumToHexString
Fixed-length
Hexadecimal Text
String Conversion
Variables
Name
Meaning
In
Integer
L
Number of
characters
Fill
Fill
character
Out
Text string
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
In
L
Fill
Out
Function
 NumToDecString
The NumToDecString instruction converts integer In to a decimal text string of UTF-8 alphanumeric
characters. If In contains a negative value, a minus sign (−) is added to the front of the text string.
2-446
Converts an integer to a fixed-length decimal text string.
Converts an integer to a fixed-length hexadecimal text string.
Name
FB/FUN
FUN
FUN
I/O
Description
Integer
Number of characters in Out 0 to 1985
Input
Fill character
Output
Text string
OK OK OK OK OK OK OK OK
OK
Refer to Function for the enumerators for the enumerated type _eFILL_CHR.
Graphic expression
(@)NumToDecString
EN
ENO
In
L
Fill
(@)NumToHexString
EN
ENO
In
L
Fill
Valid range
Depends on data type.
_BLANK or _ZERO
Depends on data type.
Integers
NY-series Instructions Reference Manual (W560)
ST expression
Out:=NumToDecString(In,
L, Fill);
Out
Out:=NumToHexString(In, L,
Fill);
Out
Unit
Default
*
1
---
_BLANK
---
---
Times, durations,
dates, and text strings
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents