Program Example - Mitsubishi Electric MELSEC-Q Series User Manual

Cc-link system master/local module
Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

9.5.1

Program example

This section shows an example of the program to write 1-word data from D10 in the master station to the buffer
memory address 111
configuration.
• Assume that the I/O number of the master station is X/Y00 to X/Y1F.
• Assume that SW0 is set to the refresh device of the link special register (SW).
• M11 is the G(P).RISEND instruction executing flag.
• Assume that the settings of the interlock signal storage device are Request device: RY4, Completion device:
RX4, Error code storage device: RWr1, and Completion mode: 1.
RISEND request
source
(Host station)
196
in the AJ65BT-R2(N) (station number 63) when M6 is turned on in the following system
H
Master station
CPU module
Station No.0
Send
D10
buffer
RISEND request
target
(Target station)
Perform process for normal
completion.
Perform process for abnormal
end.
AJ65BT-R2(N)
Station No.63
111
H
Control data setting
Interlock signal storage
device setting
Sets data to be written to
intelligent device station
Dedicated instruction execution
Set G(P).RISEND instruction
executing flag to ON.
Process upon normal completion
of dedicated instruction
Process upon abnormal
completion of dedicated instruction
Set write request to OFF.
Set G(P).RISEND instruction
executing flag to OFF.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents