GetCount - method of object PmaComm

Detects the number of transmissions of this object.
Long GetCount(Long nType)
n = oComm.GetCount(nType)
nType(Long) Specifies transmissions in this object whose number we want to get.
0 - The number of all transmissions (successul and failed) since application launch (= GetCount(1) + GetCount(2))
1 - The number of all successful transmissions since application launch
2 - The number of all failed transmissions since application launch
3 - The number of latest failed transmissions. 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 PmaCommGroup type (see PmaCommGroup.GetCount method) and of the PmaCommMsg type (see PmaCommMsg.GetCount method).
If communication error occurs 5 times in a row in this object, then notify (e.g. call the alarm, etc.)
JavaScriptVBScriptSelect and copy to clipboard

if (oComm.GetCount(3) > 5)
//The action for warning the non-functional communication

Pm8.03.00: can be used for counting the total number of communication transfers.
PROMOTIC 9.0.9 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