Programming
2.7 Functions
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-103
REPLACE Function: Replacing characters
Syntax: REPLACE
( string, FindString, ReplaceString [, start [, count ] ] )
Description: The REPLACE function replaces a character/string in a string with
another character/string.
Parameters: string String in which FindString is to be replaced with
ReplaceString.
FindString String to be replaced
ReplaceString Replacement string (is used instead of the
FindString)
start Starting position for search and replace operations
count Number of characters that are to be searched from
the starting position after the FindString.
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
2.7.28 PI services
Description
The PI_SERVICE function can be used to start PI Services (Program Invocation Services)
from the PLC in the NC area.
General programming
Syntax: PI_SERVICE (
service, n parameters
)
Description: Executes PI service
Parameters: Service PI service identifier
n parameters List of n parameters of PI Service.
Individual parameters are separated by commas.