7 - 1 7 - 1
MELSEC-Q
7 PROGRAMMING
7. PROGRAMMING
The following shows the program examples used to execute the global control and
execute the separation prevention function using the dedicated instruction during the
communication in the Normal service mode (MODE 0) and Extended service mode
(MODE E).
The device allocation in the program example is as shown below
(QJ71PB92D head I/O number: 00
H
)
• X20 to X2F----------- : User command signal
• X100 to X14F ------- : Station to which input data is transferred from slave station
• Y100 to Y14F ------- : Station from which output data is transferred to slave station
• D0---------------------- : Storage of mode change result
• D1---------------------- : Storage of present mode
• D100 ------------------ : Storage of slave station 1 input address
(in Extended service mode (MODE E))
• D101 ------------------ : Storage of slave station 1 output address
(in Extended service mode (MODE E))
• D1000----------------- : Storage of communication trouble information
7.1 Communication Using Automatic Refresh Setting
The following shows the setting and program example used when the I/O data is
read/written using the automatic refresh setting.
(1) Automatic refresh setting
The following setting example assumes that the automatic refresh setting of I/O
data is made per slave.
(a) Make the automatic refresh setting in the master parameters.
[Master Settings] Autom. Refresh : Check
7