Promotic

GetHWInfo - method of the AtouchX object

Description:
Detects information about the communication core.
The method creates the INFO variable as a one-dimensional matrix 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.
Syntax:
Integer GetHWInfo(Integer Station, Array INFO)
Parameters:
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 values:
Note:
Connection type
ahwDKP &H100 Connection using DOKOPO.
ahwMOD &H200 Connection using modem.
ahwCOM &H400 Connection using COM.
ahwUDP &H800 Ethernet connection using 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.
Example:
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("return INFO[0]: " + aInfo.GetItem(0));
Pm.Debug("return INFO[1]: " + aInfo.GetItem(1));
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

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