9
PROGRAMMING
9.3 Program Examples for Use in MELSECNET/H Remote I/O Network
9.3.2 MODBUS(R) device assignment parameters
9
- 42
9
P
R
OGRAM
M
ING
10
D
E
DICA
TED
INSTRUC
TI
ONS
11
TR
O
U
BLE
S
HOOTING
A
P
P
E
NDICE
S
INDE
X
(4) Program example
The following is an example of the sequence program required to perform the
communication shown in (2).
(a) Interlock program example for MELSECNET/H
Provide interlocks using the link status of the MELSECNET/H remote master
station (host) and MELSECNET/H remote I/O station (other station).
The example below shows an interlock for a communication program, which uses
the link status (SB47, SB49) of the MELSECNET/H remote master station and the
link status (SW70, SW74, SW78) of the MELSECNET/H remote I/O station
(Station No. 1).
Set the following value as timer constant K
.
Reason: To prevent the control from stopping even if the network detects an
instantaneous error due to a cable problem, noise or any other condition
Note that the above "4" and "3" represent standard values.
POINT
For details on interlock programs for the MELSECNET/H remote master station
and MELSECNET/H remote I/O station, refer to the following manual.
Q Corresponding MELSECNET/H Network System Reference Manual
(Remote I/O network)
Figure 9.46 Interlock program example for MELSECNET/H
Table9.10 Value of timer constant K
Baton pass status
(T0, T2)
(Sequence scan time 4) or more
Cyclic transmission status
Parameter communication status
(T1, T3, T4)
(Sequence scan time 3) or more
SB47: Baton pass status (host)
SB49: Host data link status
SW70: Baton pass status of
each station
SW74: Cyclic transmission status
of each station
SW78: Parameter communication
status of each station
SB20: Module status
Program for MODBUS device assignment : refer to (4) (b) in this section
R
Summary of Contents for QJ71MB91
Page 1: ......
Page 2: ......
Page 366: ...App 14 Appendix 4 External Dimensions APPENDICES Memo ...
Page 371: ......
Page 372: ......