Hello Guest it is April 26, 2024, 08:52:11 AM

Author Topic: vbs to lua  (Read 1066 times)

0 Members and 1 Guest are viewing this topic.

vbs to lua
« on: February 03, 2020, 04:12:17 PM »
i need help to translate some vbs that i used in mach3 to lua for mach4
i am willing to pay if the price is fair
phil
Re: vbs to lua
« Reply #1 on: February 03, 2020, 05:00:30 PM »
Hi,
the structure of Mach4 is quite different and commonly a direct translation between VB and Lua is not possible.

Tell us more about the functions performed by the VB code you want to replicate?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: vbs to lua
« Reply #2 on: February 03, 2020, 05:45:57 PM »
i'm moving to mach4 as mach3 with a smoothstepper open loop is not working for me
i understand that the format is different i think that if i can get some macros converted i will understand the syntax
in the mach4 you are calling group or something i don,t understand and a lua program manual i found said nothing about these calls
i will send you the macros any help would be great

Offline Bill_O

*
  •  563 563
    • View Profile
Re: vbs to lua
« Reply #3 on: February 03, 2020, 05:55:29 PM »
This will not get you close to what you want but it might help you start to understand Mach4 Lua

https://www.machsupport.com/forum/index.php?topic=39763.msg266718#msg266718

Bill
Re: vbs to lua
« Reply #4 on: February 03, 2020, 06:53:17 PM »
Hi,
am I correct that these VB routines probe from the right and from the left?
It would appear they set the gear ratio based on diameter, is that correct?

Just as a matter of interest have you studied the probing module of Mach4?. It looks like what the VB macros are doing are
in large measure standard Mach4 procedures in the probing module. Further I think the source code for the probing module is
shipped along with the compiled script so you could modify/edit/add to it at will.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: vbs to lua
« Reply #5 on: February 03, 2020, 08:30:25 PM »
the tool macros are for a ts27 tool setter
the m3 is because i'm using a bridgeport series 2 with a variable speed head a large machine
no steppers all servo drives