Promotic

StationDisconnect - method of the AtouchX object

Description:
Initiates the process of disconnecting the station.
The method initiates the necessary HW actions to disconnect the Station, without waiting until the actual disconnection.
 
If the method is applied to a modem-connected station, then a sequence leading to disconnection is initiated (modem hangs up, etc.). Immediately after returning from the method, the Station is treated as "disconnected". The process of hanging the modem may take several seconds and during this "recovery" period the modem is unusable. If only one modem is connected to the PC, then it is necessary to understand, that after using the StationDisconnect method, it is necessary to wait for some time before any connection can be re-established.
 
If the method is used on a station connected by a fixed line, then nothing is done and the method returns the error code "OK".
 
The method should be called whenever it is obvious and necessary to terminate the connection to a modem-connected station (as opposed to establishing a connection which happens automatically the first time a station is requested to communicate).
Syntax:
Integer StationDisconnect(Integer Station)
Parameters:
Station(Integer) Number of the station to be disconnected.
Return value:
Example:
JavaScriptVBScriptSelect and copy to clipboard

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

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