Panasonic FP-E Programming Manual page 430

Fp series
Table of Contents

Advertisement

High−level Instructions
Explanation of example
Converts BCD code that express a 4-digit decimal number (4-digit BCD H code) stored in data register DT0 to
ASCII code when trigger R0 turns on. The converted data is stored in data registers DT10 and DT11.
When S2 = H2 (normal direction, 2 bytes convertion)
BCD
1
H code
DT11
ASCII
3
2
3
1
HEX code
ASCII
2
1
character
When S2 = H1002 (reverse direction, 2 bytes convertion)
BCD
1
data
DT11
ASCII
3
4
3
3
HEX code
ASCII
4
3
character
Description
Converts the BCD code starting from the 16-bit area specified by S1 to ASCII code that expresses the
equivalent decimals as specified by S2. The converted result is stored in the area starting from the 16-bit area
specified by D.
A maximum of four bytes (8−figure of data) can be converted.
S2 specifies the number of source data bytes and the direction of converted data (normal/reverse).
The data length when converted to ASCII code becomes double the BCD source data.
3 − 166
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
DT0
2
3
4
DT10
3
4
3
3
4
3
DT0
2
3
4
DT10
3
2
3
1
2
1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents