Mitsubishi Electric MELSEC-Q Structured Programming Manual page 123

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

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
Prohibition on redundant use of input terminals
Inputs X000 to X007 are used for high speed counters, input interrupt, pulse catch, SPD/DSZR/DVIT/ZRN
instructions and general-purpose inputs.
Make sure to use each input terminal only once.
Delay function of input interrupt pointers
Input interrupt pointers have the function to delay the execution of interrupt routine in units of 1 ms.
FX
/FX
/FX
/FX
0S
0
0N
function of input interrupt pointers.
Specify the delay time using the following pattern program.
This delay function can electrically adjust the mounting position of sensors used for input interrupts without
shifting the actual position.
[Interrupt program]
(Event: I
)
Contact for delay time setting
M8393
Program to be processed by input interrupt
Operation
[Main program]
[Interrupt program]
Rising edge of X000 is detected.
(Event: I001)
[Interrupt program]
Rising edge of X001 is detected.
(Event: I101)
/FX
/FX
/FX
/FX
/FX
1S
1N
1NC
U
2C
MOV
EN
ENO
*
s
d
K
D8393
1) Delay time (unit: ms)
EI
EN
ENO
FEND
EN
ENO
/FX
/FX
/FX
/FX
2N
2NC
3S
3G
3GC
• Delay time specifying program
Make sure to describe the delay time specifying
program shown on the left at the head of an
interrupt routing program.
Because this is a pattern program, change only
the delay time [1)].
Only a constant (K) or data register (D) can be
used to specify the delay time*.
• Interrupts are usually disabled in the
PLC.
If interrupts are enabled by the EI
instruction, when X000 or X001 turns ON
while the program is scanned, the PLC
Interrupt enabled
executes the interrupt routine 1) or 2),
range
and then returns to the main program by
the IRET instruction.
(The IRET instruction is automatically
added during compiling.)
Interrupt routine 1)
Interrupt routine 2)
2 Devices in Detail
2.11 Pointer [P and I]
PLCs do not support the delay
121
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