PCI-2513 User's Guide Functional Details
29
Figure 16. Channel 3 in hysteresis mode
Detecting setpoints on a totalizing counter
In the following figure, Channel 1 is a counter in totalize mode. Two setpoints define a point of change for
Detect 1 as the counter counts upward. The detect output is high when inside the window (greater than Limit B
(the low limit) but less than Limit A (the high limit).
In this case, the Channel 1 setpoint is defined for the 16 lower bits of channel 1's 32-bit value. The
FIRSTPORTC digital output port could be updated on a True condition (the rising edge of the detection signal).
Alternately timer outputs could be updated with a value.
Figure 17. Channel 1 in totalizing counter mode, inside the window setpoint
Detection setpoint details
Controlling digital and timer outputs
You can program each setpoint with an 8-bit digital output byte and corresponding 8-bit mask byte. When the
setpoint criteria is met, the FIRSTPORTC digital output port can be updated with the given byte and mask. Any
setpoint can also be programmed with a timer update value.
In hysteresis mode, each setpoint has two forced update values. Each update value can drive one timer or the
FIRSTPORTC digital output port. In hysteresis mode, the outputs do not change when the input values are
At this point you can update FIRSTPORTC