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.4.1

Program example

This section shows an example of the program to read 11-word data from the buffer memory address 400
the AJ65BT-R2(N) (station number 63) to the area starting from D40 in the master station when M1 is turned on in the
following system 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).
• M10 is the G(P).RIRCV instruction executing flag.
• Assume that the settings of the interlock signal storage device are Request device: RY2, Completion device:
RX2, Error code storage device: RWr2, and Completion mode: 1.
RIRCV request
source
(Host station)
Master station
CPU module
Station No.0
D40
Receive
buffer
to
D50
CHAPTER 9 DEDICATED INSTRUCTIONS
RIRCV request
target
400
H
(Target station)
to
40A
H
Dedicated instruction execution
Set G(P).RIRCV instruction
executing flag to ON.
Perform process for normal
Process upon normal completion
completion.
of dedicated instruction
Process upon abnormal end of
Perform process for abnormal
dedicated instruction
end.
Set read request to OFF.
Set G(P).RIRCV instruction
executing flag to OFF.
or later in
H
AJ65BT-R2(N)
Station No.63
Control data setting
Interlock signal storage
device setting
191
9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents