Hello everyone! Can someone help to copy the logic of the macro for auto-change for Uccnc? We want to replace our controllers with AXBBE! But we do not understand the programming language! In our controller (ddcsv expert) this macro was already registered and worked perfectly!
that's what he is ..
(---------------Fixed inline tool change process
-----------------)
N23
#1503 = 1(Fixed inline tool change start!)
#20= 2; Tighten the knife and loosen the knife output port
#11= 5; Loose knife detection port
#12= 6; Tight knife detection port
#13= 7; Spindle stop detection port
#21 = 4; Dust holder open
M05; Spindle off
WHILE [#[1520+#13-1] NE 0] DO1
#1503 = 1 (Spindle stop detection..)
G04 P10
END1
#1503 = 1 (The spindle is lifted to the upper position of the tool changer...)
G53 Z#1306 F#1312; The spindle is lifted to the upper position of the tool change
#1503 = 1 (The spindle moves to the front point Y of the tool change...)
G53 Y#1309 F#1311; The spindle moves at the front point Y of the tool change
#1503 = 1(The spindle moves to the current tool coordinate X...)
G53 X[#[1330+#1300-1]] F#1311; X coordinate
#1503 = 1 (The spindle moves to the lower position of the tool change...)
G53 Z#1307 F#1312;
#1503 = 1(The spindle moves to the current tool coordinate Y...)
G53 Y[#[1350+#1300-1]] F#1313; Y coordinate position
#1503 = 1 (spindle tool release output)
#[1552+#20-1] = 1; Spindle tool release
G04 P100
WHILE [#[1520+#11-1] NE 0] DO2
#1503 = 1 (Spindle tool loosening detection..)
G04 P10
END2
#1503 = 1 (the spindle is lifted to the upper position of the tool change...)
G53 Z#1306 F#1312; The spindle is lifted to the upper position of the tool change
#1503 = 1(The spindle moves to the XY coordinate of the target tool...)
G53 X[#[1330+#1-1]] Y[#[1350+#1-1]] F#1311;
#1503 = 1 (The spindle moves to the lower position of the tool change...)
G53 Z#1307 F#1312;
#1503 = 1 (spindle tightening)
#[1552+#20-1] = 0; Spindle tightening
G04 P100
WHILE [#[1520+#12-1] NE 0] DO3
#1503 = 1(Spindle tight tool detection..)
G04 P10
END3
#1503 = 1 (The spindle moves to the front point Y of the tool change...)
G53 Y#1309 F#1313; The spindle moves at the front point Y of the tool change
#1503 = 1 (the spindle is lifted to the upper position of the tool change...)
G53 Z#1306 F#1312; The spindle is lifted to the upper position of the tool change
#[1555+#21-1] = 0 Close Dust Holder
GOTO5;Fixed in-line tool change completed