Hello
Guest
it is
May 10, 2025, 11:30:10 PM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach4 General Discussion
/
Can't run macro, but it works when the code is copied onto a button onscreen
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Can't run macro, but it works when the code is copied onto a button onscreen (Read 2474 times)
0 Members and 1 Guest are viewing this topic.
TonyM
12
Can't run macro, but it works when the code is copied onto a button onscreen
«
on:
May 20, 2023, 08:08:38 AM »
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
Logged
joeaverage
7,604
Re: Can't run macro, but it works when the code is copied onto a button onscreen
«
Reply #1 on:
May 20, 2023, 10:48:05 PM »
Hi,
do you have a test to determine whether the required module is already open? I seem to recal that if you attempt to open a module that is already open
it is a fault.
Craig
Logged
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Print
Pages:
1
Go Up
« previous
next »