Interrupt Functions
Interrupting Writing
Multiple Words of Data
#1234 moved to DM 0000.
#1234 moved to DM 0001.
Processing interrupted.
Processing of CMP
Processing
of BSET
Processing restarted.
#1234 moved to DM 0002.
#1234 moved to DM 0010.
22
Countermeasure for Above Problem
Main Program
I N T
1 0 0
0 0 0
0 0 0
A D D
D M 0 0 0 0
# 0 0 0 1
D M 0 0 0 0
I N T
2 0 0
0 0 0
0 0 0
Main Program
B S E T
# 1 2 3 4
D M 0 0 0 0
D M 0 0 1 0
Flow of Processing
Interrupt occurs
DM 0000 read.
DM 0010 read.
DM 0000 compared to DM 0010.
Comparison result output.
Interrupt processing completed.
Processing was interrupted for BSET when #1234 was not yet written to
DM 0010. Therefore, in the comparison at point *1, the contents of DM 0000
and DM 0001 are not equal and processing stops with A in the OFF state. As
a result, although the contents of DM 0000 and DM 0010 agree at the value
Interrupts disabled.
Interrupts enabled.
Interrupt Subroutine
C M P
D M 0 0 0 0
D M 0 0 1 0
25506 (=)
DM0000
DM0001
1234
003E
1234
1234
1234 1234 1234
Section 1-4
A
DM0002
DM0010
A
0502
ABCD
OFF
ABCD
OFF
(*1)
0502
1234
ABCD
1234 OFF
(*2)
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?
Questions and answers