Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 149

Controller module
Table of Contents

Advertisement

Ex.
Setting of psEvent to wait for interrupt event 0 and 1 for CPU No.1, and interrupt event 10 for CPU No.2
psEvent[0] = 3;
psEvent[1] = 1;
psEvent[2] = 0;
psEvent[3] = 1;
psEvent[4] = 1;
psEvent[5] = 2;
psEvent[6] = 10;
When interrupt event 10 for CPU No.2 occurs, '2' and '10' are returned to psSetEventNo[0] and psSetEventNo[1],
respectively.
Precautions
Do not set the clock data of a C Controller module while executing this function. Otherwise, this function does not operate
properly. (This function may not be completed.)
Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant function
• Page 150 CCPU_WaitUnitEvent
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
147

Advertisement

Table of Contents
loading

Table of Contents