7
PROGRAMMING
(2) Program example
Program for DP-Slave control (
Program for reading diagnostic information (
Program for changing the operation mode (Self-diagnostics mode) (
Figure 7.6 I/O Data Exchange Program Examples (Automatic Refresh)
(a)
)
7.1 I/O Data Exchange Program Examples
7.1.1 Program examples using automatic refresh
Not needed when the initial setting is not changed.
(b)
)
(c)
)
Turn ON the initial
setting execution command
Initializes Diagnostic info.
invalid setting area
Initializes Diagnostic info. non-
notification time setting area.
Specifies the 2nd temporary
slave reservation
Turn OFF the initial setting
execution command
Writes the initial
output data value.
I/O data exchange
start processing
7
- 8
1
2
3
4
5
6
7
8