Mitsubishi Electric MELSEC iQ-R C R12CCPU-V User Manual page 56

Controller module
Hide thumbs Also See for MELSEC iQ-R C R12CCPU-V:
Table of Contents

Advertisement

Operation of program
Once the inter-module synchronization cycle is interacted with the cycle of the fixed cycle communication, a multiple CPU
synchronous interrupt program (I45) and an inter-module synchronous interrupt program (I44) are executed in each inter-
module synchronization cycle.
The multiple CPU synchronous interrupt program (I45) is executed first, and then the inter-module synchronous interrupt
program (I44) is executed. Two inter-module synchronization cycles are required for data acquired by the host CPU to reach
to another CPU, and delaying the output timing of the controlled module of the host CPU and the controlled module of another
CPU for two cycles is required for the output synchronized among CPU modules.
For a C Controller module, only the link devices of CC-Link IE Field Network modules (RX, RY, RWr, and
RWw) are refreshed at the 'input refresh' and 'output refresh' in an inter-module synchronous interrupt
program. To import the I/O signals (X, Y) and the values from the buffer memory, use a C Controller module
dedicated function.
For details on processing of each interrupt program of a C Controller module, refer to the following section.
• Inter-module synchronous interrupt program (I44)
Page 51 Fixed cycle synchronization function
• Multiple CPU synchronous interrupt program (I45)
Page 167 Multiple CPU synchronous interrupt
CPU No.1
Cycle of fixed cycle communication
Program execution
Inter-module synchronization cycle
processing
Multiple CPU synchronous interrupt program
Normal program
Operation processing
Input modules
(Link device)
Ò Acquire an input value.
Input modules
(X, Buffer memory)
Fixed cycle communication area
Fixed cycle communication
Fixed cycle communication area
Multiple CPU synchronous interrupt program
Normal program
Operation processing
CPU No.2
Program execution
processing
Cycle of fixed cycle communication
Inter-module synchronization cycle
(1): Write the input value to the fixed cycle communication area of CPU No.1.
(2): Set the output value by reading data from the fixed cycle communication area of CPU No.1.
Precautions
Considerations for interaction with cycle of fixed cycle communication are shown below:
• Selecting "Use" for the inter-module synchronization function enable "Cooperate" to be selected for "Fixed Scan
Communication Function and Inter-module Synchronization Function". It cannot be selected when "Not use" is selected for
the inter-module synchronization function.
• Even if "I/O Setting Outside Group" is enabled in a program of another CPU, importing the input or output from the module
to be synchronized is not available. Although it can be read by direct specification such as DX, DY, Un\Gn, or the C
Controller module dedicated function (CCPU_FromBuf), data inconsistency may occur.
• To adjust the start of the inter-module synchronization function among all CPUs, confirm that the inter-module
synchronization function is available by checking the ready flag of CPU No.n from SM220 to SM223 turns ON. By using
SM220 to SM222 in an interlock program, the start of the inter-module synchronization function can be matched among all
CPUs.
4 BASIC FUNCTIONS
54
4.7 Inter-module Synchronization Function
Inter-module synchronous interrupt program
Multiple CPU synchronous interrupt program
Normal program
Input
Output
Operation
Operation processing
refresh
processing
refresh
Do not set data here even
Output data Ó Write data to the fixed
though data can be output at
the next inter-module
synchronization cycle.
Fixed cycle communication
Inter-module synchronous interrupt program
Multiple CPU synchronous interrupt program
Normal program
Input
Output
Operation
Operation processing
refresh
processing
refresh
(1)
Cycle of fixed cycle communication
Inter-module synchronization cycle
Inter-module synchronous interrupt program
Normal program
Input
Operation
Output
processing
refresh
refresh
Do not set data here even
though data can be output at
cycle communication area.
the next inter-module
synchronization cycle.
Input data
Ô Fixed cycle communication
Fixed cycle communication
Input data
Inter-module synchronous interrupt program
Normal program
Input
Operation
Output
processing
refresh
refresh
Cycle of fixed cycle communication
Inter-module synchronization cycle
Create the program so that the two cycles of the output differences are offset.
Cycle of fixed cycle communication
Inter-module synchronization cycle
Multiple CPU synchronous interrupt program
Inter-module synchronous interrupt program
Normal program
Input
Output
Operation
Operation processing
refresh
processing
refresh
Output data
Ö Set an output value.
Fixed cycle communication
Õ Read data from the fixed cycle communication area.
Multiple CPU synchronous interrupt program
Inter-module synchronous interrupt program
Normal program
Input
Operation
Output
Operation processing
processing
refresh
refresh
(2)
Ö Set an output value.
Cycle of fixed cycle communication
Inter-module synchronization cycle
Output data
(Link device)
Output data
(Y, Buffer memory)
Output data
(Link device)
Output data
(Y, Buffer memory)

Advertisement

Table of Contents
loading

Table of Contents