Creating a custom M command - DDCSV2.1 - Standalone CNC Motion Controller - Digital Dream Technology support
12Next
Return to List Add thread
View: 20803|Reply: 13
Print Previous Topic Next Topic

Creating a custom M command

[Copy Link]

3

Threads

18

Posts

181

Credits

Registered member

Rank: 2

Credits
181
Jump to the specified floor
Landlord
Posted at 2019-7-16 21:21:23 | Only Author Replies reward |Descending browser |Read mode
It was mentioned earlier that custom m instruction (M200.nc-M9999.nc) is possible.
For example i put G01 G53 X20 Y20 F2000 in M2000.nc and copy it in system folder, then i run test.nc which contains M2000 from udisk, but it does not work. I cannot figure out how to make it work?
On a side note in 111 version, i interchange G53/G153 tunctionality,
G01 G53 X20 Y20 F2000 work at F=2000 without problem, but
G00 G53 X20 Y20 still work at #76 default operation speed and not at #80 G0 speed
Reply

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
Sofa
Posted at 2019-7-16 21:49:09 | Only Author
In order to execute the custom M command, you need to set #108(M Bus IO command response) to 1.
Reply Support Opposition

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
Bench
Posted at 2019-7-16 22:01:50 | Only Author
Last edited by ytliu In 2019-7-16 22:05 Editor

By default, G53 is the coordinate system selection command,It does not belong to the motion command group (G0/G1/G2/G3...), it can be used in conjunction with the motion command group. when it is used in conjunction with G0, its motion speed is determined by G0 speed (#80).
The G153 is a motion command group command, which is defined in slib.nc. If the instructions in multiple motion command groups appear on the same line, the last motion instruction that occurs will be executed. For example, G0G153X20Y20 is equivalent to G153X20Y20.
Reply Support Opposition

Use props Report

3

Threads

18

Posts

181

Credits

Registered member

Rank: 2

Credits
181
Floor
 Author| Posted at 2019-7-16 22:36:25 | Only Author
Thank you now it works.
Is there keyboard shortcut for switching M3, M8 and M10 outputs?
Reply Support Opposition

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
5#
Posted at 2019-7-17 12:53:48 | Only Author
The current version does not support it. What keys do you want to use to implement it?
Reply Support Opposition

Use props Report

3

Threads

18

Posts

181

Credits

Registered member

Rank: 2

Credits
181
6#
 Author| Posted at 2019-7-17 14:04:13 | Only Author
Any keys that you think is comfortable can work, i plan to use arduino to add switches to panel.
Can you add 2: M8/M10 response to pararmeter #3 Function of toolpath key. It can work as follows pressing toolpath key toggle M8 output and Shift/2nd key then toolpath key toggle M10 output.
Thank you.
Reply Support Opposition

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
7#
Posted at 2019-7-18 07:24:02 | Only Author
Ver:2019-07-18-111 Description:
1. Add M3/M5, M8/M9, M10/M11 hotkeys: ‘1’, ‘2’, ‘3’
2. Increase the toolpath key function configuration, which can be configured as an external output control key.

install(2019-07-18-111).zip

610.12 KB, Down times: 2189

Reply Support Opposition

Use props Report

3

Threads

18

Posts

181

Credits

Registered member

Rank: 2

Credits
181
8#
 Author| Posted at 2019-7-18 14:33:30 | Only Author
Thank you everything works correctly. Very nice.
Reply Support Opposition

Use props Report

3

Threads

18

Posts

181

Credits

Registered member

Rank: 2

Credits
181
9#
 Author| Posted at 2019-7-23 06:28:58 | Only Author
Is it possible to manually toggle M8/M9, M10/M11 output while g code is running "AUTO", if M code is encountered in gcode running, it can change output accordingly?
Reply Support Opposition

Use props Report

8

Threads

333

Posts

1040

Credits

Super Moderator

Rank: 8Rank: 8

Credits
1040
10#
Posted at 2019-7-23 07:06:51 | Only Author
There is no problem with the implementation. Are you sure that this is safe?
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