Programming
2.7 Functions
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-85
2.7.14 Load Array (LA)
Description
The LA (Load Array) function can be used to load an array from another file.
Programming
Syntax: LA
(Identifier [, File])
Description: Loads array from file
Parameters: Identifier Name of array to be loaded
File File in which the array is defined
Note
If an array in the current configuration file must be replaced by an array from another
configuration file, then both arrays must have the same name.
Example
; Extract from file maske.com
DEF VAR2 = (S/*ARR5/"Out"/,"Toggle
field")
PRESS(HS5)
LA("ARR5","arrayext.com") ; Load array ARR5 from file arrayext.com
VAR2 = ARR5[0] ; "Above"/"Below"/"Right"/"Left" appears in the
VAR2 toggle field
instead of "Out/In"
END_PRESS
//A(ARR5)
("Out"/"In")
//END
; Extract from file arrayext.com
//A(ARR5)
("Above"/"Below"/"Right"/"Left"
)
//END