Panasonic FP-E Programming Manual page 434

Fp series
Table of Contents

Advertisement

High−level Instructions
Explanation of example
Converts ASCII codes stored in data registers DT1 and DT0 to BCD data when trigger R0 turns on. The
converted data is stored in data register DT40.
When S2 = H4 (normal direction, 4 bytes)
DT1
ASCII
3
4
3
3
HEX code
ASCII
4
3
character
BCD
3
H code
When S2 = H1004 (reverse direction, 4 bytes)
DT1
ASCII
3
4
3
3
HEX code
ASCII
4
3
character
DT40
BCD
1
2
H code
Description
Converts ASCII codes that express decimal characters, starting from the 16-bit area specified by S1, to BCD
data as specified by S2. The converted result is stored in the area starting from the 16-bit area specified by D.
A maximum of eight characters 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 a BCD number becomes half the ASCII code source data.
3 − 170
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
DT0
3
2
3
1
2
1
DT40
4
1
2
DT0
3
2
3
1
2
1
3
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents