Omron CPM1 Programming Manual page 89

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

CPM1/CPM1A Interrupt Functions
High-speed Counter
Instructions and
Interrupts
1,2,3...
68
4. An interrupt program cannot be written within a subroutine program. Do not
write an interrupt program between a SUBROUTINE DEFINE instruction
(SBN(92)) and a RETURN instruction (RET(93)).
Inputs used as interrupts cannot be used as regular inputs.
The following instructions cannot be executed in an interrupt subroutine when
an instruction that controls high-speed counters is being executed in the main
program:
INI(61), PRV(62), or CTBL(63)
The following methods can be used to circumvent this limitation:
Method 1
All interrupt processing can be masked while the instruction is being exe-
cuted.
Method 2
Execute the instruction again in the main program.
1. This is the program section from the main program:
LR 0000
Section 1-6
@INT(89)
100
000
000
INI(61)
000
000
000
@INT(89)
200
000
000
@PRV(62)
000
002
DM 0000
CTBL(63)
000
000
DM 0000
RSET LR 0000

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CPM1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF