Mitsubishi Electronics A1SJ71AP23Q Network Router User Manual


 
7 - 9
7.2 Program for Refresh and for Receiving LRDP/LWTP Instruction
7
PROGRAMMING
Figure 7.10 Program example (Continued)
LWTP instruction receive processing
Obtains the write start device name and start
device No.
Clears the LWTP instruction work area to zero.
Obtains the write data length.
Transfers the work area value to T device.
Transfers the work area value to C device.
Transfers the work area value to D device.
Transfers the work area value to W device.
LWTP instruction receive request
(5 = Processing completion)
For a local in the third tier, receives the
second-tier master.
W device reception(First half):
Start No.=Z0, No. of words=Z1
Obtains W of the master station from the local
module. (First half)
W device reception(Latter half):
Start No.=Z0, No. of words=Z1
Obtains W of the master station from the local
module. (Latter half)
B device reception (First half):
Start No. = Z0, No. of words=Z1
Obtains B of the master station from the local
module. (First half)
Divides the buffer memory address by 16 (bits).
B device reception(Latter half):
Start No.=Z0, No. of words=Z1
Obtains B of the master station from the local
module. (Latter half)
Divides the buffer memory address by 16 (bits).
Refresh completion
Turns OFF refresh in execution.
Turns OFF the refresh request.
Turns ON the refresh request.
Restores the relevant device data.