EasyManua.ls Logo

Inovance H3U Series - HEX Conversion from ASCII to HEX Format

Inovance H3U Series
737 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...
167
4
4 Instructions 4.5.1 Data Conversion
HEX: Conversion from ASCII to HEX format
Overview
The HEX instruction converts the values of variables from head address S to hexadecimal equivalents. The
result is stored in variables from head address D. The number of converted characters and storage mode
are congurable.
HEX S D n
Conversion from
ASCII to HEX format
Applicable model:
H3U
S
Data
source
Head address of variables or the numeric constants to be
converted. If register variables are converted, 32-bit variable
width (four ASCII characters) is used.
16-bit instruction
(7 steps)
HEX: Continuous
execution
HEXP: Pulse
execution
D
Conversion
result
Head address of variables that store the hexadecimal
characters after conversion. The occupied variable space is
related to S2.
n
Converted
character
count
Number of converted characters
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
The values of variables from head address S are converted to hexadecimal equivalents. The result is stored
in variables from head address D. The number of converted characters and storage mode are congurable.
S is the head address of variables or the numeric constants to be converted. If register variables are
converted, 32-bit variable width (four ASCII characters) is used.
D is the head address for storing the hexadecimal characters after conversion. The occupied variable
space is related to n.
n is the number of converted characters, in the range 1 to 256.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals