Counter1 data point type

This data point type can be used to display count values. There are three different types of counters:

  1. Counter in the PLC (normal incrementation)

  2. Count value from measured value (with integral factor)

  3. Pulse counter

Element Data type Description
para.type unsigned == 1 normal incrementation, == 2 count value from measured reading, == 3 pulse counter
para.overflow unsigned Maximum value of the counter, when it overflows the counter begins counting again from 0.
para.tolerance unsigned Tolerance for the overflow limit.
para.integralFactor float Conversion factor for measured value (type==1)
value.plcCounter unsigned PLC count value, raw value for type==1
value.plcImpulse bool PLC count value, raw value for type==3
value.dpValue float Measured value, raw value for type==2
value.pvssCounter unsigned WinCC OA count value
value.plcInterm unsigned Temporary memory for calculation values
cmd.ResetPLC bool Reset counter in the PLC
counter typref Type reference of data point type Counter_Sub (A/C type)

Associated symbols

Symbol Symbol name Description
Counter1 Count value
Counter1_1 Count value with label (data point name)