EasyManua.ls Logo

Panasonic FP-E - Page 434

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 170
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)
DT40
BCD
H code
DT1
ASCII
HEX code
3412
3433
ASCII
character
43
DT0
3231
21
When S2 = H1004 (reverse direction, 4 bytes)
DT40
BCD
H code
DT1
ASCII
HEX code
1234
3433
ASCII
character
43
DT0
3231
21
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.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com