Hello Guest it is April 28, 2024, 05:19:58 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 - HimyKabibble

981
General Mach Discussion / Draft Mach3 v3.x Programmers Reference Manual
« on: October 01, 2009, 11:01:54 AM »
All,

Below is the first draft of the Programmers Reference Manuals for Mach3 v3.x posted for user comment.  This manual documents almost all of the existing Mach-specific VB functions for Mach3 v3.x.  The Modbus and Serial chapters are still in-process, and will be posted in an updated version shortly.  Everything here has been tested against Mach3 v3.042.020, so, as pointed out in the introduction, you may find some differences with other, particularly earlier, versions.

Brian and I have had a significant shift of focus since this project began a few months ago.  Our original intent was to thoroughly document the existing interface in a Programmer Reference, and add to that a detailed step-by-step tutorial manual, aimed at making it possible for almost anyone to learn to write Mach macros.  However, as we started working on the documentation, we realized the interface itself, as a result of its rather "organic" growth, actually made learning to write Mach macros much more difficult than it needed to be - there were missing functions, duplicated functions, and the function naming and argument conventions had little consistency.  For example, Feedrate() returns the current feedrate in units/minute, while SetFeedRate() sets the new feedrate in units/second.  GetRPM() and SetRPM() don't actually Get and Set RPM, but the S-word value.  In addition, there is the need to insert delays in certain operations, in order to get the result you expect.

As a result, we made the decision that Mach3 v4, while it would continue to support the v3 interface, would also begin the shift to a completely new VB interface with very regular naming and argument conventions, and a GREAT deal more functionality.  This new interface will make it far easier to write well-documented macros, to do more with less code, and to make maintenance and updates of the underlying code far easier.  It will greatly simplify macro writing, and enable you to do many things that are difficult, if not impossible, with the current interface.  And, it will be much easier to learn and use, with far fewer of the quirks that those of us who've done a lot of macro programming have torn our hair out over.

This manual is being published to document what is there now, primarily so that existing macro code can be more easily maintained and, if necessary, extended.  But development on this interface will eseentially cease.  So, what you see is what you get, and there will likely be no further updates or bug fixes to this code.  Instead, all efforts will be focused on the new v4 interface going forward.  The v3 interface will continue to be supported, and you will be able to enable the "legacy mode" on a script-by-script basis.  Once Mach3 v4 is released, it is *strongly* recommended that all new code be written using the new v4 VB interface.

A v4 Programmers Reference will be published in the near future, as a preview of the great things to come.

So, happy reading, and comment away!

Regards,
Ray L.

982
General Mach Discussion / Re: Need HELP Steppers Stalling on Shallow Moves
« on: September 30, 2009, 12:37:17 PM »
I can see several things that are less than ideal in your wiring.  First, you really MUST have a very solid single-point ground.  Normally, this would be a metal plate, to which everything is mounted.  At a minimum, it should be a solid buss-bar to which ALL grounds are connected.  Never daisy-chain grounds - they should ALL connect directly to a single point.  It appears your power supply has two separate output?  If so, the grounds on those MUST be tied solidly together.  Never, ever connect a signal ground point to a power ground point (e.g. - connect an encoder power- signal directly to motor power- on the drive, to save a wire).  Run two separate wires all the way back to the single ground point.

What you're seeing "smells" like a bad ground, since it gets worse under load - that suggests that different parts of the system "see" different grounds at different times, which can cause an active input to be "seen" as inactive, or vice-versa.  Basically, the idea is to make sure that for each signal, there is one, and only one, path back to ground, and that path must NOT include shields.  Otherwise, the return current will be split among the available return paths, and things may not behave as expected.  In your case, I would add a buss bar alongside your power supply, tie BOTH power supply grounds to that, along with the power line ground, and make ALL ground connections directly to that buss bar.  My guess is this alone will go a long way towards resolving your problem.

Next, the shielded cables - If you don't have the shields connected, then they're effectively unshielded cables.  The shields should be connected to ground at the SOURCE end only.  This means the signal cables (STEP, DIR, etc.) should have their shields connected ONLY at the BOB end.

There is no reason for this stuff to be particularly sensitive, if wired up properly.  As an example, my E-box has the PC, power supply, two BOBs, SmoothStepper, home/limit/relay I/F board, spindle speed I/F, VFD, Geckos, Modbus board, etc. all in a single enclosure, and works flawlessly.  The mounting plates and the enclosure itself are all securely tied to ground.  You can barely see in the pictures that the grounds of both power supply filters are tied directly to the mounting plate, and all ground connections branch off from there.

Regards,
Ray L.

983
General Mach Discussion / Re: Need HELP Steppers Stalling on Shallow Moves
« on: September 29, 2009, 09:54:48 PM »
What kind of power supply are you using here?  Linear regulated, linear unregulated, switcher?  Make/model?

Based on the somewhat flaky behavior, I'd bet you've got either a noise or ground problem, and not a motor/drive problem.  What BOB are you using?  How do you have things wired?  Some pictures of your electronics might help a lot.

Regards,
Ray L.

984
General Mach Discussion / Re: Need HELP Steppers Stalling on Shallow Moves
« on: September 29, 2009, 09:52:17 PM »
Cartiersium,
Unless someone has experience with equivalent steppers and in that voltage and amp setting  range you can't know what the 1810 or 2830 in oz  would do in terms of power. You need to take a look at the motor curves to get a flavor. Problem is you may not get a curve at that voltage ( which is usualy the case ). So you have an idea but nothing tested.  You can always ask the vendor.

If you are finding the problem at a particular feed rate, then maybe it's a motor resonance problem  at that rpm. Take a look at the Gecko site for info on it. Just a guess on my part as i have never experienced the resonance stuff.
Sorry i couldn't be of more help,
RICH

Rich,

Actually, voltage has nothing to do with torque.  Torque is determined by current.  The high voltage is used simply to allow the drive to "overcome" the motor inductance and ramp the current up much faster.  The peak torque rating of a stepper gives you the low-speed torque capability, so he should be seeing pretty close to that peak torque at his 30IPM feedrate.

Regards,
Ray L.

985
General Mach Discussion / Re: for using 'CustomMacro1~10'
« on: September 29, 2009, 09:49:29 PM »
You write a VB macro, as a custom M-code.   You do this by creating a file Mnnn.m1s in the Mach3\macros\Mach3Mill directory. nnn is the M-code number.  So, if you create M123.m1s, then you can put an "M123" in your G-code, and that macro will execute.  To use that same macro as a Custom Macro in the ShuttlePro, just put the number, 123 in this case, in the configuration dialog.

Regards,
Ray L.

986
General Mach Discussion / Re: Need HELP Steppers Stalling on Shallow Moves
« on: September 29, 2009, 08:32:03 PM »
I would put an oscilloscope on the power supply.  My guess is it's not holding up under peak loads.  You can try looking at it with a voltmeter first.  If that's not it, then I'd look for possible ground problems, or noise affecting the Step/Dir lines.  Does one axis typically stall, or both?

Regards,
Ray L.

987
General Mach Discussion / Re: Agghhhh, how is the safe Z meant to work
« on: September 28, 2009, 02:14:44 PM »
Ray
 -5 in machine coords will be very near the uppermost of the Z Axis as it is likely Bowber is using mm rather than inches.

Hood

Hood,

But isn't SafeZ in work coordinates?  That's certainly how it works on mine....  And, since he doesn't have home switches, who knows where machine zero is.

Regards,
Ray L.

988
General Mach Discussion / Re: Agghhhh, how is the safe Z meant to work
« on: September 28, 2009, 12:24:42 PM »
Just restarted a job that i couldn't finish on Friday, no problems with accuracy as it's just some cut lettering for a sign but when I did run from here the cutter went down into the material and cut a line htrough the previous lettering!

I have the safe Z setup to -5 and the box checked for machine coardinates so surely it should have gone up to -5 on the machine coardinates?

I've now set it to +5 and checked work coardinates and this worked as expected (5mm above work zero)

I'm using mach 3.042.020 and this has been working fine so I didn't want to get the latest and end up with other problems but perhaps I should get the latest one?

Mind you it doesn't matter now as the computer locked up and lost position so I'm going to have to start from the begining anyway, glad the material is cheap!

Steve

I'm assuuming this is a router.  If so, it would be conventional for negative values of Z to be into the work, and positive values to be above the work.  So, your -5 SafeZ setting *would* cut into the work.

Regards,
Ray L.

989
General Mach Discussion / Re: MPG? handwheel?
« on: September 22, 2009, 12:39:18 PM »
Hood,
   got the MPG and its all working!
cant seem to find a oem code for bringing up the mpg/jog screen ie when you press tabs?

OEM button codes 1-99 select the corresponding screenset page.  The "tab" jog page is #50.  So, DoOEMButton(50) will pop it out.

Regards,
Ray L.

990
General Mach Discussion / Re: How often do you upgrade your version of Mach?
« on: September 17, 2009, 03:42:02 PM »
I'm just getting started and I'm currently using version R3.042.020 of Mach that I downloaded when I first got my machine.  I noticed that the current lockdown version is R3.042.029.  Just wondering if I should upgrade.  I'm not currently having any problems.

What's the concensus? Do you always download the latest version when it's available?

If you're not having problems, I would leave well enough alone.  I've been using 020 since sometime last winter, and don't plan to change until V4 comes out.

Regards,
Ray L.