Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onBeginOfTransfer - event of object PmaCommMsg

Description:
The event is triggered always before transmitting the Master message starts. Is triggered right after the Run method. The Run method can be called in the script or automatically, if the AutoRunEnabled property is enabled.
Parameters:
pMe(Object) Reference to the PmaCommMsg object where the event rises.
pEvent(Object) Reference to object describing detailed information about the specific event.

The pEvent parameter is not used here because this event does not need any additional information.

Note:
The event is triggered only for Master messages (i.e. if "Message type" configurator is set to "Master").

In this event, it is possible for example to fill the transmitted data on the "Data-sent" page.

Example:
The transmitted data will be filled with 3 variables from the object of the PmaData type in the boiler room.
JavaScriptVBScriptSelect and copy to clipboard

var oData = pMe.Pm("/BoilerPlant/Data");
pMe.WriteVars.Item("Temperature").Value = oData.Item("Temperature1").Value;
pMe.WriteVars.Item("Power").Value = oData.Item("Power1").Value;
pMe.WriteVars.Item("Pressure").Value = oData.Item("Pressure1").Value;

History:
Pm8.00.01: Created
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