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.
Type: Posts; User: theRat
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.
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...
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.
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...
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...
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....
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...
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...
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...
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...
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!
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...
That explains it all. Thanks so much for all the crazy fast responses and resolutions.
I should have added that if I execute the M990 command from the MDI everything works as expected.
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...
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...
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...
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...
Thank you. That explains it for me. I will try some things tomorrow if it isn't subzero in the shed.
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...
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...
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...
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
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...
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...
A quick search show up an example in Samples\Tutorials\M63ex1.txt
Simon
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...
A quick update. Today I ran an program with 85K lines in it twice with zero issues :)
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...
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