Examples and register assignments
4.3 Registers
SIMATIC PCIe DIO4
26
Compact Operating Instructions, 11/2011, A5E03493449-01
Bit
Access Name
Default Description
3
RW
ENFEI
0
Enables an interrupt with a falling edge of the output
signal. If the bit is set and a falling edge is detected at
the output, the corresponding bit is set in OUTPIFF.IFFE.
2
RW
ENREI
0
Enables an interrupt with a rising edge of the output
signal. If the bit is set and a rising edge is detected at the
output, the corresponding bit is set in OUTPIFR.IFRE.
1
RO
0
Reserved
0
RW
INV
0
If "1", the output signal is inverted before it is processed
further.
Output sources
Values (decimal)
Output signal
0
OUTPx
1
1
2
Reading DIO
3
Writing DIO
4
DIO Interrupt (GSR.IF)
5-7
Reserved
8/12/16/20/24/28/32/36
Counter x Overflow
9/13/17/21/25/29/33/37
Counter x Comparison "equal to" (CxSR.CE)
10/14/18/22/26/30/34/38
Counter x Comparison "greater than" (CxSR.CE)
11/15/19/23/27/31/35/39
Counter x Comparison "less than" (CxSR.CE)
40-43
Input 0-3 (INP 0..3)
44-47
Output 0-3 (OUTP 0..3)
48-63
Reserved
You should calculate the values for the index of input, output and counter according to the
following formula:
Counter x index
Index = 8 + x*4
Input x index
Index = 8 + VER.NRCT*4 + x
Output x index
Index = 8 + VER.NRCT*4 + VER.NRIP + x
Содержание 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 ...