Mitsubishi Electric MELSEC-L02SCPU User Manual page 265

Cpu module, built-in i/o function
Table of Contents

Advertisement

(4) Program example with the coincidence detection interrupt function
This section introduces an example of interrupt program where CH1 Counter value coincidence (No.1) (SM1881)
is used. Before using an interrupt pointer, enable an interruption with the IMASK instruction. For details on the
IMASK instruction, refer to the  MELSEC-Q/L Programming Manual (Common Instruction).
(a) System configuration
(b) Programming conditions
Provide D20 to enable an interruption of I0.
Device
D20
D21
D22
D23
D24
D25
D26
D27
D28
D29
D30
D31
D32
D33
D34
D35
LCPU
Function
IMASK instruction interruption enable flag storage device
CHAPTER 8 HIGH-SPEED COUNTER FUNCTION
Setting
value
1
8
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
263

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents