EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-423
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Conversion Instructions
2
NumToDecString and NumToHexString
NumToDecString and
NumToHexString
* If you omit the input parameter, the default value is not applied. A building error will occur.
z 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.
NumToDecString: Converts an integer to a fixed-length decimal text string.
NumToHexString: Converts an integer to a fixed-length hexadecimal text string.
Instruction Name FB/FUN Graphic expression ST expression
NumToDecString Fixed-length
Decimal Text String
Conversion
FUN Out:=NumToDecString(In,
L, Fill);
NumToHexString Fixed-length
Hexadecimal Text
String Conversion
FUN Out:=NumToHexString(In, L,
Fill);
Variables
Name Meaning I/O Description Valid range Unit Default
In Integer
Input
Integer Depends on data type.
---
*
L Number of
characters
Number of characters in Out 0 to 1985 1
Fill Fill
character
Fill character _BLANK or _ZERO _BLANK
Out Text string Output Text string Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK OK OK OK OK OK OK OK
LOK
Fill Refer to Function for the enumerators for the enumerated type _eFILL_CHR.
Out OK
Function
(@)NumToDecString
EN ENO
In Out
L
Fill
(@)NumToHexString
EN ENO
In Out
L
Fill

Table of Contents

Related product manuals