10 - 89
10.8 Extended Data Register (D) and Extended Link Register (W)
10
DEVICE EXPLANATION
6) To access the extended data register (D) or extended link register (W) from a
module which does not support the use of those devices, device number
needs to be specified by that of the file register (ZR).
Calculation formulas to obtain device number of the file register (ZR) to be
specified to access the extended data register (D) or extended link register
(W) and their calculation examples are described below.
* 1: Variables in the table above indicate the following.
•ZR
C
: Number of points set for the file register (ZR)
•ED
ZN
: Device number of the file register (ZR) to access the extended data register (D)
•ED
N
: Access target device number of the extended data register (D)
•D
C
: Number of points set for the data register (D)
•ED
C
: Number of points set for the extended data register (D)
•EW
ZN
: Device number of the file register (ZR) to access the extended link register (W)
•EW
N
: Access target device number of the extended link register (W) (hexadecimal)
•W
C
: Number of points set for the link register (W)
[Calculation example]
•D
C
: Number of points set for the data register (D) ••• 12288 points
•W
C
: Number of points set for the link register (W) ••• 8192 points
•ZR
C
: Number of points set for the file register (ZR) ••• 2048 points
•ED
C
: Number of points set for the extended data register (D)
••• 2048 points
Device number of the device register (ZR) to access D13000
ED
ZN
= 2048 + ( 13000 - 12288 )
= 2760
Device number of the device register (ZR) to access W2100
EW
ZN
= 2048 + 2048 + ( 2100
H
- 8192 )
= 2048 + 2048 + ( 8448 - 8192 )
= 4352
Table10.18 Calculation formulas to obtain device number of file register (ZR) to be specified to access extended data
register (D) or extended link register (W)
*1
Item Calculation formula
Device number of the file register (ZR) to access the extended data register (D)
ED
ZN
= ZR
C
+ ( ED
N
- D
C
)
Device number of the file register (ZR) to access the extended link register (W)
EW
ZN
= ZR
C
+ ED
C
+ ( EW
N
- W
C
)
Figure 10.82 Access to 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
D14335
W1999
W2000
W2100
W27FF