Hello Guest it is October 18, 2019, 03:51:57 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

81
Mach4 General Discussion / Re: pmdx411 cannot communicate with device
« on: February 28, 2019, 09:21:59 PM »
A choke is basically a device to prevent common mode currents on the signal lines.  Usually, all it consists of are ferrite cores.  Such as https://www.mouser.com/ProductDetail/Fair-Rite/2643625002?qs=MLldULe7zY2ZDvtexqlGbA%3D%3D.

Pass the wires from the MC-60 through the core (as many turns as you can fit).  Do all three of them.  It is important that the choke is as close to the G540 as possible.  Say within an inch or so.  Meaning it doesn't have to be .0001 close!  :) 

http://www.w6pql.com/images/hf/hftkctrl.jpg

In that picture above, the heavy pinkish/red wires are passed through some larger cores.  And then there are a lot of signal wires or different colors being choked as well. 

Steve

82
Mach4 General Discussion / Re: pmdx411 cannot communicate with device
« on: February 28, 2019, 08:59:01 PM »
Probably the new MC-60 motor controller is noisy and wigging out the G540, PMDX-411, USB or all of them!  I would put some chokes on the MC-60 wires close to the G540.

Steve

83
Mach4 General Discussion / Re: Mach 4 homing erroer
« on: February 28, 2019, 07:39:36 PM »
Also check

Configure->Control->Motors  And make sure the check boxes are checked by all of the motors that you use.

Steve

84
Mach4 General Discussion / Re: touch probeing
« on: February 28, 2019, 07:37:15 PM »
Blum makes a good line of probes/tool setters too.  None of the good stuff is cheap, unfortunately.

Steve

85
Mach4 General Discussion / Re: Signal scripts while disabled.
« on: February 28, 2019, 04:23:46 PM »
mcSignalWait() used to require that the control was enabled.  The reason was because mcSignaWait() used to be ONLY used by the Industrial MacroB functions and ONLY on the general purpose input and output signals.  In the newer builds, this requirement has been removed and mcSignalWait() will work on ALL input and output signals. 

If you check the return code from mcSignalWait() it would have told you MERROR_NOT_ENABLED.  This is why it is ALWAYS important to check the return code.  :)

Steve

86
Again, a reminder to keep all M code function names and file names lower case. 

Steve

87
No.  :(  X, Y, Z, A, B, and C are coordinated axes.  That means that they move in coordination with each other.  Always.  The out of band axes are not coordinated.

Steve

88
General Mach Discussion / Re: Mach3 license.dat issue
« on: February 16, 2019, 07:39:20 PM »
Please open a support ticket via the www.machsupport.com website.  That is the safe way to deal with license issues. 

Steve

89
Mach4 General Discussion / Re: Sending Info to a Database from a Script
« on: February 16, 2019, 06:37:05 PM »
Mach Motion may not have included those files in their installation.  Attached are the complete set of Lua5.2 modules from 3804.  Don't overwrite your existing luasql thought, as the files you have now are newer.  Just get the modules you don't have. 

Use the Mach4 interpreter in ZeroBrane.  Always launch the Zerobrane editor from the Mach menus.  Otherwise, the paths will not be correct and it will not find the modules (machipc.dll, etc...).

As to if they will the run in the G code, yes.  Build a regular M code macro and put your DB code in there and it will be fine. 

Steve

90
Mach4 General Discussion / Re: Sending Info to a Database from a Script
« on: February 15, 2019, 01:27:34 PM »
You can't use the Lua module files from the 4088 build in the 3804 build.  The reason is that the 4088 uses Lua 5.3 where 3804 uses Lua 5.2.  Copying the lua53.dll file into the 3804 directory didn't do much other than let the 5.3 module go a step further.  However, the Mach GUI and core are still Lua 5.2, which is causing the 0xc0000005 exception. 

So yes, you need to upgrade the Mach 4 software on the target machine to use the Lua 5.3 modules from 4088.  However, knowing that it is a Mach Motion Win 7 Embedded control, I would not do that.  It will break a TON of their screen scripts.  So I went looking for Lau 5.2 versions of the luasql modules and found them in a later build.  They are attached.

Steve