531,920 active members*
2,994 visitors online*
Register for free
Login
Page 2 of 2 12
Results 21 to 38 of 38
  1. #21

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    Hello.
    I have now programmed an Arduino that makes the 0-5v signal in Pul and dir signals for a stepper motor.
    Now I can regulate the pump for my minimum amount of cooling via the GUI.
    It would be nice to have a slider like the speed and feed override.
    Is there another way to display the current status of the PWM signal? (Apart from the red / green lights)?

  2. #22
    Registered
    Join Date
    Jun 2017
    Posts
    138

    Re: Independent PWM signal output

    This sounds cool, but I personally would have used I2C to talk to the Arduino as you could then just send exact numbers that would give more precise control and more likely a larger range of speeds. I control my spindle doing something like this as I found the analog output from the board not to be vary accurate, but also my spindle didn't respond in a linear way and was often out by 5-10%. I now use I2C to a small board that talks RS485 to the VFD and it is now exact.

  3. #23
    Moderator
    Join Date
    Mar 2017
    Posts
    711

    Re: Independent PWM signal output

    USB communication with external hardware is powerful and very useful thing.
    Unless I have simple modules I prefer to use it. This way I can implement all logic in MCU.

    Regarding sliders. I attached Btn file with some interesting examples. I'm sure you'll find it uswful.

  4. #24

    Join Date
    Nov 2015
    Posts
    206
    Quote Originally Posted by PlanetCNC View Post
    USB communication with external hardware is powerful and very useful thing.
    Unless I have simple modules I prefer to use it. This way I can implement all logic in MCU.

    Regarding sliders. I attached Btn file with some interesting examples. I'm sure you'll find it uswful.

    Hello.
    Thanks for the answer.
    I already have the attached buttons.
    But there was once talk of a slider.
    I have no way of comfortably seeing which value is set.

  5. #25

    Join Date
    Nov 2015
    Posts
    206
    Quote Originally Posted by PlanetCNC View Post
    USB communication with external hardware is powerful and very useful thing.
    Unless I have simple modules I prefer to use it. This way I can implement all logic in MCU.

    Regarding sliders. I attached Btn file with some interesting examples. I'm sure you'll find it uswful.
    Yes, I also considered this type of communication. But I am not informed enough for that.
    Would you like to explain your path in more detail?
    I didn't get along with the spindle setting either. The deviations are considerable. I made the settings according to the manual. And it just doesn't fit.

  6. #26
    Moderator
    Join Date
    Mar 2017
    Posts
    711

    Re: Independent PWM signal output

    1. There are couple of examples with Arduino included in API folder
    2. Button with menu is not enough? See image.
    3. You can display your value in state panels as a number.

  7. #27

    Join Date
    Nov 2015
    Posts
    206
    Quote Originally Posted by PlanetCNC View Post
    3. You can display your value in state panels as a number.

    Yes, I tried that. But I don't get any further.
    How can I display this. What code am I going to write the stade1.txt file?

  8. #28

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    I followed the following tutorial.
    But I can't find the parameter to display the PWM signal anywhere, not even in the Doko PDFs.
    In addition, I would like to only display certain LEDs of the inputs and outputs. So e.g. only LED from input 1 and 2.

    https://planet-cnc.com/create-custom...-tng-software/

  9. #29

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    No ideas?

  10. #30
    Moderator
    Join Date
    Mar 2017
    Posts
    711

    Re: Independent PWM signal output

    Sample folder contains StatePanels with state panels examples. Most of parameters are included.

  11. #31

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    Quote Originally Posted by PlanetCNC View Post
    3. You can display your value in state panels as a number.
    How can I do that. Which parameters do I have to enter. The state.txt files in the Sampels folder do not help me because this example is not available there.
    Also on my second question how I can only display a single LED of the output / input / limit, I can't find it there.

  12. #32

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    [QUOTE=tantemay;2414856... Also on my second question how I can only display a single LED of the output / input / limit, I can't find it there.[/QUOTE]

    OK. Find it.

  13. #33

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    After a long search I have now found it. But I'm still looking for a way to display a single PWM LED.

  14. #34

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    Code:
    param _hw_output_duty1 0 "MMS-Level:"
    How do I have to change the code so that the displayed value is divided by 50?

  15. #35
    Moderator
    Join Date
    Mar 2017
    Posts
    711

    Re: Independent PWM signal output

    expr: "res = _hw_output_duty1 / 50" 1 "My Value"

  16. #36

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    Quote Originally Posted by PlanetCNC View Post
    expr: "res = _hw_output_duty1 / 50" 1 "My Value"
    Do not work.
    I don't mean in the Bnt.txt, I mean the State.txt file.
    Attached Files Attached Files

  17. #37
    Moderator
    Join Date
    Mar 2017
    Posts
    711

    Re: Independent PWM signal output

    use expr without ":"
    expr "res = _hw_output_duty1 / 50" 1 "My Value"

  18. #38

    Join Date
    Nov 2015
    Posts
    206

    Re: Independent PWM signal output

    Thanks that works fine.
    ---

    I have one more question about the buttons.
    Is it possible to make a button that increases the current value of the PWM signal each time it is pressed?

Page 2 of 2 12

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
  •