StationStatus - method of the AtouchX object

Returns the connection status of the station.
The method returns the available information about the current connection status of the specified Station and returns it in the created INFO matrix.
Integer StationStatus(Integer Station, Array INFO)
Station(Integer) Number of the station whose connection status information is to be obtained.
INFO[for read and write] (Array) Variable where the result is stored.
Return value:
The method creates the variable INFO as a 1-dimensional array with the size of 2 elements. The content of the array is:
Info(0) - Hardware connection type.
Info(1) - Connection status.
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nStation = 2;
var mInfo = Pm.CreatePmMap();
mInfo.ParValue = Pm.CreatePmArray(1, 1);
var nState = Pm.CallAxMethod("", oATC, "StationStatus", nStation, mInfo);
var aInfo = mInfo.ParValue;
Pm.Debug("AtouchX.StationStatus return INFO: " + aInfo.GetItem(0));
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.