Panasonic FP7 Series Command Reference Manual page 668

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

14.5 BCDA (Conversion: BCD → Decimal ASCII)
Example 4) Operation unit: 32 bits (UL)
[i]...UL
[S1]...DT0
[D]...DT10
[S1]...DT0
DT1
[S2]...DT2
DT3
Precautions for programming
● The two characters that comprise 1 byte are stored in the opposite order following
conversion.
● Converts two bytes as one section.
[Forward direction]
[Reverse direction]
Flag operations
Name
SR7
SR8
(ER)
14-18
[S2]...DT2
H 5678
H 1234
H 1004
[S1+1]
BCD
③④
⑤⑥ ⑦⑧
①②
[D+3]
[D+2]
ASCII Code
[S1+1]
③④
⑤⑥ ⑦⑧
BCD
①②
[D+3]
[D+2]
ASCII Code
Description
To be set in the case of out-of-range in indirect access (index modification).
To be set when the data specified by [S1] contain non-BCD data.
To be set when the number of bytes specified by [S2] exceeds the [S1] area.
To be set when the conversion result exceeds the area.
To be set when [S2] is specified as '0'.
To be set when the conversion direction of [S2] is out of the range.
To be set when the conversion data size of [S2] is out of the range.
Reverse direction, four bytes
(characters)
[D]
DT10
H 3231
H 3433
DT11
DT12
H 3635
DT13
H 3837
[S1]
[D+1]
[D]
[S1]
[D+1]
[D]
21
43
65
87
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents