Promotic

onDataReceive - event of the PmaCommMsg object

Description:
The event is triggered after the successful data reading and saving into the "Data-received" tab of this object.
Can be use mainly for Slave message for the preparation of transmitted data data.
For message of the Master type, it is better to use onBeginOfTransfer and onEndOfTransfer events.
Parameters:
pMe(Object) Reference to the PmaCommMsg object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
The pEvent parameter is not used here because this event does not need any additional information.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var val = pMe.ReadVars(0).Value;
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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