585,670 active members*
4,079 visitors online*
Register for free
Login
Page 1 of 3 123
Results 1 to 20 of 46
  1. #1
    Join Date
    Nov 2015
    Posts
    260

    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

  2. #2
    Join Date
    Jan 2007
    Posts
    626

    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
    Join Date
    Nov 2015
    Posts
    260
    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
    Join Date
    Jun 2017
    Posts
    143

    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
    Join Date
    Nov 2015
    Posts
    260

    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
    Join Date
    Jan 2007
    Posts
    626

    Re: Independent PWM signal output

    I stand corrected.

    Sent from my SM-G920I using Tapatalk

  7. #7
    Join Date
    Nov 2015
    Posts
    260

    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
    Join Date
    Apr 2013
    Posts
    110

    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
    Join Date
    Mar 2017
    Posts
    1304

    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
    Join Date
    Nov 2015
    Posts
    260

    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
    Join Date
    Mar 2017
    Posts
    1304

    Re: Independent PWM signal output

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

  12. #12
    Join Date
    Nov 2015
    Posts
    260

    Re: Independent PWM signal output

    Thank you. That pleases me.

  13. #13
    Join Date
    Mar 2017
    Posts
    1304

    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
    Join Date
    Nov 2015
    Posts
    260

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

  15. #15
    Join Date
    Jun 2017
    Posts
    143

    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
    Join Date
    Nov 2015
    Posts
    260

    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
    Join Date
    Jun 2017
    Posts
    143

    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
    Join Date
    Nov 2015
    Posts
    260

    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
    Join Date
    Mar 2017
    Posts
    1304

    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
    Join Date
    Nov 2015
    Posts
    260

    Re: Independent PWM signal output

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

Page 1 of 3 123

Similar Threads

  1. Output a signal on a pin
    By wentbackward in forum Dynomotion/Kflop/Kanalog
    Replies: 2
    Last Post: 08-04-2014, 08:24 AM
  2. 1.6V-3.0V random signal voltage parallel signal from output – Any advice?
    By cjchands in forum Mach Software (ArtSoft software)
    Replies: 0
    Last Post: 11-12-2009, 11:36 AM
  3. Input/output signal on 0M-C
    By padobranac in forum Fanuc
    Replies: 3
    Last Post: 10-28-2008, 03:49 PM
  4. No Output Signal
    By tz1238 in forum Machines running Mach Software
    Replies: 1
    Last Post: 01-27-2008, 09:57 PM

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
  •