Independent PWM signal output
Hi.
With the TNGv2 controller I would like to run a small NEMA 17 Steper motor in addition to the normal tasks, and control the speed.
Is it possible to use one of the three PWM outputs?
One is already used for the spindle speed control.
Is that possible? If so, how do I get the controls in the GUI of the controller.
One should be used to control the pump. This pump foster the minimum quantities of lubrication / cooling
Re: Independent PWM signal output
No experience with a TNGv2 controller, but you can't use a PWM signal to control Stepper motor speed, as far as I know.
You will need to use a stepper motor driver as well as some sort of device to generate the correct signals for the driver.
Devices such as this can be bought on Ebay cheaply.
Re: Independent PWM signal output
Steppers need direction and step signals. pwm can't do that. You would need to use a spare axis on the controller to do that if you had one.
Re: Independent PWM signal output
Of course you can operate a stepper using PWM pulse width modulation. It works very well here.
For this I have a motor driver and a PWM controller. I do not want to control this with a potentiometer. but directly via the control.
here is an example of a normal application.
https://www.instructables.com/id/Control-a-Stepper-Motor-With-PWM/
Re: Independent PWM signal output
I stand corrected.
Sent from my SM-G920I using Tapatalk
Re: Independent PWM signal output
Ok, then another question. The output connector can generate 3 PWM signals (this is in the technical specifications of the MK3 / 9 board)
One is e.g. for the spindle speed, and has a corresponding control panel in the user interface.
Now the question, can you get a control panel for the other two PWM signals in the graphical user interface?
Re: Independent PWM signal output
If it can be useful, the further two PWM outputs are commands with the Gcode M63 P <pin>. there are examples in the Samples folder, I took the corresponding signal from the flat cable to control a blue laser.
Re: Independent PWM signal output
It is also possible to use stepper/servo motor as spindle. Controller can use PWM with fixed duty cycle and variable frequency (section Spindle/Frequency in settings).
Re: Independent PWM signal output
The thing is, I want to control the speed of an additional motor (for a pump). Regardless of the g-code executed. Unfortunately, a slider is missing in the GUI.
Re: Independent PWM signal output
I'm working on "slider" button and on "menu" button.
Re: Independent PWM signal output
Thank you. That pleases me.
1 Attachment(s)
Re: Independent PWM signal output
Latest beta version has new button options. Slider is not yet ready but "menu" can also be used.
Here is download link:
https://planet-cnc.com/wp-content/up...2020-05-18.zip
For example unpack attached zip into your profile folder.
Re: Independent PWM signal output
Sorry, I'm using OS X for experiments. Can I install the beta without any problems or will all the settings be lost on the Windows PC?
Edit:I have now installed it on the work control computer. It has not burned down: D
What can I say, there are a lot of buttons. So you can derive some of it and modify it for your own, I think.
I still have a question, which menu? "Slider is not yet ready but "menu" can also be used."
Re: Independent PWM signal output
Have a look in the default.zip file in the post just above your last post. It has a BtnBottom.txt that has examples of what can be done. Look for lines that contain typ=menu
Re: Independent PWM signal output
I think this is the right line of code
Code:
cmd: "Machine.Output_On" image="BtnBottom/output.svg" imagechange="true" stroke=1.1 name="ON" size=60 typ=menu val="0@Output 1|1@Output 2|2@Output 3"
But how can I get the output to send a PWM signal. As I said, I don't know the syntax.
Re: Independent PWM signal output
I suspect this version is what you might need.
Code:
cmd: "File.Open_File" image="BtnBottom/features-list.svg" imagechange="true" stroke=1.1 size=50 typ=menu val="str:BtnBottom/Mickey.nc@Mickey|str:BtnBottom/Butterfly.nc@Butterfly|str:BtnBottom/Arcs.nc@Arcs|str:BtnBottom/Square.nc@Square"
I think that will allow you to do something like put in menu options of 10%, 20% etc and then run a gcode script.
As Andrej mentioned the slider stuff isn't complete yet, so you are probably stuck doing it like this for now.
Re: Independent PWM signal output
Everything still has time. So far I have been operating the pump manually. I am very pleased that Planet-CNC is trying to implement my wish.
Re: Independent PWM signal output
Here is PWM example with cmd instead of g-code script:
Code:
cmd: "Machine.Output_PWM" image="BtnBottom/laser-beam.svg" imagechange="true" stroke=1.1 typ=menu val="[0;0]@PWM1 0%|[0;25]@PWM1 25%|[0;75]@PWM1 75%|[0;100]@PWM1 100%"
I believe that this new "menu" button has lots of uses.
Re: Independent PWM signal output
Perfect. So that's already that I can work with it. Thank you!