Panasonic FP7 Series Command Reference Manual page 370

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

Advertisement

7.9 ENCO (Encoding)
Processing
Example) [S]...DT10
DGT S , S1 , n , D , D1
Transfer [n] digits from the [S1]th digit of the area specified by [S], to the [D1] digit of the 16-bit
data specified by [D]. Transfer starts with the 0th digit, 1st digit, 2nd digit, and 3rd digit by every
four bits from the lower level.
Conversion-enabled bits are DT10 to DT11 (32 bits from DT10).
The bit numbers that are ON in these two-word area are stored in a decimal form from Bit 0 of
DT20.
DT10
0000
DT11
0000
DT20
0000
Precautions for programming
● If an unsigned constant U is specified for [S], it should be converted as Hex data.
Flag operations
Name
SR7
SR8
(ER)
7-22
[n]...H 0005
0001
0000
0000
0000
0000
0000
0000
0000
1000
Description
To be set in the case of out-of-range in indirect access (index modification).
To be set when the conversion-enabled bit length (nL) is not in the following range: 1 ≤ nL ≤
8.
To be set (for consistency) when the sum of the result output starting bit number "nH" and
the conversion-enabled bit length "nL" is not in the following range: 1 ≤ nH + nL ≤ 16.
To be set when the data to be encoded is all "0".
[D]...DT20
Bit 8, counted from the lowest bit of DT10, is ON.
Store H8 in DT20.
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents