GetCount - method of object PmComm

Detects the number of transmissions of this object
GetCount(nType As Long) As Long
n = oComm.GetCount(nType)
nType(Long) Specifies transmissions whose number we want to get:
0 - The number of all transmissions (successul and failed) in this object since application launch (sum of types 1 and 2)
1 - The number of all successful transmissions in this object since application launch
2 - The number of all failed transmissions in this object since application launch
3 - The number of latest failed transmissions in this object. This number is set to 0 after every successful transmission.
The total transfer count is represented by a sum of transfers of all subobjects of the PmCommData type (see the PmCommData.GetCount method) and of the PmCommMsg type (see the PmCommMsg.GetCount method).
If communication error occurs 5 times in a row in this object, then notify (e.g. call the alarm, etc.)
VBScriptSelect and copy to clipboard

If oComm.GetCount(3) > 5 Then
  'The action for warning the non-functional communication
End If
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice