Independent PWM signal output

Results 1 to 20 of 20

Thread: Independent PWM signal output

  1. #1
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:


  2. #2
    Member Sterob's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    570
    Downloads
    0
    Uploads
    0

    Default 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.



  3. #3
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Sterob View Post
    You will need to use a stepper motor driver as well as some sort of device to generate the correct signals for the driver.
    That's how I do it right now

    Devices such as this can be bought on Ebay cheaply.
    According to the manual, the output connection of the MK3 / 9 controller can generate 3 PWM signals.
    I'm just wondering how to configure the TNGV2 software.



  4. #4
    Member theRat's Avatar
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    136
    Downloads
    0
    Uploads
    0

    Default 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.



  5. #5
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default 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/



  6. #6
    Member Sterob's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    570
    Downloads
    0
    Uploads
    0

    Default Re: Independent PWM signal output

    I stand corrected.

    Sent from my SM-G920I using Tapatalk



  7. #7
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default 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?



  8. #8
    Member
    Join Date
    Apr 2013
    Location
    Italia
    Posts
    97
    Downloads
    0
    Uploads
    0

    Default 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.



  9. #9
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    698
    Downloads
    0
    Uploads
    0

    Default 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).



  10. #10
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default 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.



  11. #11
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    698
    Downloads
    0
    Uploads
    0

    Default Re: Independent PWM signal output

    I'm working on "slider" button and on "menu" button.



  12. #12
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default Re: Independent PWM signal output

    Thank you. That pleases me.



  13. #13
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    698
    Downloads
    0
    Uploads
    0

    Default 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.

    Attached Files Attached Files


  14. #14
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default 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."

    Last edited by tantemay; 05-18-2020 at 12:04 PM.


  15. #15
    Member theRat's Avatar
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    136
    Downloads
    0
    Uploads
    0

    Default 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



  16. #16
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default 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.



  17. #17
    Member theRat's Avatar
    Join Date
    Jun 2017
    Location
    Australia
    Posts
    136
    Downloads
    0
    Uploads
    0

    Default 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.



  18. #18
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default 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.



  19. #19
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    698
    Downloads
    0
    Uploads
    0

    Default 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.



  20. #20
    Member tantemay's Avatar
    Join Date
    Nov 2015
    Location
    Warendorf
    Posts
    189
    Downloads
    0
    Uploads
    0

    Default Re: Independent PWM signal output

    Perfect. So that's already that I can work with it. Thank you!



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Independent PWM signal output

Independent PWM signal output

Independent PWM signal output