M codes for a second spindle?
- liutas4x4
- Away
- New Member
-
Less
More
- Posts: 18
- Thank you received: 3
22 Feb 2026 17:48 #343316
by liutas4x4
M codes for a second spindle? was created by liutas4x4
Hi.
Are them already preset in project or them should be created by myself?
/eugenius
Are them already preset in project or them should be created by myself?
/eugenius
Please Log in or Create an account to join the conversation.
- michaeln
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 14
22 Feb 2026 18:47 #343318
by michaeln
Replied by michaeln on topic M codes for a second spindle?
Please Log in or Create an account to join the conversation.
- liutas4x4
- Away
- New Member
-
Less
More
- Posts: 18
- Thank you received: 3
23 Feb 2026 19:52 #343360
by liutas4x4
Replied by liutas4x4 on topic M codes for a second spindle?
Checked. It was about relays and laser, nothing about rotation of the motor with preset speed, like M3 S1000.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21421
- Thank you received: 7303
23 Feb 2026 20:36 #343364
by tommylight
Replied by tommylight on topic M codes for a second spindle?
Try
M3 $1 S1000
Since LinuxCNC 2.8 (i think) there is built in support for multiple spindles, the $n should be the G-code controlling the spindle number where n is the spindle number starting from 0 (zero), so $0 is the default first spindle, then $1 is the second spindle, etc.
linuxcnc.org/docs/html/examples/spindle.html
linuxcnc.org/docs/stable/html/gcode/othe...ec:set-spindle-speed
M3 $1 S1000
Since LinuxCNC 2.8 (i think) there is built in support for multiple spindles, the $n should be the G-code controlling the spindle number where n is the spindle number starting from 0 (zero), so $0 is the default first spindle, then $1 is the second spindle, etc.
linuxcnc.org/docs/html/examples/spindle.html
linuxcnc.org/docs/stable/html/gcode/othe...ec:set-spindle-speed
The following user(s) said Thank You: liutas4x4
Please Log in or Create an account to join the conversation.
- liutas4x4
- Away
- New Member
-
Less
More
- Posts: 18
- Thank you received: 3
23 Feb 2026 21:29 - 23 Feb 2026 21:30 #343367
by liutas4x4
Replied by liutas4x4 on topic M codes for a second spindle?
Sounds good. I will try it. Thank you.
Last edit: 23 Feb 2026 21:30 by liutas4x4. Reason: tipo
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- liutas4x4
- Away
- New Member
-
Less
More
- Posts: 18
- Thank you received: 3
25 Feb 2026 19:44 #343497
by liutas4x4
Replied by liutas4x4 on topic M codes for a second spindle?
It is working. Thanks to you and @dm17ry -- it runs easyli.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 21421
- Thank you received: 7303
25 Feb 2026 22:51 #343503
by tommylight
Replied by tommylight on topic M codes for a second spindle?
You are welcomed, always, and thank you for reporting back.
Please Log in or Create an account to join the conversation.
Time to create page: 0.075 seconds