M codes for a second spindle?

More
8 months 1 week ago #343316 by liutas4x4
Hi.
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.

More
8 months 1 week ago #343318 by michaeln

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #343360 by liutas4x4
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.

More
8 months 1 week ago #343364 by tommylight
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
The following user(s) said Thank You: liutas4x4

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago - 8 months 1 week ago #343367 by liutas4x4
Sounds good. I will try it. Thank you.
Last edit: 8 months 1 week ago by liutas4x4. Reason: tipo
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #343497 by liutas4x4
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.

Time to create page: 0.074 seconds
Powered by Kunena Forum