pMe | (Object) Reference to the PmaCommMsg object where the event rises. |
---|---|
pEvent | (Object) Reference to an object describing detailed information about the specific event.
The pEvent parameter is not used here because this event does not need any additional information. |
var oData = pMe.Pm("/BoilerPlant/Data");
pMe.WriteVars("Temperature").Value = oData.Item("Temperature1").Value;
pMe.WriteVars("Power").Value = oData.Item("Power1").Value;
pMe.WriteVars("Pressure").Value = oData.Item("Pressure1").Value;