High
−
level Instructions
3
−
189
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.
· ··
·
Bit position
·
· ·
· ·
DT20
15
0 0 0
12
0
11
0 0 0
8
0
7
0 0 0
4
0
3
1 1 1
0
1
Source [S]: H15 (BCD)
Conversion (to binary data)
Destination [D]: K15
Decimal
K15
· ··
·
Bit position
·
· ·
· ·
DT10
15
0 0 0
12
0
11
0 0 0
8
0
7
0 0 0
4
1
3
0 1 0
0
1
BCD H code
0
0
1
5
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): Turns on and stays on when:
・
Error flag (R9008): 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.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...