ON CHANGE action
A group of values can represent a row, a column or entire object
Structured variable type.
- the identifier of the second row: SV.Structure (column name is not stated)
- the identifier of the column Int: SV.Structure^Int (the row index is 0)
- the identifier of all values (entire structure): SV.Structure, or SV.Structure (the row index is 0).
The traced value can be identified through HOBJ or VOBJ.
After the action execution, for example:
The procedure ValueChanged is to be called always, when a value change of the object Sec occurs (therefore every second). If the following action is performed within the frame of the script:
calling the procedure ValueChanged is to be terminated during a value change of the object Sec. At the action notation, it is able to state the structure item:
In this case, the procedures ValueChanged and ValueChanged1 are to be called during a change of the object Sec.
A procedure called on the basis of a value change must be declared in the following way:
ProcName is the procedure name, that meets the rules for procedure name.
_value is a parameter, to which a new value of the monitored object (or an item during the monitoring of a structure item change).
ValueType determines the type of the parameter _value. If the type is not selected correctly (in regard to a value changed), an invalid value is to be assigned to the parameter.
_referenceToObject is a parameter of ALIAS type. After the procedure start, it is initialized to refer to the object, which changes the value (in case of monitoring an item, ALIAS is referred to the whole structure, not the item).
_row, _column are the parameters of INT type. They make a difference only if the procedure is called by reasons of a value change of a structured variable item. Otherwise they are set to the value of 0. In case of a value change, the parameter _row contains the serial row number and the parameter _column contains the serial column number within the frame of the particular structured variable.
- the object Sec
- the item SV.Structure^Int
- any item in the row Int (SV.Struktura^Int)
to an operator on the desktop of the process