Flexible NC programming
1.2 Indirect programming
1.2.4
Indirectly programming part program lines (EXECSTRING)
Function
Using the part program command
generated string variable as part program line.
Syntax
EXECSTRING
EXECSTRING (<string_variable>)
Meaning
EXECSTRING
<string variable>
Note
With
section of a part program can be extracted. This means that
excluded as well as the general use in INI and DEF files.
Example
Program code
N100 DEF STRING[100] BLOCK
N110 DEF STRING[10] MFCT1="M7"
...
N200 EXECSTRING(MFCT1 << "M4711")
...
N300 R10=1
N310 BLOCK="M3"
N320 IF(R10)
N330 BLOCK = BLOCK << MFCT1
N340 ENDIF
N350 EXECSTRING(BLOCK)
68
is programmed in a separate part program line:
:
Command to execute a string variable as part program line
:
Type STRING variable, that includes the actual part program line
to be executed
all part program constructions that can be programmed in the program
EXECSTRING
, it is possible to execute a previously
EXECSTRING
Comment
; Definition of string variables to
accept the part program line to be
executed.
; Execute part program line "M7 M4711".
; Execute part program line "M3 M7".
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
and
instructions are
PROC
DEF
Job Planning