Conversion instructions
626
Part III FP Instructions
ASCII HEX code Hexadecimal
number
16#30
16#31
16#32
16#33
16#34
16#35
16#36
16#37
16#38
16#39
16#41
16#42
16#43
16#44
16#45
16#46
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
PLC types
Availability of F72_A2HEX (see page 1326)
Variable Data type Function
s1 WORD starting 16-bit area for ASCII code (source)
s2 INT specifies number of source data bytes to be converted
d ANY16 starting 16-bit area for storing converted data (destination)
For Relay T/C Register Constant
s1 WX WY WR WL SV EV DT LD FL -
s2 WX WY WR WL SV EV DT LD FL dec. or hex.
d - WY WR WL SV EV DT LD FL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the number of bytes specified by s2
exceeds the area specified by s1.
the converted result exceeds the area
specified by d.
the data specified by s2 is recognized as
"0".
ASCII code, not a hexadecimal number
(0 to F), is specified.
Data types
Operands
Error flags
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.