GetItemValue - method of the PmaSequencer object

By this method is it possible to find out values (the release time of the item, values of the Val1,2,3 variables) of the first or the last item that are located in the queue. Items are sorted in the queue according to the release time (i.e. the time from calling the onStep event). The first item is that released first. If the items have the same release time, then they are sorted according to the time when they were added (by the Add method).
Variant GetItemValue(Long ItemType, Long ValueType)
ItemType(Long) Item type
0 - The first item in the queue
1 - The last item in the queue
ValueType(Long) Value type of the item
0 - Release time of the item
1 - The Val1 value of the item
2 - The Val2 value of the item
3 - The Val3 value of the item
We'll write data of items in the PmaSequencer object (that is in the tree of Pma objects on the path "/Filler/Sequencer") into the Debug item of the INFO system. The data are: starting time of the first item and the Val2 value of the last item.
JavaScriptVBScriptSelect and copy to clipboard

var oSeq = pMe.Pm("/Filler/Sequencer");
Pm.Debug("Sequencer FirstItem: time=" + oSeq.GetItemValue(0, 0));
Pm.Debug("Sequencer LastItem: Val2=" + oSeq.GetItemValue(1, 2));
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

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