Hello Guest it is March 28, 2024, 11:43: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 - smurph

211
I was trying to find out where this script resides.  I assume that if some button script must call it that it is in your screen load script?  Or is that ALL in the left up script?

Also

    mc.mcCntlGcodeExecuteWait(inst,'g0 f20000 h15\n')--g1 h366 f5000')

goes where/does what?  You are waiting on G code that never moves.  Did you mean to move the C axis off the switch?  Maybe "G91 G0 C1"

Steve

212
Is this a M code macro script?  Or does something else call the myHomeC() function? 

If you have this code in M code, say m200.mcs, it will never get called.  Because there is no function stub called m200(). 

Steve

213
Mach4 Videos / Re: Sci fi / Space X theme UI and scripts Video.
« on: March 21, 2021, 02:58:05 PM »
Nice Job!

Steve

214
Mach4 General Discussion / Re: Trouble using scr Library
« on: March 19, 2021, 10:58:40 PM »
I think you will need to put something in the PLC Script.

Correct.  And more specifically,
Code: [Select]
--update button state to reflect a register. 
-- "Button State" == 0, the button is up.
-- "Button State" == 1, the button is down.
hReg, rc = mc.mcRegHandle(inst, "/path/to/myButtonStateRegister")
if (rc == mc.MERROR_NOERROR) then
    val = mc.mcRegGetValueLong(hReg);
    bval = scr.GetProperty("myButton", "Button State")
    if (bval != val) then
        scr.SetProperty("myButton", "Button State", val)
    end
end
That is the pseudo code.  Check the syntax such because I just typed that in and was not pasting something from a real script. 

Steve

215
Build 4690 has support for the whb04b-4 and whb04b-6. 

Steve

216
Correct, the plugins are not copied.  They are assumed to be installed on the target system.  We cant possibly know what dependencies 3rd party plugins have, so we expect people to install them in the manner that the plugin developers provide/suggest.  Sometimes a copy pasta is all that is needed.  But there is no guarantee. 

Steve

217
Mach4 General Discussion / Re: Map surface wizard does not function
« on: March 17, 2021, 11:01:44 PM »
Mach is a 32 bit application right now, so anything compiled for it also needs to be 32 bits.  But running 32 bit applications on a 64 bit Win 10 OS works fine.  And when we implement a 64 bit application, you won't need to change your OS.  :) 

If you are using the IPC interface to control Mach from an external application, the new SDKs are shipping with a 64 bit IPC library.  So in that case, a 64 bit application can indeed control a 32 bit Mach. 

Steve

218
Mach4 General Discussion / Re: Map surface wizard does not function
« on: March 17, 2021, 01:36:18 PM »
I recommend sticking with Win10 64.  I so want to get away from 32bit stuff. 

Steve

219
Mach4 General Discussion / Re: Toolpath recognize C axis moves than A
« on: March 17, 2021, 12:59:49 AM »
A Axis Rotation is what it is called in the tool path because that is the most common axis.  Consider it a misnomer.  A rotates around X, B rotates around Y, and the C axis rotates around Z.  So what axis does your rotary axis rotate around? 

You can try setting it to rotate around Z, as that would be the C axis.  But I'm not entirely sure what you want.

Steve

220
Mach4 General Discussion / Re: Trouble using scr Library
« on: March 17, 2021, 12:46:12 AM »
You have to require and INIT the scr library.  -99 means IPC not initialized.  :)

Once required:

scr.scIpcInit("127.0.0.1")

The better way of doing this is to create a register (in mcRegFile) for which the toggle button's state will reside.  Use the button's event scripts to write the button button state to this register.  Then read that register from the M code. 

The scr library is meant more for remote control applications.  Using it in a M code macro script is highly discouraged.  The Mach registers are the primary means of sharing data from the screen to the core and plugins.  They registers are fast and efficient vs. the scr library is pushed through the TCP/IP subsystem. 

Steve