
@*'#""&4'+
Section 4-6
$&+
4-6-2
Digital Inputs Generating Interrupts
Enabling / Disabling
Interrupts
The 4 Digital Inputs can all be configured to generate interrupts to the CS1-CPU.
If a Digital Input is configured to generate interrupts, an interrupt is issued to the
CS1-CPU at a rising- or falling edge of the signal applied to the Digital Input. The
Function that is assigned to the Digital Input determines if the interrupt is gener-
ated at a rising- or falling edge (refer to 3-4
You can (DM-) configure a Digital Input to generate interrupts by setting the corre-
sponding bit in the Interrupt Enable Data of the Digital Inputs. The Interrupt Enable
Data of the Digital Inputs consists of 4 bits representing the 4 Digital Inputs. By
default the Inputs are disabled to generate interrupts.
Bits 0, 1, 2 and 3 correspond with the Physical Digital Inputs I0, I2 and I3.
External Interrupt Task
Offset
Every Digital Input that is enabled to generate interrupts is assigned to an external
interrupt task in the CS1-CPU. In the External Interrupt Task you should write an
appropriate (ladder) program that takes the required action on the occurrence of
an interrupt.
Number
Function
Interrupt on
00
No Function
Rising Edge
01
Gate Positive
Rising Edge
02
Gate Negative
Falling Edge
03
Preset Rising Edge
Rising Edge
04
Preset Falling Edge
Falling Edge
05
Reset Rising Edge
Rising Edge
06
Reset Falling Edge
Falling Edge
07
Capture Rising Edge
Rising Edge
08
Capture Falling Edge
Falling Edge
09
Stop, Capture and Continue
Rising Edge
10
Stop, Capture and Continue (Inv)
Falling Edge
11
Stop, Capture, Reset and Continue
Rising Edge
12
Stop, Capture, Reset and Continue (Inv)
Falling Edge
13
Capture-Reset Rising Edge
Rising Edge
14
Capture-Reset Falling Edge
Falling Edge
15
Enable Reset
Rising Edge
16
Disable Reset
Rising Edge
General Setting:
m+5
I3 I2 I1 I0
Interrupt Enable Data Inputs
0 = Interrupts Disabled
1 = Interrupts Enabled
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
W902-E2-03.book Seite 138 Donnerstag, 7. Oktober 2004 2:06 14
Summary of Contents for CS1W-CT021
Page 1: ...OPERATION MANUAL High speed Counter Units CS1W CT021 CS1W CT041 Cat No W902 E2 03...
Page 3: ...W902 E2 03 book Seite iv Donnerstag 7 Oktober 2004 2 06 14...
Page 5: ...W902 E2 03 book Seite vi Donnerstag 7 Oktober 2004 2 06 14...
Page 39: ...W902 E2 03 book Seite 24 Donnerstag 7 Oktober 2004 2 06 14...
Page 59: ...A 2 Section 2 3 W902 E2 03 book Seite 44 Donnerstag 7 Oktober 2004 2 06 14...
Page 155: ...4 Section 4 6 W902 E2 03 book Seite 140 Donnerstag 7 Oktober 2004 2 06 14...
Page 199: ...G W902 E2 03 book Seite 184 Donnerstag 7 Oktober 2004 2 06 14...