2.11.3 Functions And Operation Examples Of Interrupt Pointers - Mitsubishi Electric MELSEC-Q Structured Programming Manual

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
Label
P63
Should not be programmed.

2.11.3 Functions and operation examples of interrupt pointers

Interrupt pointes are classified into three subtypes, input interrupt type, timer interrupt type and counter
interrupt type.
1. Creating an interrupt program
Create an interrupt program as follows:
1) Create a task for interrupt program and a task for main program.
2) In the interrupt program task, set an interrupt pointer in the "Event" column.
For interrupt pointes which can be set in the "Event" column, refer to "2. Interrupt pointers" described
below.
3) During compiling, the IRET instruction is automatically added at the end of the program block registered
in the interrupt program task. It is not necessary to program the IRET instruction.
Interrupt program
CJ
EN
ENO
p
P63
END
EN
ENO
INC
EN
ENO
d
D0
IRET
EN
ENO
Set an interrupt pointer
The IRET instruction is automatically added
during compiling. Do not program it.
2 Devices in Detail
2.11 Pointer [P and I]
P63 is a special pointer for
jumping to the END step when
the CJ instruction is executed.
Note that a program error will
occur if P63 is programmed as a
label.
119
1
2
3
4
5
6
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents