Hello Guest it is April 24, 2024, 06:28:02 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

721
Mach4 General Discussion / Re: Order of tabs in a window
« on: July 08, 2015, 04:52:36 PM »
if your profile is wxmach then yes this will get overwritten, if you have a custom profile then you will be ok.

DazTheGas

722
Mach4 General Discussion / Re: Order of tabs in a window
« on: July 07, 2015, 01:15:22 AM »
yep its just a fallback to make sure the screen has finished loading first, had mixed results without it

DzTheGas

723
Mach4 General Discussion / Re: Order of tabs in a window
« on: July 06, 2015, 06:26:38 AM »
In your screen load script place

function SetJogTab()
    local inst = mc.mcGetInstance();
    scr.SetProperty('OperationsTabs', 'Current Tab', '3')
end

In your PLC script place

if testcount == 5 then SetJogTab() end

DazTheGas <----- Dont put that ;-)

724
Mach4 General Discussion / Re: Disable button border??
« on: July 01, 2015, 05:47:26 PM »
it was meant to be better but I still need to know if I need a licenses to get probing working or if it`s a mistake in the code arar grgr

Really, u need a chocky bicky

725
Mach4 General Discussion / Re: Disable button border??
« on: July 01, 2015, 09:09:36 AM »
Already taken the road away from the editor and nearly completed re_writting my whole screen custom how I want it purely in script. will be doing a bit of a preview soon, by playing with the rest of wx thats not included with mach4 you will be suprised at some of the results you can achieve, time consuming I agree but thats the whole learning curve, Ive  achieved custom sliders, buttons no borders animated switches and sliders custom radio buttons, leds and all sorts of wonderfull things.

I Totally agree on the lack of support for those of us that are spending all our spare free time making Mach4 what it is and can be.

DazTheGas

726
Mach4 General Discussion / Re: Activate input
« on: June 30, 2015, 03:21:24 AM »
two ways to do the same thing but whats better

by using mc.ISIG_JOGXN mach4 will sort out if we are in continuous mode or step, the other way has 2 functions 1 for continuous the other for increment so extra code is needed for each axis to determine what state we are in.

DazTheGas

727
Mach4 General Discussion / Re: Activate input
« on: June 30, 2015, 02:53:34 AM »
Screwie to the rescue :-),

ive tried using the code from example in all different ways to no avail ended up with using mc.mcJogVelocityStart(inst, 0, -1) to start then mc.mcJogVelocityStop (inst, 0) to stop, but this then need a load of if and then statements for jog mode etc, but now its a simple as

Button down evt
mc.mcSignalSetState (mc.mcSignalGetHandle (inst, mc.ISIG_JOGXN), 1)

Button up evt
mc.mcSignalSetState (mc.mcSignalGetHandle (inst, mc.ISIG_JOGXN), 0)

as you can see theres no need to keep declaring the mach instance as my whole enviroment is now scripted in wxlua without using the editor buttons etc

cheers screwie....

DazTheGas

728
Mach4 General Discussion / Activate input
« on: June 29, 2015, 05:03:41 AM »
In the lua examples directory there is an example of activating an output from script, is there a way to activate an input from script, I am setting up a diagnostic screen but really don't want the machine running whilst testing some of the features I am working on.

In particular I want to use mc.ISIG_JOGXN

DazTheGas

729
Mach4 General Discussion / Re: Calling specific wizards
« on: June 27, 2015, 04:42:09 PM »
You can paste your code in the buttons script event ie left mouse up event.

DazTheGas

730
Mach4 Toolbox / Re: Simple button script to rapid to a know position.
« on: June 23, 2015, 03:20:34 AM »
would it not be best to wrap that in an if statement ie,

if all axis are homed then
code
else do nothing

DazTheGas