Flexible NC programming
1.9 String operations
Job planning
84 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Examples
Example 1: Single character access to system data, machine data, etc.
Program code Comments
DEF STRING [50] STRG
DEF CHAR ACK
…
STRG = $P_MMCA
ACK = STRG [0] ; Evaluating the acknowledgement
components
Example 2: Single character access with call-by-reference parameter
Program code Comments
DEF STRING [50] STRG
DEF CHAR CHR1
EXTERN UP_CALL (VAR CHAR1) ; Call-by-reference parameters!
…
CHR1 = STRG [5]
UP_CALL (CHR1) ; Call-by-reference
STRG [5] = CHR1