Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetCount - method of object PmaCommGroup

Description:
Detects the number of transmissions of this object.
Syntax:
GetCount(nType)
Calling:
n = oCommGroup.GetCount(nType)
Parameters:
nType(Long) Specifies transmissions in this object whose number we want to get.
 
Number of transfers since data receive and data send:
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 (= GetCount(11) + GetCount(21))
2 - The number of all failed transmissions since application launch (= GetCount(12) + GetCount(22))
3 - The number of latest failed transmissions. This number is set to 0 after every successful transmission.
 
Number of transfers since data receive:
10 - similar as 0 (= GetCount(11) + GetCount(12))
11 - similar as 1
12 - similar as 2
13 - similar as 3
 
Number of transfers since data send:
20 - similar as 0 (= GetCount(21) + GetCount(22))
21 - similar as 1
22 - similar as 2
23 - similar as 3
Note:
By the term "transmission" is here understood the action that is finally terminated by the onDataReceive event. If the "Number of repeats after unsuccessful transmission" configurator is greater than 1 in the serial link parameters (or in the Ethernet parameters), then the message is repeated more times after an error but from the point of this statistics it is just 1 transmission.
Example:
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 (oCommGroup.GetCount(3) > 5)
//The action for warning the non-functional communication

History:
Pm8.00.00: Created
PROMOTIC 9.0.3 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