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