Title: Creating a custom M command [Print This Page] Author: neel8440924 Time: 2019-7-16 21:21 Title: Creating a custom M command 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 Author: ytliu Time: 2019-7-16 21:49
In order to execute the custom M command, you need to set #108(M Bus IO command response) to 1.Author: ytliu Time: 2019-7-16 22:01 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.Author: neel8440924 Time: 2019-7-16 22:36
Thank you now it works.
Is there keyboard shortcut for switching M3, M8 and M10 outputs?Author: ytliu Time: 2019-7-17 12:53
The current version does not support it. What keys do you want to use to implement it?Author: neel8440924 Time: 2019-7-17 14:04
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.Author: ytliu Time: 2019-7-18 07:24
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.
Author: neel8440924 Time: 2019-7-18 14:33
Thank you everything works correctly. Very nice.Author: neel8440924 Time: 2019-7-23 06:28
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?Author: ytliu Time: 2019-7-23 07:06
There is no problem with the implementation. Are you sure that this is safe?Author: neel8440924 Time: 2019-7-23 14:18
M3 spindle output manually toggle is dangerous during "AUTO", but M8/M9 coolant and M10/M11 mist manual toggle is common on many industrial cnc machines.Author: ytliu Time: 2019-7-23 17:19
By extending the keyboard '2' and '3', you can change the M8/M9 and M10/M11 states in any state.
Author: neel8440924 Time: 2019-7-23 23:04
Is it possible to manually toggle M8/M9 during "AUTO", via toolpath key, now i can do everything i need without keyboard if this works?Author: ytliu Time: 2019-7-24 06:55
Ver:2019-07-23-112 Description:
1. Fixed an error that the file list could not be displayed in the file page without inserting USB stick;
2. Correct the error that the A axis cannot be stopped in the CONT mode in some controllers;
3. M8 / M9 can be manually toggled during "AUTO" via the toolpath key;