Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetReady - method of object PmaCommMsg

Description:
Detects whether the PmaCommMsg object is ready to transfer the message.
Syntax:
GetReady
Calling:
b = oCommMsg.GetReady()
Return Values:
true - Object is ready to transfer the message (the Run method can be called)
false - Object is not ready to transfer the message (the message from the previous calling the Run method is still transferring)
Note:
The PmaCommMsg object gets in the transfer data state by the Run method. During the transfer the Run method cannot be re-called over the object and the GetReady method then returns the value false. After the transfer (i.e. after the onEndOfTransfer event is triggered) the Run method can be called again and the GetReady method returns the value true.
 
This method is functional only if the message is of Master type (i.e. if "Message type" configurator is set to "Master").
See also:
- Run
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (oCommMsg.GetReady())
oCommMsg.Run();
else
Pm.Debug("CommMsg is not ready (the previous message is being transmitted)");
PROMOTIC 9.0.3 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice