EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #118 background imageLoading...
Page #118 background image
5 Understanding Programming
5-26
CJ2 CPU Unit Software User’s Manual
MSKR(692) Operand for Scheduled Interrupts
An I/O interrupt task will be executed when an input to an Interrupt Input Unit turns ON. The maximum
number of tasks that you can create is 32 (interrupt task numbers 100 to 131).
z Executing Interrupt Tasks
To enable I/O interrupts, execute the MSKS(690) (SET INTERRUPT MASK) instruction.
Example: The following example shows execution I/O interrupt task 103 when interrupt input No. 3
of Interrupt Input Unit No. 0 (the leftmost of the two Units 0 and 1) is ON.
Interrupt Input Unit Numbers, Input Numbers, and I/O Interrupt Task Numbers
*1 Interrupt Input Unit numbers are in order from 0 to 1 starting from the CPU Unit.
Operand Set value
N (interrupt identifier) 4: Read scheduled interrupt time (set value) for interrupt task 0 (interrupt task 2)
5: Read scheduled interrupt time (set value) for interrupt task 1 (interrupt task 3)
14: Read present value of internal timer for interrupt task 0 (CJ2M CPU Unit only,
interrupt task 2)
15: Read present value of internal timer for interrupt task 1 (CJ2M CPU Unit only,
interrupt task 3)
I/O Interrupt Tasks
Interrupt Input Unit No.
*1
Input No. I/O interrupt task
0 0 to 15 100 to 115
1 0 to 15 116 to 131
MSKS
0
END
END
END
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#FFF7
Cyclic task
I/O interrupt from Interrupt Input Unit No. 0
Interrupt input number:
Only 3 will be enabled.
The specified I/O interrupt will be enabled
when the MSKS instruction is executed.
Interrupt
I/O interrupt task 103
Interrupt Input Unit No. 0
Cyclic task
10
CPU Unit
Unit No.
Interrupt Input Unit

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals