Expanding the Operator Interface (BE1) 08/2005
3 Syntax
© Siemens AG, 2005. All rights reserved
BE1/3-102 SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
Example:
DEF VAR01
DEF VAR02
LOAD
VAR01="HELLO/WORLD"
VAR02=MIDS(VAR01,4,4) ;Result = "LO/W"
END_LOAD
Replacing characters
Syntax
REPLACE ( String, FindString, ReplaceString [, Start [, Count ] ] )
Parameter:
String
String, in which the Fin String is to be replaced by the
ReplaceString
FindString
String to be replaced
ReplaceString
Replacement string (is used instead of the FindString)
Start
Start position from which a search is made or replacement
made
Count
Number of characters that are to be searched from the Start
position after the FindString
Function:
The REPLACE function replaces a character/string in a string by another
character/string. It is similar to the basic function of the same name.
Return value:
If… Return value
String = Blank string Copy of String
FindString = Blank string
Copy of String
ReplaceString = Blank string
Copy of String, in which all occurrences of
FindString are deleted
Start > Len(String) Blank string
Count = 0 Copy of String
3.6.12 Functions for start softkeys
Start softkeys can be used to initiate certain functions. The following functions are
possible:
• The LM function can be used to load another screen form.
LM("Identifier"[,"File"])
• The LS function can be used to display another softkey menu.
LS("identifier"[, "file"][, merge])
• You can use the EXIT function to leave the newly configured user interfaces
and return to the standard application.
• You can use the EXITLS function to exit the current user interfaces and load a
defined softkey menu.