Hello Guest it is December 10, 2019, 08:49:07 AM

Author Topic: Creating M-Code to activate Outputs  (Read 451 times)

0 Members and 1 Guest are viewing this topic.

Offline Bill_O

*
  •  250 250
    • View Profile
Re: Creating M-Code to activate Outputs
« Reply #11 on: August 07, 2019, 11:50:27 PM »
I tried running it and the M code did not do anything.  I opened it up in the editor and hit (start debugging) and it said C:\Machhobby\ZeroBraneStudio\bin\lua53. exe: error loading module 'machip' from file 'C:\Mach4hobby\Modules/machip. dll' :  the specified module could not be found.
Re: Creating M-Code to activate Outputs
« Reply #12 on: August 08, 2019, 12:06:37 AM »
Hi,
well that a mystery to me, I ran this macro last night through the debugger and MDI and it worked in both instances.

Sounds like some part of the Mach installation is missing.

Craig
My wife left with my best friend...
     and I miss him!
Re: Creating M-Code to activate Outputs
« Reply #13 on: August 08, 2019, 12:08:50 AM »
Oh fun, do I try re install it
Re: Creating M-Code to activate Outputs
« Reply #14 on: August 08, 2019, 12:11:52 AM »
Hi,
h'mmmm....I might wait until smurph, Chaoticone or Daz read this post....I'd guess they know abit more about it.

What build Mach are you using?

Craig
My wife left with my best friend...
     and I miss him!
Re: Creating M-Code to activate Outputs
« Reply #15 on: August 08, 2019, 12:13:36 AM »
Version 4.2.0.4162
Build 4162
Re: Creating M-Code to activate Outputs
« Reply #16 on: August 09, 2019, 05:01:19 PM »
Hi,
that's the same build as I'm using.

Have a look in Mach4Hobby/Modules for the file machip.dll  Is it there?

Craig
My wife left with my best friend...
     and I miss him!
Re: Creating M-Code to activate Outputs
« Reply #17 on: August 09, 2019, 05:05:53 PM »
Hi,
I notice the file is machipc.dll not machip.dll........just the sort of typo that can catch you out.

Craig
My wife left with my best friend...
     and I miss him!
Re: Creating M-Code to activate Outputs
« Reply #18 on: August 10, 2019, 02:29:07 AM »
I checked and the file is there.
Re: Creating M-Code to activate Outputs
« Reply #19 on: August 10, 2019, 01:51:17 PM »
If all you want to do is to turn on and off an output from G Code, you should try using M64 and M65 
Look on page 60 of the Mach4 G Code programming manual for mill and router style machines.   
M64 P2   this will turn on output 2
M65 P2   this will turn off output 2
Chad Byrd