Hello Guest it is April 26, 2024, 12:54:50 AM

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

301
Mach4 General Discussion / Re: High GPU usage workaround
« on: January 20, 2017, 01:35:21 AM »
Mauri, did you know there is a command to load the gcode without generating a toolpath.

DazTheGas

302
Mach4 General Discussion / Re: Lua
« on: January 19, 2017, 05:01:30 PM »
Duuuuuude, nice to see you back here :-)

Daz

303
Mach4 General Discussion / Re: Lua
« on: January 19, 2017, 03:45:07 PM »
Arduino already setup for another project I am working on,

A real good way is to look at other code snippets and scripts, learn a few commands from the api and when they make sense the rest of the api will too.

DazTheGas


304
Mach4 General Discussion / Re: Lua
« on: January 19, 2017, 03:14:20 PM »
This should get you in the right direction, lua file attached.

https://youtu.be/3TeqRoT1pD4

One other thing though, I took a look at the link you sent me and looked at the code, I would be totally against putting "dofile(“C:\\Mach4Hobby\\PoKeys_analog_FRO.lua”)" in the PLC. dofile is just as it says (it runs the file) so this will be done at the speed of the PLC, so continuously reading the harddisk or cache and redeclareing the functions. I would seriously consider moving the functions to the screen load script and calling them from the PLC.

DazTheGas

305
Mach4 General Discussion / Re: Cycle Timer Not Working
« on: January 13, 2017, 01:27:36 AM »
It would be nice to share the code incase others have the same issue.

DazTheGas

306
Mach4 General Discussion / Re: Switching to Mach4 hobby from chilipeppr
« on: January 07, 2017, 05:45:27 PM »
When I moved to mach4 from using the grbl stuff I only had to purchase the ESS at £180, Cheap n cheerful BOB for about £20 and 4 drivers at £22 each and mach4, I too have an ox and if you have the normal ox with nema23`s then thats all you should need to get you started,then add from there, well psu will come in handy too.

DazTheGas

307
Mach4 General Discussion / Re: Lua
« on: January 05, 2017, 07:52:39 AM »
Sometimes you have to look into the future, ever wondered why you have an instance number for mach4 and suddenly appearing within in places within the GUI editor.. I could be wrong but I can see that in the future additional motion controllers could be attached to different instances, but then your talking big machines and definitely not the hobby version of mach4.

But thats just my views

DazTheGas

308
Mach4 General Discussion / Re: Multiple controllers/devices
« on: January 05, 2017, 07:00:03 AM »
You can only have 1 motion controller that mach4 communicates with, however you can have multiple IO boards.

DazTheGas

309
Mach4 General Discussion / Re: Keyboard Inputs Enabled or Disabled Handle
« on: January 04, 2017, 05:42:37 PM »
The code Steve posted earlier will do exactly that when combined with the SigLib, just assing to a input signal ie..

Code: [Select]
[mc.ISIG_INPUT10] = function (state) -- your choice of input
local hIo = mc.mcIoGetHandle(inst, "Keyboard/Enable")
    if (state == 1) then   
mc.mcIoSetState(hIo, 1) -- Turn the keyboard enable output on.  The keyboard plugin will now accept keyboard input.
    else
mc.mcIoSetState(hIo, 0) -- Turn the keyboard enable output off.  The keyboard plugin will not accept keyboard input.
    end
end,

DazTheGas

310
Mach4 General Discussion / Re: Keyboard Inputs Enabled or Disabled Handle
« on: January 04, 2017, 04:04:23 PM »
Scrap that last post?? local KbdState =  mc.mcIoGetState(hIo), sure that just worked but after cleaning up the code it doesnt??

DazTheGas   :o