Example
REG[0] = HMI_SETPASSWD(4,"MYPWD") ; Result = TRUE if the password has been
changed successfully, otherwise FALSE
6.3.21 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 an array from a 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
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 163