Update cookies preferences
Promotic

GetItemValue - method of the PmaSequencer object

Description:
By this method is it possible to find out values (the release time of the item, values of the Val1,2,3,4,5 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 triggering 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).
Syntax:
Variant GetItemValue(Long ItemType, Long ValueType)
Parameters:
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
4 - The Val4 value of the item
5 - The Val5 value of the item
Example:
We'll write data of items in the PmaSequencer object (that is in the Pma object tree 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));

History:
Pm9.00.25: New options 4 and 5 of the ValueType parameter.
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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