This method is not necessarily called in the script, if the "
AutoRun transfer enabled" configurator is checked (if the
AutoRunEnabled property is set to
true).
The method must be called only for messages of the
Master type, for the message of the
Slave type it is called automatically (
Master/Slave setting - see the "
Message type" configurator).
The
Run method only
activates the message transfer. After termination of the
Run method it is never assured that the data have already been transferred. The
Run method only causes that the
PmaCommMsg object is "placed" into the queue of messages that have to be just transferred.
The
PmaCommMsg object waits in the queue until its turn (this functionality is the internal PROMOTIC property and the designer doesn't need to care about it). Then he starts to transmit its data and waits for the requested received data, reads the data and the whole process is finished by triggering of the
onEndOfTransfer event. The
Run method
doesn't wait for these actions any more.
The
PmaCommMsg object can find itself in two states - the state when the transmission doesn't proceed and the state when the transmission proceeds (i.e. state between calling
Run method and the
onEndOfTransfer event).
The
Run method can be called only over the object in the state when the transmission in this object doesn't proceed. This state can be found out by the
GetReady method.
This method can be called even in the
INFO system by clicking the "
Actions" button. See "
PmaRoot > Permissions > InfoEdit" permission.