|pMe||(Object) Reference to the PmaCommMsg object where the event rises.|
|pEvent||(Object) Reference to object describing detailed information about the specific event.|
pEvent.Error - (Long) Success rate of the message transfer.
4 - transfer proceeded without errors but less data were received than expected
5 - transfer proceeded without errors but more data were received than expected
33 - software error
62 - negative acknowledement
65 - wrong transmitted data (e.g. the wrong configuration of the communication card)
The error state can be detected even after this event using the LastErr and LastTextErr properties. Cumulative error count can be detected by the PmaCommMsg.GetCount or PmaComm.GetCount methods (it is usefull when detecting communication problems).
var val = pMe.ReadVars(0).Value;
pMe.Pm("/Boiler1/Data/#vars/Temperature").Value = 100 + 10 * val;