CS-Lab Support Forum for CNC Community
Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help!
learning simCNC
Quote from nvr11 on 4 April 2023, 10:11Hello everyone, Here again with a question.
In Mach 3 I used the following :
DoSpinCW()
ActivateSignal(OUTPUT2)
to start spindle cooling with macro M3.
How can I do the same in simCNC ??
Thank you
Hello everyone, Here again with a question.
In Mach 3 I used the following :
DoSpinCW()
ActivateSignal(OUTPUT2)
to start spindle cooling with macro M3.
How can I do the same in simCNC ??
Thank you
Quote from CS-Lab Support on 4 April 2023, 12:21Hello,
For the M3 macro:
print("spindle on CW")
d.setSpindleState(SpindleState.CW_ON)
print("spindle ready")spindle_cooling_digital_out = 10
mod_IP = d.getModule( ModuleType.IP, 0 )
mod_IP.setDigitalIO( spindle_cooling_digital_out, DIOPinVal.PinSet )For the M5 macro:
print("Stopping spindle")
d.setSpindleState(SpindleState.OFF)
print("Spindle stopped")spindle_cooling_digital_out = 10
mod_IP = d.getModule( ModuleType.IP, 0 )
mod_IP.setDigitalIO( spindle_cooling_digital_out, DIOPinVal.PinReset )
Remember that “spindle_cooling_digital_out” is the number of CSMIO/IP controller digital output.
Set this value to the appropriate one for your machine.
Hello,
For the M3 macro:
print("spindle on CW")
d.setSpindleState(SpindleState.CW_ON)
print("spindle ready")
spindle_cooling_digital_out = 10
mod_IP = d.getModule( ModuleType.IP, 0 )
mod_IP.setDigitalIO( spindle_cooling_digital_out, DIOPinVal.PinSet )
For the M5 macro:
print("Stopping spindle")
d.setSpindleState(SpindleState.OFF)
print("Spindle stopped")
spindle_cooling_digital_out = 10
mod_IP = d.getModule( ModuleType.IP, 0 )
mod_IP.setDigitalIO( spindle_cooling_digital_out, DIOPinVal.PinReset )
Remember that “spindle_cooling_digital_out” is the number of CSMIO/IP controller digital output.
Set this value to the appropriate one for your machine.
Quote from nvr11 on 5 April 2023, 07:37Thank you so much.
I've tried it and it works perfectly.
I have to say that in all my tests with code, it runs very smoothly with a huge speed boost.
It's a huge leap compared to the old Mach3.
Greetings
Thank you so much.
I've tried it and it works perfectly.
I have to say that in all my tests with code, it runs very smoothly with a huge speed boost.
It's a huge leap compared to the old Mach3.
Greetings
Quote from CS-Lab Support on 6 April 2023, 09:17Not only compared to Mach3 😉
I recommend you experiment with the G64 function, and you will be surprised by what simCNC can do.
The G64 command with the P parameter is responsible for the precision of corners of a tool path.By using a low P parameter value, corners will be cut accurately but at a lower speed.
A high P parameter value can cut corners less precisely but at a very high speed.Note:
Setting the P parameter to 1 does not mean that all corners of a part will be rounded by 1mm.
First, the P parameter refers not to the corners of a finished part but to corners in the tool path (the tool radius causes the offset).Secondly, the size of a corner rounding is dynamically determined by simCNC based on the following:
- machining speed
- FRO values
- drive settings (speed, acceleration, jerk)
- path shapeIn practice :
When roughing with a significant stock, you can use a sufficiently high P parameter value.
This will cause the machine to run very smoothly and quickly but with less precision.When finishing without stock, use a low P value
This will make the machine run smoother and slower but with high precision.Thanks to this approach, in the case of roughing, you will save a lot of time, and in the case of finishing, you will gain high precision.
All in all, you'll still get shorter machining times and higher precision than with Mach3.
Not only compared to Mach3 😉
I recommend you experiment with the G64 function, and you will be surprised by what simCNC can do.
The G64 command with the P parameter is responsible for the precision of corners of a tool path.
By using a low P parameter value, corners will be cut accurately but at a lower speed.
A high P parameter value can cut corners less precisely but at a very high speed.
Note:
Setting the P parameter to 1 does not mean that all corners of a part will be rounded by 1mm.
First, the P parameter refers not to the corners of a finished part but to corners in the tool path (the tool radius causes the offset).
Secondly, the size of a corner rounding is dynamically determined by simCNC based on the following:
- machining speed
- FRO values
- drive settings (speed, acceleration, jerk)
- path shape
In practice :
When roughing with a significant stock, you can use a sufficiently high P parameter value.
This will cause the machine to run very smoothly and quickly but with less precision.
When finishing without stock, use a low P value
This will make the machine run smoother and slower but with high precision.
Thanks to this approach, in the case of roughing, you will save a lot of time, and in the case of finishing, you will gain high precision.
All in all, you'll still get shorter machining times and higher precision than with Mach3.