Panasonic FP-E Programming Manual page 438

Fp series
Table of Contents

Advertisement

High−level Instructions
Explanation of example
Converts the 16-bit data stored in data register DT0 to ASCII codes that express the equivalent decimals
when trigger R0 turns on. The converted data is stored in data registers DT52 to DT50.
Source
Bit position
Decimal data
Destination
3
0
ASCII HEX code
0
ASCII character
Description
Converts the 16-bit data specified by S1 to ASCII codes that express the equivalent decimals. The converted
result is stored in the area starting from the 16-bit area specified by D as specified by S2.
Specify the number of bytes in decimal number in the S2. (This specification cannot be made with BCD data.)
Precautions during programming
If a positive number is converted, the "+" sign is not converted.
When a negative number is converted, the "−" sign is also converted to ASCII code (ASCII HEX code: H2D).
If the area specified by S2 is more than that required by the converted data, the ASCII code for "SPACE"
(ASCII HEX code: H20) is stored in the extra area.
Data is stored in the direction towards the final address, so the position of the ASCII code may change,
depending on the size of the data storage area.
When S2=K8 (8 bytes)
D+3
D+2
30
30
31
2D
20
0
0
1
(Space) (Space) (Space) (Space)
ASCII code
Range specified by S2
If the number of bytes of ASCII codes following conversion (including the minus sign) is larger than the
number of bytes specified by the S2, an operation error occurs. Make sure the sign is taken into consideration
when specifying the object of conversion for the S2.
3 − 174
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
DT0
15
1211
8 7
· · ·
·
·
K−100
DT52
3
0
3
0
1
D+1
D
20
20
20
Extra bytes
4 3
0
· ·
· ·
DT51
1
2
D
2
6 bytes
DT50
0
2
0
SPACE

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents