Hello Guest it is April 24, 2024, 11:05:16 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

571
Mach4 General Discussion / Re: Mach4 G28.1 Z equivalent?
« on: January 25, 2016, 06:27:11 PM »
Looks good to me, just remember that lua is case sensitive, so any function and variable must be the same

Ie if u declared m100 as function then M100 would not work,
And the macro needs to be named as per function name,

DazTheGas

572
Mach4 General Discussion / Re: Adding external push buttons
« on: January 24, 2016, 06:53:26 AM »
As steve says the signal scripts are the way to make anything work you can think of within mach4

if you go into the screen editor and look at the startup script there are a few examples there.

For example if you were wanting to use your extra inputs you have left as jogging then you would need a signal for each axis you wanted to jog, so for xyz that would be 3 inputs altogether + any other buttons like jog mode.

Code: [Select]
[mc.ISIG_INPUT10] = function (state) -- assign input 10 to X++
    if (state == 1) then   
       mc.mcJogVelocityStart(inst,0,1);
    else
       mc.mcJogVelocityStop(inst,0);
    end

end,

Although the code above is straight forward you would have to add in extra stuff to your code to check if you are in 'cont' mode or 'inc' mode, because this signal is in a constant loop mach4 will also need a condition for this signal in the case you were using the keyboard jog or external control otherwise the mcJogVelocityStop or mcJogIncStop etc would overide other devices with jogging support rendering them useless.

DazTheGas

573
Mach4 General Discussion / Re: probing with Mach4??????
« on: January 21, 2016, 02:44:20 PM »
I tried that but I keep getting unexpected results I must not have the correct settings or procedure. every time I probe it keeps setting my g54 z in the fixture table. but never give me the correct z in the dro
Jerry

In the top right set this on measure only before you start the probe

DazTheGas

574
Mach4 General Discussion / Re: Probing on new Mach 4 screens
« on: January 21, 2016, 02:18:17 PM »
all the modules are loaded in the screen load script, found in the scree editor.

Code: [Select]
    --Master module
    package.loaded.MasterModule = nil
    mm = require "mcMasterModule"
   
    --Probing module
    package.loaded.Probing = nil
    prb = require "mcProbing"
    --mc.mcCntlSetLastError(inst, "Probe Version " .. prb.Version());

    --AutoTool module
    package.loaded.AutoTool = nil
    at = require "mcAutoTool"

DazTheGas

575
Mach4 General Discussion / Re: probing with Mach4??????
« on: January 17, 2016, 05:49:48 PM »
The easiest way to do it in mach4 is to use the probing screen and use the measure z, once the probe has touched you can then switch over to the offsets tab where you will find a box for your gauge height and set z

DazTheGas

576
Mach4 General Discussion / Re: M6 Manual tool change with Mach 4
« on: January 17, 2016, 05:35:04 PM »
If you have a quick look through the Mach4 forum you will find many topics on this with many different answers to different situations.

DazTheGas

577
oh i see what your asking now, from the mach4 main menu you need to click on View->Load Screen then navigate to the screens directory and pick the screen you want.

DazTheGas

578
Go into your screen editor and put the screen on the screen you would like to start in, then you will need to change something trivial then quit out of the screen editor and save. you should now startup in that screen.

DazTheGas

579
Mach4 General Discussion / Re: probing with Mach4??????
« on: January 15, 2016, 02:49:16 PM »
on the probing screen, have you configured the settings tab and added the gcode 31 to it.

DazTheGas

580
Mach4 General Discussion / Re: Can't see toolpath
« on: January 03, 2016, 11:56:13 AM »
So far I have only ever seen this happen when coming out of the screen editor, to rectify this I normally click in the white area just above it.

DazTheGas