ATC-manual
ATC-manual
2.2.1 FLOWCHART
working flowchart:of the Disc tool magazine
2.2.2 YSTEM RESOURCE CONFIGURATION
Output definition
series no. main function pin number
1 spindle stop accurately 9
2 disk cw output 10
3 disk ccw output 11
4 air cylinder push 12
5 spindle air cylinder push 13
6 吹气 blow 14
input definition
series no. main function pin number
1 spindle stop input 5
2 disk air cylinder back input 6
3 disk air cylinder push input 7
4 tool counting input 8
5 disk home signal input 9
6 spindle cut loosen input 10
7 spindle cut clamp input 11
+ configuration chart for tool magazine feature and parameter of macro-variable
(20)M89 P8 L1 start spindle stop accurately spindle blow use for blow
(21)M89 P13 L1 (blow) off cooling liquid or piece
(22)G04 X#407 (blow delay) produce by process
(23)M89 P13 L0 (close blow)
(24)M88 P4 L0 (spindle stop accurately) (wait for spindle stop accurately position)
This code is corresponding to the flow chart “spindle accuracy stop” and make sure the spindle stop
accurately.
3.3 X、Y AXIS POSITION TO TOOL CHANGING POINT
(25)G01 X[#401] Y[#402] F#406
Above program is for machine move to X and Y axis tool changing point , ready for tools back
to tool magazine, this is corresponding to work flow chart “Spindle at the point of X/Y axis tool
change”
(26)IF[[#201]!=0] (judge if present tool no. is o or not)
(27){ (if the value is not 0, then execute next codes 码)
(28)G01 Z[#403] F#405 (machine move to Z axis tool chaning point
(29)M89 P11 L1 (air cylinder push )
(30)M88 P6 L0 (wait for disk air cylinder back input)
(31)M89 P12 L1 (spindle air cylinder push)
(32)G04 P300 (delay 300 millisecond)
(33)G01 Z[#403+2.5] F1000 (Z axis rise up 2.5+#403mm to prevent withhold tool disc when
loose tool )
(34)M88 P9 L0 (wait for spindle cut loosen input)
(35)G01 Z[#403+#404] F#405 (Z axis rise up to safe position)
(36)}
Above program is simple and clear, for judge the return tool number is 0 or not , Z axis
position to tool changing point , and then push out tool disc, next step is checking and waiting for
r disk air cylinder back input signal, when get this signal means handle on the spindle was block in
tool disc already, and then output spindle air cylinder push signal to loose tool handle, G04 P300
delay is make sure that there is enough time to loose the tool, “G01 Z[#403+2.5] F1000”, this
code is add base on customer’s tool magazine, not necessary for all tool magazine. After getting the
spindle air cylinder push signal , Z axis back to safe height, ready for next tool changing.
3.4 CHOOSE TOOL NEARBY
choose a tool nearby for disc tool magazine, for each selection ,the +or – direction rotate will not
exceed 180°, short time and high efficiency.
(37)#1=0 (symbol for tool disc +or- rotate, #=1 is +, and #=0 is -) the default
value is #=1
(38)IF[#201 > [#400/2]] GOTO 1
(if the present tool NO. is in lower half of tool magazine,the program will jump to N1)???
(39)IF[[#201 >= #200] || [#200 > [#201+[#400/2]]]] GOTO 2
(39) code is use for below type of tool magazine)
The present tool NO. is bigger than target tool number or target tool located at lower half of tool
magazine, for example, the max tool number is 24, present tool NO. is 1, target tool NO.is 16, the
nearest path is: No 1—>No 24 Æ-No 23...No 16
forward rotate choose tool
(40)M89 P9 L1
(disc CW output : P9 is disc CW output signal..nearby tool changing : if present tool NO. is 3
and target toolNO. is 4, disc CW)
(41)#1=0 (symbol is 0, tool selection of disc CW)
(42)GOTO 3 jump to N3
(43)N2 tool seletion of ccw
(44)M89 P10 L1 ( disc ccw output )
(45)#1=1 (symbol is 1, tool selection of disc CCW)
(46)GOTO 3 jump to N3
(47)N1
(48)IF[[#201 >= #200 && #200 <= #400] && [#200 > [#201+#400/2]MOD#400]] GOTO 4
if the condition of program NO. (49) is established, then JUMP to N4,or execute the coming
program tool selection of cw, dragram show as follow
(the present tool NO.is bigger or same as target tool NO., target tool NO. IS smaller or same as
system max tool NO. and both present tool N and target NO. both locat at lower half of tool
magazine, for example: present tool NO. is 22 and target toolNO. is 12, it will be ccw)
(49)M89 P9 L1 (disc cw, P9 is the signal of the disc cw )
(50)#1=0 (symbol is 0, tool selection of cw)
(51)GOTO 3 jump to N3
(52)N4 (tool selection of CCW)
(53)M89 P10 L1
(54)#1=1 (symbol is 1, tool selection of ccw)
(67)N8
(68)END1 (ending )
The programs From No (55) to (68) are for counting base on previous tool selection direction to
select tool, principle is accumulation or decrease by present tool number , tool selection is finished
when present tool NO. is same as target tool NO.. Finish tool
selcetion
(69)IF[#1==1] GOTO 5 (JUMP to N5)
(70)G04 P#408 (dealy)
(71)M89 P9 L0 close disc cw output signal after delay )
(72)GOTO 6
(73)N5
(74)G04 P#409 (delay)
(75)M89 P10 L0 (close disc ccw output signa after delay )
The programs From (69) to (75) are for closing corresponding port according to previous tool
selection direction.