![Mitsubishi Electric MELSEC iQ-R04ENCPU User Manual Download Page 145](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-r04encpu/melsec-iq-r04encpu_user-manual_239140145.webp)
2 PARAMETER SETTINGS
2.4 Application Settings
143
2
Precautions
■
When "Detection Method" is set to "Level" and the interrupt condition is always met
If the sequence scan takes much longer than the link scan, since interrupt processing is activated in each link scan, sequence
scan time may greatly increase, resulting in a watchdog timer error of the CPU module.
When "Detection Method" is set to "Level" and the interrupt condition is always met, do not use interrupt settings and correct
the interrupt condition in the program.
■
Before executing an interrupt program
Execute the EI instruction in a main routine program and enable an interrupt. (
MELSEC iQ-R CPU Module User's Manual
(Application))
■
When multiple interrupts have simultaneously occurred
The operation may delay.
■
When the mode of the master/local module is "Module Communication Test" or "Offline"
The master/local module can send an interrupt request to the CPU module when the mode is "Online". The module cannot
send the request when the mode is "Module Communication Test" and "Offline".
■
Starting an interrupt program by the rising/falling edge of the specified device
Do not start an interrupt program using instructions, such as PLS and PLF, that depend on the rising/falling edge of the
specified devices because changes in devices might not be read.
Ex.
Sending an interrupt request by turning on RX100 in a station in network No.7
■
An interrupt cannot be generated
Changes in the interrupt condition device cannot be detected if the change is shorter than the transmission delay time.
■
Using cyclic data in an interrupt program
When an interrupt program is executed, link refresh is not performed to CPU module devices. Directly access the link devices
of the master/local module by direct access.
Setting examples
■
Starting the interrupt program of the master station (station No.0) when RX100 turns on
Ex.
The following is a setting example to execute the interrupt program corresponding to the interrupt pointer I50 when RX100
turns on by turning on the corresponding switch on the slave station side.
PLS
X100
Since change of RX100 may not be read,
this cannot be specified as interrupt condition.
J7\
RX100
I50
SM400
IRET
ON
ON
Interrupt program
execution
Receive
processing
Master station
(station No.0)
Slave station
(station No.1)
Master/local module
Switch
CPU module
Summary of Contents for MELSEC iQ-R04ENCPU
Page 2: ......
Page 61: ...1 FUNCTIONS 1 3 IP Packet Transfer Function 59 1 ...
Page 385: ...383 I Transient transmission 15 ...
Page 389: ......