Hexstringtonum - Omron NY532-5400 Reference Manual

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

Advertisement

HexStringToNum_**

The HexStringToNum_** instruction converts a hexadecimal text string to an integer.
Instruction
Name
Hex-
Hexadecimal Text
StringToNu
String-to-Number
m_**
Conversion Group
Variables
Name
Meaning
In
Hexadecimal
text string
Out
Integer
Bit strings
In
Out
Function
The HexStringToNum_** instruction converts hexadecimal text string In to an integer. Any spaces
(16#20) or '0' (16#30) in the upper digits are ignored. Underbars (16#5F) in the text string are ignored.
The name of the instruction is determined by the data type of Out. For example, if Out is the INT data
type, the instruction is HexStringToNum_INT.
A few examples are given below.
LD
HexStringToNum_INT
EN
abc
In
In = abc
− 8 0
In = abc
− 0 0 0 0 0 0 F
In = abc
NY-series Instructions Reference Manual (W560)
FB/FUN
FUN
(@)HexStringToNum_**
EN
In
"**" must be an integer data type.
I/O
Description
Input
Hexadecimal text string
Output
Integer
OK OK OK OK OK OK OK OK
ENO
def
8 0
Out = def = 128
Out = def = −128
Out = def = −15
Graphic expression
ENO
Out
Valid range
Depends on data type.
Depends on data type.
Integers
ST
def:=HexStringToNum_INT(abc);
2 Instruction Descriptions
ST expression
Out:=HexStringToNum_**(In);
"**" must be an integer data
type.
Unit
Default
---
''
---
---
Times, durations,
dates, and text strings
2
OK
2-449

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents