Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
CHAPTER9 DEVICES
9
2
3
4
5
6
7
8
9.8 Extended Data Register (D) and Extended Link Register (W)
9 - 69
6) To access the extended data register (D) or extended link register (W) from a module that does not support
the use of these devices, device numbers need to be specified with those of the file register (ZR).
Calculation formulas for obtaining device numbers of the file register (ZR) to be specified to access the
extended data register (D) and extended link register (W) and calculation examples are described below.
*1: Variables in the table indicate the following:
ZR
C
: Points of the file register (ZR)
ED
ZN
: Device number of the file register (ZR) used to access the extended data register (D)
ED
N
: Access target device number of the extended data register (D)
D
C
: Points of the data register (D)
ED
C
: Points of the extended data register (D)
EW
ZN
: Device number of the file register (ZR) used to access the extended link register (W)
EW
N
: Access target device number of the extended link register (W) (hexadecimal)
W
C
: Points of the link register (W)
[Calculation example]
•D
C
: Points of the data register (D) ••• 12288 points
•W
C
: Points of the link register (W) ••• 8192 points
•ZR
C
: Points of the file register (ZR) ••• 2048 points
•ED
C
: Points of the extended data register (D) ••• 2048 points
1) Device number of the file register (ZR) used to access D13000
ED
ZN
= 2048 + (13000-12288) = 2760
2) Device number of the file register (ZR) used to access W2100
EW
ZN
= 2048 + 2048 + (2100
H
- 8192) = 2048 + 2048 + (8448 - 8192) = 4352
Table9.9 Calculation formulas for obtaining device numbers of the file register (ZR) to be specified to access the extended data
register (D) and extended link register (W)
*1
Item Calculation formula
Device number of the file register (ZR) used to access the extended data register (D)
ED
ZN
= ZR
C
+ (ED
N
- D
C
)
Device number of the file register (ZR) used to access the extended link register (W)
EW
ZN
= ZR
C
+ ED
C
+(EW
N
- W
C
)
Figure 9.83 Access to the extended data register (D) and extended link register (W)
Data register (D)
Link register (W)
Extended data register (D)
Extended link register (W)
File register (ZR)
ZR0
ZR2047
ZR2048
ZR2760
ZR4095
ZR4096
ZR4352
ZR6143
D0
W0
D12287
D12288
D13000
1)
2)
D14335
W1999
W2000
W2100
W27FF