X20 system modules • Counter modules • X20DC4395
886
X20 system User's Manual 3.10
Configure calculation of SSI comparator
Name:
CfO_SSI1event0config and CfO_SSI2event0config
The calculation of the position value used for the comparator can be configured in this register.
The window comparator condition is calculated as follows:
counter_window_value = ssi_counter & (2^ssi_data_bits - 1)
diff = counter_window_value – origin_comparator
if ((diff & (2^(comparator_mask)-1)) <= margin_comparator)
condition = True;
else
condition = False;
Data type
Value
UINT
See bit structure.
Bit structure:
Bit
Description
Value
Information
0 - 5
SSI data bits
x
Number of data bits used for masking
6 - 7
Reserved
-
8 - 13
Comparator mask
x
The mask value is calculated from 2
n
-1, where n is the value
configured in SSI data bits. Default: 0
0
MarginComparator >= SSI position - OriginComparator
14
Comparator mode
1
MarginComparator > SSI position - OriginComparator
Origin of the SSI comparator
Name:
OriginComparator01_SSI to OriginComparator02_SSI
This register contains the origin of the window comparator.
Data type
Value
Information
UDINT
0 to 4,294,967,295
Origin of the window comparator.
Width of the SSI comparator
Name:
MarginComparator01_SSI to MarginComparator02_SSI
This register provides the width of the window comparator.
Data type
Value
Information
UDINT
0 to 4,294,967,295
Width of the SSI window comparator
Read SSI latch position
Name:
Latch01SSI01 to Latch01SSI02
If the SSI window comparator returns "True", then the current SSI position is latched and saved in this register.
Data type
Value
Information
UDINT
0 to 4,294,967,295
Latched SSI position
Summary of Contents for X20 System
Page 2: ......