Structure type Parameter Parameter type
DIGITAL_OUTPUT_READBACK_TYPE STS USINT
OP_READBACK BOOL
PULSE_INPUT_TYPE STS USINT
COUNTER
1
UDINT
RATE
2
REAL
PREI
3
BOOL
PULSE_INPUT_CONTROL_TYPE RST
4
BOOL
HOLD
5
BOOL
FREQUENCY_INPUT_TYPE STS USINT
FREQUENCY REAL
PULSE_OUTPUT_TYPE PULSES UDINT
ENABLE BOOL
START BOOL
CONTINUE BOOL
PULSE_OUTPUT_READBACK_TYPE STS USINT
REMAIN UDINT
1. COUNTER: The accumulated Engineering Unit (EU) count.
2. RATE: Rate in EU/Time Period. Input pulses are counted over a specified Sample
Time and scaled to EU/Second, EU/Minute or EU/Hour.
3. PREI: Preset indicator. OFF [0] when COUNTER = less than the local or remote
preset value, ON when the count reaches the local or remote preset value. The
hardware module determines the state of the PREI output. PREI is cleared by the
RST input. A preset value of 0 effectively turns off the Preset allowing the counter to
count continuously until held or reset.
4. RST: An OFF to ON transition resets the module's pulse counter and the OUT to
zero. It also clears the FAIL, Overflow in STS and PREI.
5. HOLD: A Boolean value when set to 1 holds the EU count at its current value.
60
Chapter 4 - Software