Flexible NC programming
1.4 Indirect programming
Job planning
1-16 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.4.1 Run string as parts program line (EXECSTRING)
Function
Parts program command EXECSTRING passes a string as a parameter that already
contains the parts program line to run.
Programming
EXECSTRING (<string_variable>)
Parameters
EXECSTRING Transfer of a string variable with the parts program
line to run
(<string_variable>) Parameters with the parts program line actually to be
executed
Note
All parts program constructions that can be programmed in a parts program can be output.
That excludes PROC and DEF instructions and all use of INI and DEF files.
Example: Indirect parts program line
N100 DEF STRING[100] BLOCK ;String variable to be included in ;parts
program line
N110 DEF STRING[10] MFCT1 = "M7"
N200 EXECSTRING(MFCT1 << " M4711") ;Run parts program line "M7 M4711"
N300 R10 = 1
N310 BLOCK = "M3"
N320 IF(R10)
N330 BLOCK = BLOCK << MFCT1
N340 ENDIF
N350 EXECSTRING(BLOCK) ;Run parts program line "M3 M4711"