Promotic

StationConnect - method of the AtouchX object

Description:
Initiates the process of connecting the station.
The method initiates the necessary HW actions to establish a connection to the Station, without waiting until the connection is actually established.
 
If the method is applied to a modem-connected station, then the sequence leading to the connection is initiated (modem dials a phone number, etc.). The status of the connection can be monitored by the StationStatus method.
 
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".
 
It is not necessary to call the method before using the communication methods. The communication methods themselves will detect that a connection has not been established and initiate a sequence to make the connection, if necessary, i.e. the connection is established automatically at the first request to read or write values from/to the station. The method is rather used to force the connection to be established before (e.g. immediately after the application starts) the physical communication starts, in order to save some time.
Syntax:
Integer StationConnect(Integer Station)
Parameters:
Station(Integer) Number of station to be connected with.
Return values:
Example:
JavaScriptVBScriptSelect and copy to clipboard

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

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