Interrupts
Section 4-6
89
Outputs consists of 32 bits representing the 32 Outputs. By default Outputs are
disabled to generate interrupts.
External Interrupt Task
Offset
Every Output that is enabled to generate interrupts is assigned two External Inter-
rupt Tasks in the CJ-series CPU Unit. For this purpose all 32 Outputs are assigned
in sequential order to consecutive External Interrupt Tasks starting from Output 0.
By defining an Offset you determine the External Interrupt Task numbers of the
(first two) External Interrupt Tasks that are assigned to Output 0. The remaining 31
Outputs are assigned to the respective External Interrupt Task numbers in
increasing order starting from “ 2”.
* The assigned External Interrupt Task number is executed at a rising/falling
edge of the corresponding Output bit in the Unit Output Pattern.
For every Output the assigned External Interrupt Task number can be calculated
with the following formula (‘O’ = Output):
Assigned External Interrupt Task Number to the
•
rising edge of the Output bit is equal to: 2xO
•
falling edge of the Output bit is equal to: 2xO+1
General Setting:
m+2
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
m+3
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Interrupt Enable Data
Outputs
= Soft Outputs 0-31
0 = Interrupts Disabled
1 = Interrupts Enabled
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Output
Assigned External
Interrupt Task Number
Interrupt executed at
rising/falling edge*
0
Offset
Rising
1
Falling
1
2
Rising
3
Falling
2
4
Rising
5
Falling
3
6
Rising
7
Falling
4
8
Rising
9
Falling
~
~
~
31
62
Rising
63
Falling
Содержание CJ1W-CTL41-E
Страница 2: ...i SYSMAC CJ series CJ1W CTL41 E 4 Channel Counter Unit Operation Manual Produced September 2004...
Страница 3: ...ii...
Страница 5: ...iv...
Страница 9: ...viii...
Страница 31: ......
Страница 43: ......
Страница 73: ......
Страница 119: ......
Страница 123: ......
Страница 126: ......
Страница 127: ......
Страница 131: ......
Страница 133: ...116...