6 - 49 6 - 49
MELSEC-Q
6 DEDICATED INSTRUCTIONS
Control data
See Section 6.12 for information about how to handle the control data of the SWRITE
instruction when writing to the word device memory of other station.
The control data should be handled is the same as when writing to the word device
memory using the WRITE instruction. Thus, this section omits its explanation.
The number of steps for the SWRITE instruction is 10.
Functions
(1) This instruction writes data in the device designated in (S2) and succeeding devices
of the local station to the word devices of the station, which is connected to either
the MELSECNET/H, MELSECNET/10 or Ethernet, that is designated with the target
station network number and target station number in the control data.
When writing device data from other station number is completed, the completion
device designated in (D2) turns on.
Also , when writing the device data designated in (S2) is completed, the device on
the other station designated in (D3) turns on.
[Local station]
[Response station]
QCPU
Ethernet module
Channel 1
Channel n
Channel 8
Ethernet
Q/QnACPU
(S2)
(D1)
SWRITE
Ethernet module
(2) Device data can be written to stations connected to either the MELSECNET/H,
MELSECNET/10 or Ethernet networks having the designated numbers, in addition
to stations connected to the local station's network.
(3) The data link instruction and instructions for the Ethernet network system cannot
be executed at two or more locations for the same channel.
If the execution conditions are met at two or more locations at the same time,
instructions to be executed later have to wait until the channel becomes available
because handshaking is automatically performed at the execution of the first
instruction.
(4) Whether the SWRITE instruction is being executed or has been completed
normally or abnormally can be checked with the send/receive instruction flag
corresponds to the channel used, completion device (D2), or completion status
display flag ((D2) + 1) designated in the set data.
(a) Completion device (D2)
Turns on at the END processing of the scan where the SWRITE instruction is
completed, and turns off at the next END processing.
Содержание QJ71E71-100 Series
Страница 2: ......
Страница 214: ...6 65 6 65 MELSEC Q 6 DEDICATED INSTRUCTIONS MEMO ...
Страница 219: ......