Hello Guest it is April 17, 2024, 10:26:01 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - TonyM

Pages: 1 2 »
Mach4 General Discussion / Re: program gets stuck at m3
« on: June 24, 2023, 07:02:26 AM »
When it is stuck and i press M03/M05 twice aka turning it off and on) it continues working. Why do i have to do this

Mach4 General Discussion / program gets stuck at m3
« on: June 24, 2023, 06:18:38 AM »
I have built a lathe and m03 works if you do it manually.
I then used the turn cycles feature to make the gcode but when running the generated gcode it gets stuck on m03.
The program still thinks it is running but nothing happens, the spindle does rotate but the speed changes everytime i rerun the program.
When it gets stuck i press pause and then play and it just resumes the program. Is there something i forgot?
Code: [Select]
N60 %
N65 t0808
N70 G98
N75 G96 S150
N80 M03
N85 M08

Mach4 General Discussion / turn cycle can't select tool
« on: May 26, 2023, 09:41:09 AM »
I can't seem to find where to select the tool in mach 4 in the turn cycle. I want to run a test with simple facing, and it automatically selects tool 0101 whilst i want to use tool 0707.

Mach4 General Discussion / put userdata in register
« on: May 26, 2023, 04:37:05 AM »
hello all, to try and fix my problem from another post (macro runs fine in screen but gets stuck on require luars part if the exact same code is run from a macro m6) I tried bypassing it by running part of the code from the screen ( the luars part) and then putting p in the register and later reading the register in the m6 macro, but it gives an error exected string but got userdata. i converted it to a string and that solved it but the macro the gets stuck on p:write because i assume the p is still a string and not userdata. is it possible to convert a string to userdata?


So I made an m6 command using luars, mach 4 won't run the command unless the line: rs232 = require("luars232") is commented out. and it does run when I run the code from the editor of mach4. This tells me luars ddl is working correctly and the m6 has no capital syntax errors. When i copy the code of the m6 command into a onscreen button it works as well. I now want to either press the onscreen button from the m6 command, or find the reason it wont run: rs232 = require("luars232").

Thanks :)

Mach4 General Discussion / Re: T1 command does not work
« on: May 20, 2023, 05:50:28 AM »
Lathe uses T0101 and Mill uses T1 M6

Thanks! That was it

Mach4 General Discussion / Re: Mach4 hobby macro not running
« on: May 05, 2023, 09:02:16 AM »
it turns out the "local rs232 = require("luars232")" part is the problem, when i comment out this part it will run the m6 command. What is the fix for this?

Mach4 General Discussion / T1 command does not work
« on: May 05, 2023, 08:15:59 AM »
When I use T1 for example, it changes selected tool to 0, it doesn't matter what T i select. When I select current tool in the screen and type 1, it changes to 1. Why does the T function not work? 

Mach4 General Discussion / Re: Mach4 hobby macro not running
« on: May 05, 2023, 06:11:18 AM »
If your m6.mcs filename is M6.mcs try renaming with lowercase.  Also check to make sure that the macro is in the macros directory for the profile you are using.


thank you, but this was allready correct. Any other ideas?

i fixed it by inserting two delays after serial open and setting the baud rate

Pages: 1 2 »