Mitsubishi Q00JCPU User Manual page 704

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

10
DEVICE EXPLANATION
Table10.18 Calculation formulas to obtain device number of file register (ZR) to be specified to access extended data
Device number of the file register (ZR) to access the extended data register (D)
Device number of the file register (ZR) to access the extended link register (W)
10
- 89
10.8 Extended Data Register (D) and Extended Link Register (W)
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.
register (D) or extended link register (W)
Item
* 1: Variables in the table above indicate the following.
• ZR
: Number of points set for the file register (ZR)
C
• ED
: Device number of the file register (ZR) to access the extended data register (D)
ZN
• ED
: Access target device number of the extended data register (D)
N
• D
: Number of points set for the data register (D)
C
• ED
: Number of points set for the extended data register (D)
C
• EW
: Device number of the file register (ZR) to access the extended link register (W)
ZN
• EW
: Access target device number of the extended link register (W) (hexadecimal)
N
• W
: Number of points set for the link register (W)
C
[Calculation example]
• D
: Number of points set for the data register (D) ••• 12288 points
C
• W
: Number of points set for the link register (W) ••• 8192 points
C
• ZR
: Number of points set for the file register (ZR) ••• 2048 points
C
• ED
: Number of points set for the extended data register (D)
C
••• 2048 points
Device number of the device register (ZR) to access D13000
ED
= 2048 + ( 13000 - 12288 )
ZN
= 2760
Device number of the device register (ZR) to access W2100
EW
= 2048 + 2048 + ( 2100
ZN
= 2048 + 2048 + ( 8448 - 8192 )
= 4352
File register (ZR)
Figure 10.82 Access to extended data register (D) and extended link register (W)
*1
ED
= ZR
ZN
EW
ZN
- 8192 )
H
ZR0
D12287
D12288
ZR2047
ZR2048
D13000
D14335
ZR2760
W1999
ZR4095
ZR4096
W2000
W2100
ZR4352
W27FF
ZR6143
Calculation formula
+ ( ED
- D
)
C
N
C
= ZR
+ ED
+ ( EW
- W
)
C
C
N
C
D0
Data register (D)
Extended data register (D)
W0
Link register (W)
Extended link register (W)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents