Programming
2.4 Complex dialog elements
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-47
2.4.4 Scanning the status of an array element
Description
The Status property can be used to run a scan to find out whether an array access operation
is supplying a valid value.
Programming
Syntax:
Identifier [Z, S, [M[,C]]]
.vld
Description: Status is a read-only property.
Parameters: Identifier Name of array
Return Value: FALSE =
TRUE =
invalid value
valid value
Example
DEF MPIT = (R///"MPIT",,"MPIT",""/wr3)
DEF PIT = (R///"PIT",,"PIT",""/wr3)
PRESS(VS1)
MPIT = 0.6
IF MET_G[MPIT,0,4,1].VLD == TRUE
PIT = MET_G[MPIT,1,0].VAL
REG[4] = PIT
REG[1] = "OK"
ELSE
REG[1] = "ERROR"
ENDIF
END_PRESS
2.4.5 Table grid (grid)
Definition
In contrast to the array, the values of a table grid (grid) are continually updated. This involves
a tabular representation of the values of system variables that can be addressed using one
block in one channel.