Hello Guest it is April 26, 2024, 10:10:57 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.


Messages - DazTheGas

211
Try using the siglib in the Screen Load Scipt instead of the PLC as this works absolutely fine on my machine.

DazTheGas

212
Check your INPUT number mach4 doesnt have 623 inputs..

DazTheGas

213
Mach4 Plugins / Re: mcX360 Plugin for Lua
« on: May 22, 2017, 06:55:26 AM »
mcX360 will not configure itself, its a plugin to enable you to write your own scripts in lua to setup the controller how you want it. Take a look at the videos for examples.

DazTheGas

214
Mach4 General Discussion / Re: Multiple Probes
« on: May 18, 2017, 12:55:58 PM »
Simple answer

Your Correct ;-)

DazTheGas

215
Mach4 General Discussion / Re: Mach4 ESS Probing Problems
« on: May 16, 2017, 01:11:52 PM »
Ok lets see if we can get you on the right track, I do not know anything about mach3 VB so bear with me.

So the first few lines looks like you are defineing some variables and getting the FeedRate

CurrentFeed = GetOemDRO(818)
PierceHight = -10.0
ProbeFeed = 1300.0

would become something like

Code: [Select]
local inst = mc.mcGetInstance()
local CurrentFeed = mc.mcCntlGetPoundVar(inst, 2134)
local PierceHight = -10.0
local ProbeFeed = 1300.0

Code "G90 F" &ProbeFeed

would become something like

Code: [Select]
mc.mcCntlGcodeExecute(inst,"G90 F"..ProbeFeed)
If GetOemLed(825) = 0 Then
Code "G31 Z-117 F" &ProbeFeed

While IsMoving()
Wend

Not sure what OemLed(825) is but you can combine the execution of the G31 and While is moving by using mc.mcCntlGcodeExecuteWait
Code: [Select]
if (what ever Oem825 is == 0) then
mc.mcCntlGcodeExecuteWait(inst, "G31 Z-117 F"..ProbeFeed)
else
--whatever
end

I watched the video and my sugestion is to write down a series of events/steps and then use the API Docs found in the docs directory for the commands to do each step as I have above.

Hope this gets you on track, but like I say I do not know mach3.

DazTheGas

216
Mach4 General Discussion / Re: Mach4 ESS Probing Problems
« on: May 13, 2017, 03:58:40 AM »
Quote
is any way to send me a copy of your Lua Code to probe using G31.

One of the most easiest methods is to use something like
Code: [Select]
mc.mcCntlGcodeExecuteWait(inst,"G91 G31 Z-5 F25")
DazTheGas

217
At the moment the current release of the plugin is build 202, the "Home In Place" is not located in the ESS Config, it can be found in the Mach4 Config under the Homing tab.

DazTheGas

218
Mach4 General Discussion / Re: more lua (?) questions
« on: May 02, 2017, 02:50:42 PM »
Download a copy of wxFormbuilder, apart from creating forms and dialogs etc it is great source of learning wxLua by visualy creating something and browsing through the code. All code that is created in wxFormbuilder can be used in Mach4.

DazTheGas

219
Mach4 General Discussion / Re: Developers V3376
« on: May 02, 2017, 02:02:32 AM »
All developement releases should be used at your own risk and shouldnt really be used for production,it is always best to use what is recommended by your motion controller manufacturer.

DazTheGas

220
Mach4 General Discussion / Re: more lua (?) questions
« on: May 01, 2017, 04:48:44 PM »
You could use the PLC and compare the value of the slider to the current tool number and if the current tool is not equal to the slider value then change tool number to the value.

DazTheGas