584,830 active members*
5,222 visitors online*
Register for free
Login

Search:

Type: Posts; User: theRat

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    2,158

    Re: is there a OnEStop script?

    This is great news. Now I will hopefully be able to stop my spindle and cooling on estop. In my case I need to send a couple of I2C commands.
  2. Re: Script S / Spindle speed via SPI / I2C / UART

    This is very possible. I know this because I have built and I2C to RS485 converter and written the scripts (for a Nowforever vfd). The scripts get rather complicated as the serial comms requires the...
  3. Re: TNGv2 2020.11.24 and later - can't open gcode with custom scripts

    Many thanks to Andrej for a quick resolution to my problem. Just for completeness for anyone coming across this later, the fix was made in 2021.02.12.
  4. TNGv2 2020.11.24 and later - can't open gcode with custom scripts

    I run TNGv2 with some heavily customised scripts to control my spindle and cooling. Due to recovering from surgery I haven't been able to use my CNC, today after updating to 2020.12.08 I am now...
  5. Replies
    45
    Views
    5,226

    Re: Independent PWM signal output

    Sorry for the slow reply, I have been in hospital to have a hip replaced.
    The general concept is to have an atmel microcontroller (I used a ATTiny1614) connected to the Mk3/4 SD&I2C header. The...
  6. Replies
    45
    Views
    5,226

    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....
  7. Thread: jerky

    by theRat
    Replies
    56
    Views
    9,913

    Re: jerky

    Anriro,

    Have you updated the software? The setting you posted indicated you are running 20200212. There have been 14 releases made that are newer than this. A lot of bug have been fixed in those...
  8. Replies
    4
    Views
    495

    Re: Linking Button to Custom Script

    I start my scripts like this:

    expr: "startcode('M912')" "" image="Icons/IMG_DustExtractor.svg" tooltip="Dust Extractor" imagechange="true" updatefast="true"

    You can also highlight and...
  9. Re: The machine stops periodically without an error message.

    You have updated to the most recent version? There was some sort of buffering bug that was fixed about 2-3 months ago and this sounds a little like that problem. There is a thread somewhere here that...
  10. Replies
    14
    Views
    1,015

    Re: Own GUI buttons with menu functions

    When using Inkscape I found that I had to set a custom document size of 50px by 50px for it to display properly in TNG. I found this by looking at the svg files provided and that was the page size...
  11. Replies
    3
    Views
    489

    Re: TNGv2 Vectric Post Processor

    Yes I do, but that height is still lower than the clamp. There is absolutely no need to move to home at the end of a job. Just raise the Z and stop and don't go looking for a crash!
  12. Replies
    3
    Views
    489

    TNGv2 Vectric Post Processor

    The Vectric post processors supplied (both mm and inch) have a "G00 [XH][YH]" in the FOOTER section. This for me causes the tool to crash into a clamp at the bottom left of the work piece. This move...
  13. Replies
    12
    Views
    3,072

    Re: TNGv2 Expr.txt usage

    That explains it all. Thanks so much for all the crazy fast responses and resolutions.
  14. Replies
    12
    Views
    3,072

    Re: TNGv2 Expr.txt usage

    I should have added that if I execute the M990 command from the MDI everything works as expected.
  15. Replies
    12
    Views
    3,072

    Re: TNGv2 Expr.txt usage

    I tried using variables to test, but it appears they all get cleared when exiting out of settings. Instead I tried naming my thread and then checking if it already exists. So I have ended up with...
  16. Replies
    12
    Views
    3,072

    Re: TNGv2 Expr.txt usage

    That looks promising. The actual script I am starting is this. Basically to incorporate some other home automation stuff that controls other devices in the workshop.


    # start with M990 after...
  17. Replies
    12
    Views
    3,072

    Re: TNGv2 Expr.txt usage

    Ok, that is good to know. I assume OnShutdown would be called first followed by OnInit when exiting settings?
    I guess I will need to figure out how to kill the thread that is created in the OnInit...
  18. Replies
    12
    Views
    3,072

    Re: TNGv2 Expr.txt usage

    So this is awesome. It gives me the startup event hook that I have been asking for so that I can start an extra python thread!

    I have it working, but in a little bit of a roundabout way. I was...
  19. Replies
    12
    Views
    3,072

    Re: TNGv2 Expr.txt usage

    Thank you. That explains it for me. I will try some things tomorrow if it isn't subzero in the shed.
  20. Replies
    12
    Views
    3,072

    TNGv2 Expr.txt usage

    I notice that a new version 2020-07-31 is available (although you forgot to update the release post). In its release notes it has:

    Add: Multiple Expr.txt files
    Add: Expr.txt #OnInit and...
  21. Replies
    10
    Views
    1,254

    Re: conversion M63P..Q...E.. in M3S..

    You might have to wait for Andrej to reply and answer that. Clearly just executing S50 etc is never going to run the M3 script. If you have a post you could make it always send an M3 when the Sxxx...
  22. Replies
    2
    Views
    639

    [BUG] TNGv2 can't enter , in MDI window

    I was doing a bit of script work today and went to test a command in the MDI windows which contained a comma:

    (PRINT,[MIN[#<_SPINDLESPEED>,100]])

    but I can't. Every time I hit the comma on the...
  23. Replies
    10
    Views
    1,254

    Re: conversion M63P..Q...E.. in M3S..

    Try this.


    o<tool> if [#<_selected_tool> EQ 99]
    #<_spindle_speed_min> = 0
    #<_spindle_speed_max> = 100

    #<spd> = MIN[#<_spindlespeed>,#<_spindle_speed_max>]
    M63 P2 Q10000 E#<spd>
    M3
  24. Replies
    10
    Views
    1,254

    Re: conversion M63P..Q...E.. in M3S..

    Thinking a bit more you probably don't need error checking just set the min spindle speed to 0 and the max to 100 in settings. I also think that script then needs to have an M3 at the the very end so...
  25. Replies
    10
    Views
    1,254

    Re: conversion M63P..Q...E.. in M3S..

    I would expect that you would need to create an M3.gcode file in the scripts directory of your profile and the M63 line would be something like:

    M63 P6 Q10000 E#<_spindlespeed>

    I would of...
  26. Replies
    10
    Views
    1,254

    Re: conversion M63P..Q...E.. in M3S..

    A quick search show up an example in Samples\Tutorials\M63ex1.txt

    Simon
  27. Replies
    3
    Views
    693

    Re: Mk3/4 Wiring problem

    You didn't mention if you had an EMI filter on the input power the the VFD. One of those is crucial to stop the noise from the VFD getting back into other components. Also even though you have a...
  28. Replies
    20
    Views
    2,637

    Re: TNG freezing while running gcode

    A quick update. Today I ran an program with 85K lines in it twice with zero issues :)
  29. Replies
    45
    Views
    5,226

    Re: Independent PWM signal output

    I suspect this version is what you might need.

    cmd: "File.Open_File" image="BtnBottom/features-list.svg" imagechange="true" stroke=1.1 size=50 typ=menu...
  30. Replies
    45
    Views
    5,226

    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
Results 1 to 30 of 143
Page 1 of 5 1 2 3 4