Справочник Пользователя для Mitsubishi Electronics QJ7LP25G

Скачать
Страница из 400
 
 
 
7 - 3                                                                                                                                                                                                          7 - 3 
MELSEC-Q
7   APPLICATION FUNCTIONS 
 
7.1.1 Link dedicated instruction 
(1)  Reading/writing remote I/O station intelligent function module buffer 
memory (Z(P).REMFR/ Z(P).REMTO) 
This section describes the REMFR/REMTO instruction format. 
For a program example using the REMFR/REMTO instruction, refer to Section 
6.4.2. 
The REMFR instruction reads the data from the buffer memory of the intelligent 
function module mounted to the remote I/O station.   
The REMTO instruction writes the data to the intelligent function module buffer 
memory mounted to the remote I/O station. 
 
POINT 
 
(1)  The B/W for the handshake that is required when writing the remote I/O station 
intelligent function module buffer memory in a MELSECNET/10 network is not 
needed with REMFR/REMTO instructions. However, they have to be set if 
input/output X/Y is to operate as a system. 
(2)  Link dedicated instructions including REMFR/REMTO cannot use the CPU 
module local device and "use same file as program" as selected file register. 
(3)  Turn off the executing link instruction after the completion device turns on. 
 
(a) Instruction 
format 
 
1)  Z(P).REMFR (Network No. designation) 
 
Z.REMFR
Z: Executed when on
Read command
ZP.REMFR
ZP: Executed when rising
Read command
"Jn"
n3
D1
n4
n5
D2
"Jn"
n1
n2
n3
D1
n4
n5
D2
n1
n2
 
:  If the originating station is a Universal model QCPU, " "(double quotation) for the 
first argument can be omitted. 
 
 
Description of setting 
Setting range 
Jn 
Target network No. 
1 to 239 
(n1) Channel 
number 
1 to 8 
Word device 
2
 
(n2) Target 
number 
1 to 64 
Word device 
2
 
(n3) 
Start address input/output number for target intelligent function module 
The upper 3 digits of the 4-digit expression designates the first address input/output number 
for the intelligent function module mounted to the remote I/O station that is to be the target. 
0 to FE
H
 
Word device 
2
 
(n4) 
Read buffer memory start address 
Designates the start address of the buffer memory for the read destination intelligent 
function module. 
Constant (K, H) 
Word device 
2
 
(D1) 
Read data storage start address device (Host) 
Designates the host start address device for storing the read data. 
Word device 
2
 
(n5) 
Number of read data points (word units) 
1 to 960 
Word device 
2
 
(D2) 
Read completion device (Host) 
Designates the host device to be set to 1 scan on by the read completion. 
(D2) · · · · · · OFF: Not completed    ON: Completed 
(D2) + 1 · · · OFF: Normal             ON: Abnormal 
Bit device 
1
 
Word device bit designation 
3
 
1: Bit device ........................................... X, Y, M, L, F, V, B 
2: Word device ...................................... T, C, D, W, ST, R, ZR 
3: Word device bit designation ............. Word device.bit number