![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030900.webp)
860
Interrupt Control Instructions
Section 3-20
The instructions that act on individual interrupts have an operand, N, that
identifies the source of the interrupt. Numbers 0 to 3 indicate Interrupt Input
Units 0 to 3 and numbers 4 and 5 indicate scheduled interrupts 2 and 3.
I/O Interrupt Processing (N=0 to 3)
An I/O interrupt is caused by an input signal from an Interrupt Input Unit. Up to
four Interrupt Input Units can be connected to the PLC. Unit numbers 0 to 3
are assigned to the Units based on their position in the PLC from left to right.
The following program example demonstrates the operation of MSKS(690)
and CLI(691) when they are used to control I/O interrupts.
Operation of MSKS(690)
Both I/O interrupt tasks and scheduled interrupt tasks are masked (disabled)
when the PLC is first turned on. MSKS(690) can be used to unmask or mask
I/O interrupts and set the time intervals for scheduled interrupts.
In this example, MSKS(690) uses the contents of D00100 to unmask interrupt
inputs 0 to 3 and mask interrupt inputs 4 to 7 from Interrupt Input Unit 0.
When interrupt input 3 goes from OFF to ON, execution of the main program
will be interrupted and I/O interrupt task 3 (interrupt task 103) will be exe-
cuted. Execution of the main program execution is resumed at the point of
interruption after I/O interrupt task 3 has been completed.
I/O Interrupt Task
Priority Levels
When two or more interrupt inputs are received simultaneously, the interrupts
will be executed in order of their interrupt numbers from lowest to highest (100
to 131).
When more interrupt inputs are received while an interrupt task is being exe-
cuted, the recorded interrupts will be executed in order of their priority after
the current interrupt task is completed.
If a scheduled interrupt occurs, the scheduled interrupt task will take priority
over the I/O interrupt tasks.
F
0
Interrupt inputs from Unit 0
Interrupt mask settings
1=Mask (Disable) 0=Unmask (Enable)
Unit
Interrupt tasks
Interrupt Input Unit 0
Inputs 0 to 7 correspond to I/O interrupt tasks 100 to 107.
Interrupt Input Unit 1
Inputs 0 to 7 correspond to I/O interrupt tasks 108 to 115.
Interrupt Input Unit 2
Inputs 0 to 7 correspond to I/O interrupt tasks 116 to 123.
Interrupt Input Unit 3
Inputs 0 to 7 correspond to I/O interrupt tasks 124 to 131.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...