7. APPLICATION INSTRUCTIONS
7
−
80
MELSEC-A
(9) If the TO(P)/DTO(P) instructions are executed to a remote terminal module
which is communicating with other module, execution of the instructions is again
performed to the same remote terminal module immediately after the
processing being executed.
Execution Conditions
Operation Errors
In the following cases, operation error occurs and the error flag turns on.
•
When the station number specified at "n1" is not of a remote terminal.
•
When "n3" points which start with the device specified at (S) exceed the specified
device
range.
•
When the device specified at (D1) is not a usable device.
•
When the communication request registration areas are full.
Program Examples
TO , PRC
A program which writes constant K100 to address 3 of buffer memory of the AD61C
(head station number 1) when X0 is turned ON.
Device specified at (D2)
(Communication complete flag)
OFF
ON
Executed every
completion of
communication
Executed every
completion of
communication
Executed only once
Executed only once
P
Read command
Device specified at (D2)
(Communication complete flag)
K
K
K
K
TO 1
3 100 1
PRC M0 Y000
0
X000
……... M0 turns ON when communication
processing is completed.
•
Coding
0 LD
X000
1 TO
K1
K3
K100
K1
10
PRC
M0
Y000
17
END
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......