GetHWInfo - method of the AtouchX object

Detects information about the communication core.
The method creates the INFO variable as a 1-dimensional array with 2 elements.
INFO(0) The version of the hardware driver that provides the Station connection in BCD format, so the upper byte contains the version number and the lower byte contains the subversion number.
INFO(1) hardware connection type.
Integer GetHWInfo(Integer Station, Array INFO)
Station(Integer) Number of the station whose hardware connection information is to be found out.
INFO[for read and write] (Array) Variable where the result is stored.
Return value:
Connection type
ahwDKP &H100 Connection using DOKOPO.
ahwMOD &H200 Connection using modem.
ahwCOM &H400 Connection using COM.
ahwUDP &H800 Connection using Ethernet by UDP protocol.
ahwSVM &H080 Point-to-point connection using "service mode".
ahwGPR &H040 Connection using GPRS.
ahwTCP &H020 Connection using Ethernet by TCP protocol.
ahwNON &HFF00 Testing empty connection.
ahwALL &HFFFF Any connection type.
JavaScriptVBScriptSelect and copy to clipboard

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

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