StationSetPriorityV - method of the AtouchX object

Sets the priority for the connection to the station.
The method sets a new priority value for the connection to the Station.
If applies the method to the station connected by a fixed line, then nothing is done and the method returns the error code "OK".
If the method is applied to the modem-connected station, then the priority value is remembered and is further used as additional information when establishing a connection to the station. According to the set modem priorities and the current station priorities, the communication core selects the appropriate modem to establish the connection.
If the application uses only one modem, then working with priorities is not practical.
Integer StationSetPriorityV(Integer Station, Long Priority, Variant OldPriority)
Station(Integer) Number of the station to set the new priority value for the connection.
Priority(Long) New priority value for connection to Station.
OldPriority(Variant) Variable where the old priority value is stored.
Return values:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nInfo = oATC.StationSetPriorityV(2, 3, 2);
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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