Panasonic FP-E Programming Manual page 453

Fp series
Table of Contents

Advertisement

Explanation of example
Converts the contents of data register DT10 to 16-bit binary data when trigger R0 turns on. The converted
data is stored in data register DT20.
If DT10 is BCD data consisting of H15, the following will be stored in DT20.
Source [S]: H15 (BCD)
15
12
11
Bit position
· · ·
0 0 0
0
0 0 0
DT10
0
BCD H code
Destination [D]: K15
15
12
11
Bit position
· · ·
0 0 0
0
0 0 0
DT20
Decimal
Description
Converts BCD code that expresses a 4-digit decimal specified by S to 16-bit binary data. The converted data
is stored in D.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
1
0 1 0
1
0
1
5
Conversion (to binary data)
8
7
4
3
0
·
·
· ·
· ·
0
0 0 0
0
1 1 1
1
K15
Turns on and stays on when:
Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− The data specified by S is not BCD data.
High−level Instructions
3 − 189

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents