Interrupt From A Module - Mitsubishi Electric MELSEC iQ-R Series User Manual

Programmable controller
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Interrupt from a module

The following explains the method for restarting a user program that is waiting for an interrupt event by the interrupt from a
module.
MELSECWinCPU module
User program is being executed.
In an interrupt event wait state.
ÔUser program is restarted.
: Execute the CCPU_WaitUnitEvent function with the user program of this product.
The user program will be in the interrupt event wait state.
: Issue an interrupt request with an input module, intelligent function module, or interrupt module.
An interrupt event is notified to this product.
: After this product receives the interrupt event notification, the user program restarts.
Precautions
• When an interrupt event has already been notified from a module at the time of the CCPU_WaitUnitEvent function
execution, the user program is restored from the interrupt event wait state at the same time as the function execution. In
addition, when multiple interrupt events have been notified to the same interrupt event number at the time of the
CCPU_WaitUnitEvent function execution, the user program processes them as a single interrupt event notification.
• If the same CPU number and the same interrupt event number are set in more than one user program, it will be undefined
which one of the user programs receives the interrupt event.
12 BUS ACCESS FUNCTION
130
12.3 Interrupt Notification Reception
(User program)
Issue an interrupt.
ÒExecute the CCPU_WaitUnitEvent function.
ÓInterrupt event notification

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r melsecwincpu

Table of Contents