Hello Guest it is February 26, 2024, 04:52:13 PM

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.

Topics - TonyM

Pages: 1
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 / 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? 

it works fine when going through it wih f11 but nothing happens when running it with the green arrow on top.(the messages  i commented out do appear so i know it effectively tries to run the code. but its commented now so now they obviously don't appear).

Mach4 General Discussion / Mach4 hobby macro not running
« on: April 29, 2023, 06:39:02 AM »
So I have a emcoturn120 converted to mach4 and all axis work, I wanted to have a try at making an m6 macro. It works when I run it in the editor, but in MDI the macro doesn't do anything. My macro is:
function m6()
if(mc.mcInEditor() == 1) then

Is there anything I forgot?
Thanks for the help  :)

Pages: 1