Promotic

StationSetSelfPlug - method of the AtouchX object

Description:
Starts monitoring the connection status of the station or PC.
The method sets the monitoring of PC connection changes to one or more HW types. The HWType parameter specifies which connection types to monitor on the PC side. The value is bitwise oriented. The lower 12 bits (D11-D0) specifies which type of HW connection is to be monitored (according to the ahwXXXX constants) and the upper 4 bits (D15-D12) specify the fixed network segment number whose connection changes are to be monitored. If a valid segment number is specified in the upper bits then the StationSetSelfPlug method will monitor the connection changes of this segment. If the number 15 is specified in the upper bits, then the StationSetSelfPlug method will track changes to all segments of the specified connection type.
 
The ahwALL value will cause changes to be tracked on all segments on all HW connection types.
 
The Param value also serves as an identifier when tracking status, while the 0 value is used to cancel status monitoring of all stations or PCs.
Syntax:
Integer StationSetSelfPlug(Integer HWType, Long Param)
Parameters:
HWType(Integer) Connection type to be monitored.
Param(Long) The value that is passed unchanged to the connection state change event.
Return value:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nInfo = oATC.StationSetSelfPlug(0xffff, 60);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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