f$WatchInfo
f$WatchInfo
You can use this function in a Watch-DT to determine which parameter, including its index, has been modified and in doing so caused the Watch-DT to be called. Furthermore, the previous value for this parameter can be determined in order to be able to react individually to system events.
Syntax: | f$WatchInfo('PGName') | ||
| Argument | Type | Meaning |
| PGName | String | Parameter group of the type TDV:Kontrollinfo. The calculated values are written into this parameter group. |
The parameter group Kontrollinfo contains the following parameters:
Name | Type | Meaning |
PGName | String | Name of the parameter group |
ParaName | String | Name of the parameter |
PGIdx(3) | Integer | Parameter group index for the modified parameter |
ParaIdx(3) | Integer | Index of the modified parameter |
oldFlag | Integer | Parameter’s state before being modified: 0 – value 1 – undef 2 – noval |
Type | Integer | Parameter type: 1- string, otherwise a number |
oldNumVal | Decimal | Old numeric value if the parameter is an integer or decimal |
oldStrVal | String | Old string if the parameter is of string type. |