Program Example - Mitsubishi QJ71LP21 Reference Manual

Q corresponding melsecnet/h network system melsec-q series
Table of Contents

Advertisement

6 PROGRAMMING

6.1.2 Program example

Communication program with remote I/O station No. 2
6 - 4
Interlocks should be applied to the programs according to the link status of the host
and other stations.
The following example shows an interlock in the communication program that uses the
link status of the host (SB47, SB49) and the link status of station number 2 (bit 1 of
SW70 and bit 1 of SW74).
(Example)
Set the values shown below for timer constant K
Baton pass status
(T0, T2)
Cyclic transmission status
Parameter communication status
(T1, T3, T4)
Reason: This is to prevent occasional errors due to cable conditions or electrical noise
from stopping control.
Also, the multipliers of 4 and 3 should only be considered as a guideline.
SB47: Host baton pass status
SB49: Host data link status
SW70: Other station baton pass status
SW74: Data link status of each station
SW78: Other station parameter
communication status
SB20: Network module status
.
(Sequence scan time
4) or more
(Sequence scan time
3) or more
MELSEC-Q
6 - 4

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents