Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: madi on October 02, 2018, 10:54:19 AM

Title: lua error
Post by: madi on October 02, 2018, 10:54:19 AM
hello guys,, i got this massage after i load mach4mill 6 axis program< and also the other mill program, except router program, what should i do?

"lua error while running chunk
attempt to call a ni value
attack traceback"

not sure the last sentence is.. too smal to read. please help ??? ??? ???
Title: Re: lua error
Post by: bryannab on October 02, 2018, 12:02:21 PM
Hello Madi,

In one release, that error message appeared in the Status bar. It shouldn't be there, but it is not actually reporting a current error. If you click the 'History' button and open that window, you'll see that no error messages have triggered. Hitting 'Clear' in that window will remove the message from the Status bar.

Apologies,
Bryanna

Title: Re: lua error
Post by: madi on October 02, 2018, 12:26:04 PM
thanks,, i will try to setup it,, and i will post what is happen.. thanks
Title: Re: lua error
Post by: madi on October 02, 2018, 10:29:22 PM
you are right  bryannab, it is working,,  another issue is , the dro is unstable, not like the previous version.. and i cant create another profile from existing profile, except the profile that do not come out with error message after its been loaded.. ??? ???
Title: Re: lua error
Post by: madi on October 02, 2018, 10:59:45 PM
FOUND ANOTHER ISSUE,, CANT GO TO WORK ZERO. MESSAGE APPEAR "AXIS 3 COMMANDED WHILE DISABLE" ???
Title: Re: lua error
Post by: bryannab on October 03, 2018, 08:10:58 AM
Madi,

Can you tell me more about what is happening with the DRO? I'm not sure what you mean by 'unstable'. You can create a copy of your profile by going to Help>Support>Package Current Profile. Then you can import that back into Mach4 and call it whatever you'd like. That status bar message is not something that affects the usefullness of the profile itself, it's just a label that got stuck. You can change it using the screen editor if you'd like it gone completely. I can send you an explanation on how to do that as well.

As for the 'Go to Work Zero' button, it needs to be customized. The default command behind that button is "G00 X0 Y0 A0" but it can be changed. One of our techs made a video on how to do that here: https://youtu.be/SZuEJn046Pw

Edit: I made a video (link below) showing another customer how to remove the label from the Status bar. If a real error message is being displayed, it will also appear in the 'History' window. In this customer's case, and in yours I suspect, you won't see the error message there. To delete the label from the Status bar, follow along with the video and you shouldn't see it again.

https://youtu.be/NsxPzRLb3dc


Best wishes,
Bryanna
Title: Re: lua error
Post by: Stuart on October 03, 2018, 10:14:29 AM
Bryanna

Have a look in the vidieo section Daz the gas has done one that explains it very well and the reason why it’s there

http://www.machsupport.com/forum/index.php/topic,38350.0.html

Title: Re: lua error
Post by: bryannab on October 03, 2018, 10:28:14 AM
Thank you for sharing that, I'll give it a watch. I had three users with questions about this just over the last two days, so I wanted to make something quick to show how to fix it. :)

-Bryanna
Title: Re: lua error
Post by: madi on October 03, 2018, 11:13:43 AM
the dro is like showing the two different reading flipping.. not fixed..the tool ypath is like jumping around.. i try to upload a video..
thanks bryannab.
Title: Re: lua error
Post by: madi on October 04, 2018, 02:21:06 AM
got another message.. dont know what it is..: Lua: Syntax error during pre-compilation
[string ""]:1: unexpected symbol near '+'
Title: Re: lua error
Post by: madi on October 04, 2018, 03:01:24 AM
dear bryannab,, have a look at my dro..
https://youtu.be/yybwEABNHzs

thankd
Title: Re: lua error
Post by: madi on October 04, 2018, 06:52:10 AM
i have reinstal the previous version of mach 4,, it seem ok,, the dro is stabale, message not appear,, but the problem is,, i forgot how to setup the revolution per mm ???, is there any way to copy a wizard and put in this version? :(
Title: Re: lua error
Post by: bryannab on October 04, 2018, 08:21:43 AM
Hello Madi,

You can use the StepsPerUnitCalculator wizard to calibrate your axes. Check out our support video on how to use it here: https://youtu.be/d-xCWDR0Uvg

All the best,
Bryanna
Title: Re: lua error
Post by: madi on October 04, 2018, 08:55:39 AM
thanks bryannab,, the problem is this version dont have those wizard,, is there any way to copy that wizard and put on to this version,, i reinstal the version of 4.2.0.3233, thanks
Title: Re: lua error
Post by: Stuart on October 04, 2018, 10:41:37 AM
Did you save the profile file from the help drop down ( package up profile)

If you did just reinstall that it should work fine

This is of course this presumes you followed the manual and copied the stock one and gave it a new name eg your name the same with the screen set

Now I am old school don’t trust these new tangled computer me bobs , I have a spread sheet that prints out the settings in Mach but with blank entries the out with the biro and copy my working setting to that,then if you have a pc crash it’s a simple job to copy it back in

The manual also has the equation to work out your steps

Title: Re: lua error
Post by: bryannab on October 04, 2018, 10:49:35 AM
Hello Madi,

I tried to reply to this earlier and did not succeed. I included the wizard as an attachment, which you just need to download and move to your Wizards subfolder within your Mach4 directory in your C: Drive. You might also want to consider upgrading to a newer version, as many new features have become available since 3233 was released. There's a video on our YouTube channel that covers the safest way to upgrade to a new version, so that might be worth checking out if you're interested in moving to 2.0.3804. That is entirely up to you; I won't push you into it. :)

-Bryanna
Title: Re: lua error
Post by: madi on October 04, 2018, 11:02:31 AM
Hi bryannab,
Unfortunately I don’t make any copies for the previous one,, if could how can I recover it?
I think it’s maybe something about the plugin,, I’m using wxhc cnc card,, they just have an update driver for version 1 mach 4,, that wah i was thinking,,
I will study the methods that u suggested,
Thanks
Title: Re: lua error
Post by: madi on October 04, 2018, 11:11:27 AM
allready update to new version before,, i got the mess when i downloded plugin for my cnc card..
Title: Re: lua error
Post by: Stuart on October 04, 2018, 11:48:27 AM
Hang on are you sure that a mach4 fully compatible card

All I can find is refs to mach3

I am sure there are threads on here about it being a problem card

But I may be wrong about this
Title: Re: lua error
Post by: bryannab on October 04, 2018, 12:24:30 PM
XHC makes a motion control card for Mach4, but it is not supported. Their motion controllers for both Mach3 and Mach4 have their problems (search the forum for customer comments on that topic) but I don't know that sticking to one version or another would help. If the one you're using now is working for you, then you definitely don't have to upgrade to a new build. But I would strongly consider saving up and investing in a more reliable, supported motion controller. Believe me, you won't want to miss out on some of the new features we're working on for the next build. ;)

In the meantime, you should now be able to use the wizard with build 3233.

-Bryanna
Title: Re: lua error
Post by: madi on October 04, 2018, 12:54:03 PM
Before i put a limit switch the machine work ok,, just depends on soft limit,, this problems happen after i put this limit switch,,
What a frustration,, and what is motion control do u suggest,, I’d like to hear,, ;) :)
Title: Re: lua error
Post by: madi on October 04, 2018, 12:58:04 PM
Thanks stuart
Title: Re: lua error
Post by: joeaverage on October 07, 2018, 02:45:16 AM
Hi madi,
I think you have got that board going as well as anyone has.

They don't have a good reputation:
http://www.machsupport.com/forum/index.php/topic,36023.0.html (http://www.machsupport.com/forum/index.php/topic,36023.0.html)

Craig
Title: Re: lua error
Post by: madi on October 07, 2018, 03:32:17 AM
Hi craig,,  what board would you like to suggest,, :)
Title: Re: lua error
Post by: joeaverage on October 07, 2018, 05:40:32 AM
Hi madi,
the four most economical and capable boards are:

https://warp9td.com/ (https://warp9td.com/) The ESS is the model of choice.
https://www.cncdrive.com/UC300ETH.html (https://www.cncdrive.com/UC300ETH.html) The UC300ETH is the model of choice.
https://www.poscope.com/product/pokeys57cnc/ (https://www.poscope.com/product/pokeys57cnc/) The Ethernet 57CNC is the model of choice.
http://www.pmdx.com/pmdx-424 (http://www.pmdx.com/pmdx-424) The 424 is the model of choice.

A rather more expensive unit but very capable, especially if you have old DC servos to deal with is:
http://www.vitalsystem.com/portal/motion/hicon/hicon_integra/hicon_integra.php (http://www.vitalsystem.com/portal/motion/hicon/hicon_integra/hicon_integra.php)

All of these companies support their products and they work as advertised and all have been around for years.

Each of these boards are slightly different from each other, some has this feature but not that one and so on.

Prehaps not surprisingly the Vital Systems Hicon, the most expensive one, has the most developed features including THC, the only one so far to
have it.
Warp9 are trying to catch up, they have just added lathe threading and backlash compensation.
PMDX is the dark horse here, very good lathe threading capability but no Backlash compensation.
The UC300 is a relative newcomer to Mach4 (been doing Mach3 for years) and so has fewer features but a good value board with lots of IO.
The 57CNC has good balance of features, flexible IO with good analogue features.

There are some other differences also....the ESS and the UC300 really require BoBs. I personally favour the simple and cheap BoBs because my
electronics skills allow me to adapt a cheap board to my requirements. If your electronics is not good then more sophisticated BoBs are
probably right for you the MB02 is a good choice for the ESS and a UB1 for the UC300. The PMDX doesn't require a BOB, its built in and has its own
power supply and makes an appealing choice for a no fuss solution.

In truth while they are all subtly different they all work GREAT....any of them will be a much MUCH happier experience than your XHC board.

Craig
Title: Re: lua error
Post by: madi on October 07, 2018, 06:14:20 AM
Thanks craig,,  for your time,,