268
(e) Access from an inapplicable module
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 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)
• ED
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)
• EW
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
Device number of the file register (ZR) used to access D1300
Device number of the file register (ZR) used to access W2100
Item Calculation method
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
)
ED
ZN
= 2048 + (13000 - 12288) = 2760
EW
ZN
= 2048 + 2048 + (2100
H
- 8192) = 2048 + 2048 + (8448 - 8192) = 4352
Ex.
Ex.
Ex.
Ex.
Data register (D)
Extended data register (D)
Link register (W)
Extended link register (W)
File register (ZR)
ZR0
ZR2047
ZR2048
ZR2760
ZR4095
ZR4096
ZR4352
ZR6143
D0
D12287
D12288
1)
D13000
D14335
W0
W1999
W2000
2)
W2100
W27FF