See also
You will find a precise description of the parameters used in the Tool Management Function
Manual of SINUMERIK 840D sl.
Example MAG_CONF_MPF
1. Plant configuration:
– 1 revolver magazine with 8 locations (can be set up in N40)
– 1 loading point
–
3 buffer locations (can be set up in N50, assignments from N540)
2. Part program:
;MAG_CONF_MPF
N10 def int NUM_MAG,MAG_TYPE, LOCATIONS,
PLACE, NUM_BUFFER, NUM_LOAD, PLACE_SEARCH
;
N20 NUM_MAG = 1 ;Number of the magazine
N30 MAG_TYPE = 3 ;Magazine type (1: chain, 3: revolv-
er, 5: box magazine)
N40 LOCATIONS = 8 ;Number of magazine locations
N50 NUM_BUFFER = 1 ;Number of buffers (spindle, grip-
per)
N60 NUM_LOAD = 1 ; Number of loading points
N70 PLACE_SEARCH = 257 ; Type of search strategy
;= 257 Bit13=0 no exchange of the old tool on the location of the new tool
;Setting for pickup magazine
;=12289 Bit13=1 exchange old tool on the location of the new tool
;Setting for chain magazine
N80;
N90;
;Check parameters
N100 STOPRE
N110 if ((NUM_MAG==0)or(LOCATIONS==0))
N120 Err1:STOPRE
N130 MSG("Wrong Parameter --> Cancel")
N140 G04 F4
N150 STOPRE
N160 M0
N170 GOTOB Err1
N180 endif
N190; Magazine configuration
N200;
N210;
Tool management
9.7 Application example for turning machine
CNC commissioning
Commissioning Manual, 10/2015, 6FC5397-3DP40-5BA3 305