Writing a M6 toolchange macro - DDCSV2.1 - Standalone CNC Motion Controller - Digital Dream Technology support
View: 6889|Reply: 1
Print Previous Topic Next Topic

Writing a M6 toolchange macro

[Copy Link]

3

Threads

10

Posts

67

Credits

Registered member

Rank: 2

Credits
67
Jump to the specified floor
Landlord
Posted at 2018-9-24 23:50:35 | Only Author Replies reward |Descending browser |Read mode
Hello

I have been trying to write a new T.nc file to make toolchanges easier for me.

The functionality I want is as follows:

1: Probing on the workpeice with normal probe function (2nd --> -A --> -A) to find the Z0
2: Then cutting with Tool no. 1 can begin.
3: When M6T02 is called in the G-code - the contents of T.nc is called and executed
4: The spindle should then move to a fixed location in the machine coordinate system where my fixed toolsensor is located.
5: It then measures the current tool (T01) once and then retracts a certain amount.
6: Tool T02 is then inserted manually into spindle.
7: Spindle moves down to probe the new tool (T02) ! Question here: Can the height offsets in the controller be used to calculate the new probing height?
8: Spindle retracts
9: Spindle turns on - Wait 5s
10: Continue reading G-code

Is this possible or is there a better way of doing it?
I am having a tough time doing this on the DDCS. I have programmed it in Mach4 and Lua without a problem but just can't figure it out on the DDCS.

Best regards
Andreas Landsfeldt


Reply

Use props Report

1

Threads

6

Posts

21

Credits

Newbie Member

Rank: 1

Credits
21
Sofa
Posted at 2021-10-9 01:06:57 | Only Author
I have this problem too . Can any body help to write a macro for automatic tool change and probing?
Reply Support Opposition

Use props Report

You need to log in before you can reply Login | Register now

This forum Credits Rules

Shenzhen Digital Dream Numerical Technology Co., Ltd. support
Adress:507,A Building,Leibo Industry Zone,No. 22 Jinxiu East Road,Kengzi Street,Pingshan district,Shenzhen City,P.R. of China
Phone:13244704799
E-mail:info@ddcnc.com

TEL

0755-87654321

Wchat

Website designed by DigitalDream Technology Support
Quick Reply Back to top Back to list