Panasonic FP-E Programming Manual page 424

Fp series
Table of Contents

Advertisement

High−level Instructions
Conversion example
The following shows conversion of hexadecimal data to ASCII codes.
Conversion of four bytes of data (S2 = K4)
Hexadecimal data
S1+1
EF
Converted
D+3
result
46
45
32
F
E
2
Result of S1 + 1
conversion
Conversion of three bytes of data (S2 = K3)
Since "byte" is specified as the unit, it is possible to convert only the last byte of the data for one word if
desired.
Hexadecimal data
S1+1
Converted result
32
2
ASCII HEX codes to express hexadecimal characters
Hexadecimal
number
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
3 − 160
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
S1
12
AB
CD
4 bytes
F71 (HEXA) instruction execution
D+2
D+1
D
31
42
41
44
1
B
A
D
Result of S1 conversion
S1
12
AB
CD
3 bytes
F71 (HEXA) instruction execution
D+2
D+1
D
31
42
41
44
1
B
A
D
ASCII HEX
code
H30
H31
H32
H33
H34
H35
H36
H37
H38
H39
H41
H42
H43
H44
H45
H46
43
C
43
C

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents