Promotic

StationStatus - method of the AtouchX object

Description:
Detects the connection status of the station.
The method detects the available information about the current connection status of the specified Station and returns it in the created INFO matrix.
Syntax:
Integer StationStatus(Integer Station, Array INFO)
Parameters:
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 values:
Note:
The method creates the variable INFO as a one-dimensional matrix with the size of 2 elements. The content of the matrix is:
Info(0) - Hardware connection type.
Info(1) - Connection status.
Example:
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("return INFO: " + aInfo.GetItem(0));
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

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