Beispiele und Registerbelegungen
4.3 Register
SIMATIC PCIe DIO4
Kompaktbetriebsanleitung, 11/2011, A5E03493449-01
23
Bit
Zugriff Name
Default Beschreibung
3
RW
OIEN
0
Ausgangsinterrupt aktiviert. Wenn "1" und GSR.OIF = 1,
wird GSR.IF gesetzt.
2
RW
IIEN
0
Eingangsinterrupt aktiviert. Wenn "1" und GSR.IIF = 1,
wird GSR.IF gesetzt.
1
RW
IEN
0
Global-Interrupt aktiviert. Wenn "1", werden Interrupts
aktiviert. Wenn STATUS.IF = 1, wird ein Interrupt
ausgelöst.
0
RW
EN
0
Global aktiviert. Muss auf "1" gesetzt sein, damit ein
normaler Betrieb möglich ist. Wenn auf "0" gesetzt,
werden alle internen Register zurückgesetzt.
GSR: General Status-Register (BASE + 0x0008)
Bit
Zugriff Name
Default Beschreibung
31..8
RO
0
Reserviert
7
RWC
EIF
0
Error Interrupt-Flag. Wenn "1", ist ein Fehler aufgetreten.
Wenn das Bit mit "1" beschrieben wird, wird das Bit
zurückgesetzt.
6..5
RO
0
Reserviert
4
RO
CIF
0
Counter Interrupt-Flag. Wenn dieses Flag gesetzt wurde,
hat ein Zähler einen Interrupt ausgelöst. Wenn alle
aktivierten Counter-Interrupts gelöscht werden, wird das
Bit zurückgesetzt.
3
RO
OIF
0
Output Interrupt-Flag. Wenn dieses Flag gesetzt wurde,
hat ein Ausgang einen Interrupt ausgelöst. Wenn alle
aktivierten Ausgangsinterrupts gelöscht werden, wird das
Bit zurückgesetzt.
2
RO
IIF
0
Eingang Interrupt-Flag. Wenn dieses Flag gesetzt wurde,
hat ein Eingang einen Interrupt ausgelöst. Wenn alle
aktivierten Eingangsinterrupts gelöscht werden, wird das
Bit zurückgesetzt.
1
RO
IF
0
Interrupt-Flag. Wenn EIF, CIF, OIF oder IIF = 1, wird das
Flag gesetzt. Um dieses Bit zu löschen, müssen alle
Interrupts gelöscht werden. Wenn das Bit gesetzt ist und
CONTROL.IEN =1, wird ein Interrrupt ausgelöst.
0
RWC
INUSE
0
Das Bit ergibt "0" beim ersten Lesen des Global Status-
Registers GSR. Alle weiteren Lese-Zugriffe ergeben "1".
Die DIO ist in Verwendung.
Das INUSE-Flag kann benutzt werden, damit mehrere
Treiber auf die DIO zugreifen können. Wenn das Bit mit
"1" beschrieben wird, wird das Bit zurückgesetzt.
Eingangs-Register
INP: Eingangs-Register (BASE + 0x0100)
Bit
Zugriff Name
Default Beschreibung
31..0
RO
INx
-
Jedes Bit spiegelt den entsprechenden Eingang wieder,
nach Filterung und Invertierung.
Содержание SIMATIC PCIe DIO4
Страница 2: ...SIMATIC IPC227D Compact Operating Instructions 11 2011 A5E03493449 01 ...
Страница 6: ...Inhaltsverzeichnis SIMATIC PCIe DIO4 4 Kompaktbetriebsanleitung 11 2011 A5E03493449 01 ...
Страница 36: ...Table of contents SIMATIC PCIe DIO4 4 Compact Operating Instructions 11 2011 A5E03493449 01 ...