X20 system modules • Counter modules • X20DC2395
810
X20 system User's Manual 3.10
4.11.14.12.5.3 Direct input function
The module features a direct input function.
This event function is based on comparator functionality. If the event configured in the "CfO_DIREKTIOevent0IDwr"
register occurs, the event function compares the status of all Direct I/O channels enabled in the
"CfO_EvCompMask" register to a status defined in the "CfO_DIREKTIOeventcompState" register. The event that
is generated depends on the results of this comparison.
•
If the respective bits are the same, then event number 513 is generated
•
If the respective bits are different, then event number 512 is generated
Configure event ID for input function
Name:
CfO_DIREKTIOevent0IDwr
This register holds the event ID generated by the direct input function. For a list of all possible event IDs, see
4.11.14.12.5.1 "List of event IDs"
Data type
Value
Information
INT
192 to 7,233
ID of event function
Configure the mode of the input function
Name:
CfO_DIREKTIOevent0mode
The mode in which the direct input function operates can be set in this register.
Comparator functions can be operated in 4 different modes. For a description, see "Comparator modes".
Data type
Value
USINT
See bit structure.
Bit structure:
Bit
Description
Value
Information
0
Off
1
Single
2
State change
0 - 1
Comparator mode
3
Continuous
2 - 7
Reserved
-
Comparator status for comparator mask
Name:
CfO_DIREKTIOevent0compState
This register contains the status bits that are compared with the bits specified in the "CfO_Ev0CompMask" register,
which contain the I/O input status, when an event is received.
Data type
Value
USINT
See bit structure.
Bit structure:
Bit
Description
Value
Information
0
Comparator status of channel 1
0 or 1
...
...
3
Comparator status of channel 4
0 or 1
4 - 7
Reserved
-
Summary of Contents for X20 System
Page 2: ......