Run String As Parts Program Line (Execstring) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.4 Indirect programming
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
(<string_variable>)
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
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)
1-16
Transfer of a string variable with the parts program
line to run
Parameters with the parts program line actually to be
executed
;String variable to be included in ;parts
program line
;Run parts program line "M7 M4711"
;Run parts program line "M3 M4711"
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents