¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

OCX Documentation

 

Hello Art,

I am getting a machine setup to try out the digitizing pulse you put
in.

I need to call the mach2 ocx from another program. Are the OCX
functions documented anywhere?

Thanks,
Tom


Re: Mach2 Relase 1.0 - Gigabyte/AMD

vrsculptor
 

What brand of mainboard does your computer have? If you answer with
Gigabyte then that's more than likely the problem because that board
seems to have absolutely no tolerance for Mach2.

Servo
Agree. Gigabyte AMD board just does not work.

Roger s


Re: Range of allowed M codes for macros

Art
 

John:

Right again, I will raise the limit to M9999

Thanks,
Art
www.artofcnc.ca


Re: Automatic roughing with Inhibit Z

Art
 

John:

Thanks, a bug I think. I will test it out... I recommend the last thing you
do before pressing cycle start is to set the repitions. They are disabled
with an E-Stop reset so it can be a bit picky. I'll let you know what I
find...

Art
www.artofcnc.ca


Range of allowed M codes for macros

 

I was thinking of documenting to users that they should start
writing their own macros numbering from M100.

The Configure>Macros dialog will happily open/save M101.M1S but MDI
and Part Program won't run it - M101 is just ignored.

Is there any downside to allowing macros even up to say M99999?

Best wishes

John Prentice


Re: Automatic roughing with Inhibit Z

 

--- In mach1mach2cnc@..., Art <fenerty@a...> wrote:
John:

My fault, I never explained that an M30 must be at the end of a
file <snip>

Thanks I put in the M30 - and a Return! and after several attempts
it ran wonderfully, decrementing the count and lowering Z-inhibit. I
tried some different values and it ran again - but then never again.

I just cannot get it to repeat again. The minimal test is: Metric
Units, MDI F100

Load this:

g1 z-10
g1 x5
g1 y10
g1 x0
g1 y0
M30

Set Repetitions = 5, Lower = 0.5, Z-inhibit = -1.0, Enable

Cycle Start

The first cut runs fine at Z = -1, the rewind happens but no
decrement of Repetitions or lowering of Z-inhibit.

I have tried disabling all the M30 actions on Logic dialog but no
difference. As Steve, I think, has reported, each run does
add "blanks" to the G-code file; editing them out makes no
difference. I hope it will misbehave for you!

Having seen it (twice) I can document it fine so it is not a panic.

John Prentice


Re: Odd behaviour with G64 and different G1/G2,3 feed rates.

Art
 

Hi Frank:

Play with your acceleration values. The CV mode is highly influenced by
them. It will round the vectors at axis direction change points due to the
CV methods used. One axis is decel. while the other is accel in order to
produce a constant velocity. I haven't run your program, but I suspect your
seeing a variation of this. Try increasing the velocity to see if it affect
the result.

Good luck,
Art
www.artofcnc.ca

(Gone to bed...long day....)


Odd behaviour with G64 and different G1/G2,3 feed rates.

 

Hello folks,


I have a problem with running this code (a segment) with constant velocity on
in RC11.


Especially if I enable feedrate overide on, the lead out from the radii to
the straight away causes the simple "J" shape to become a question mark. I'm
simply running around a square with .5" rads at the corners and trying to
deccelerate around the corners.




G1X19.5F300


G3X20.32Y-18.I0.J.82F170


G1Y-1.F300


G3X19.5Y-.18I-.82J0.F170


G2X19.32Y0.I0.J.18


X19.5Y.18I.18J0.


G3X20.32Y1.I0.J.82


G1Y18.F300




The machine can take it fine, I can run the whole sequence at 400 IPM,
re-home, and not lose a step.




Frank Carpenter


Re: Mach2 Relase 1.0

Art
 

Steve:

None run lathe well though...
I don't think anything runs Lathe well yet. ;) (Also, start calling it Turn
or I'll sick John on you...)

Thanks,
Art
www.artofcnc.ca


Re: Mach2 Relase 1.0

Art
 

Larry:

The install locks up? Hmm, I have heard of bad installs downloading. Try to
right click and select save as, this sometimes forces it to finish. You may
have a bad download. Compare the new download size with the old.

Thanks, Let me know if the problem persists. I'll email it to you if
necessary...

Thanks,
Art
www.artofcnc.ca


Re: Automatic roughing with Inhibit Z

Art
 

John:

My fault, I never explained that an M30 must be at the end of a file you
wish to do a repeat on. The rewind must be explicity set, otherwise the
repeat trigger will not fire.

(You'd think I'd mention that to the DocMaster)
Sorry,
Art
www.artofcnc.ca


Re: RC12 Lathe threading test

Art
 

Steve:
Well, the numbers are getting better, but I don't understand the dual
movement. I just finished a 15 hour shift, so I will try to get to this
tommorrow. Obviously, I have a problem with step/dir spindle in G32's, the
feedrate thing has me perplexed as well.

Thanks,
Art
www.artofcnc.ca


Re: Mach2 Relase 1.0

Steve Blackmore
 

On Wed, 27 Aug 2003 18:00:42 -0700 (PDT), you wrote:


Hi,

What brand of mainboard does your computer have? If you answer with Gigabyte then that's more than likely the problem because that board seems to have absolutely no tolerance for Mach2.
That's a bit of a sweeping statement? I've now got 3 PC's here, one of
which is a Gigabyte and it runs Mach2 mill fine (The others are an
Asus and an Intel) None run lathe well though...

--
Steve Blackmore


Re: Mach2 Relase 1.0

Servo Wizard
 

Hi,

What brand of mainboard does your computer have? If you answer with Gigabyte then that's more than likely the problem because that board seems to have absolutely no tolerance for Mach2.

Servo



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


Re: Mach2 Relase 1.0

Steve Blackmore
 

On Wed, 27 Aug 2003 13:52:08 -0600, you wrote:


I downloaded release version 1.0 and tried to install it. The install
program locks up after it is started.
Any error message?

I downloaded it a 2nd time with
the same results. Tried restarting windows with no luck. This is the
first time I have had a problem with installation for a long time.
Currently have RC3.0 installed. Any suggestions?
RC3 to date has had so many changes! 7th July to date is at least 4
versions plus many of Art's phantom ones, plus registry to XML in V6
for settings!!

What OS are you running? If XP is it up to date with security fixes
and sobig.f virus free?

I'd be tempted to uninstall mach2, search the registry for Mach2,
delete every value (uninstall doesn't) search for Mach2.sys and delete
those, delete the Mach2 directory, re-boot THEN install RV1.0.

Re-boot again after installation - then reset all your settings from
scratch, exit Mach2 & re-start (some settings still don't stick
without close/reopen program).

Then try again!

You've nothing to loose, your settings have gone anyway!

--
Steve Blackmore


Re: Mach2 Relase 1.0

Larry Ragan
 

Hi Art

I downloaded release version 1.0 and tried to install it. The install
program locks up after it is started. I downloaded it a 2nd time with
the same results. Tried restarting windows with no luck. This is the
first time I have had a problem with installation for a long time.
Currently have RC3.0 installed. Any suggestions?

Larry Ragan


Automatic roughing with Inhibit Z

John Prentice
 

Hi

Perhaps I am doing something silly, but with the program:

f100
g1 z-10
g1 x10
g1 y20
g1 x0
g1 y0

And Z inhibit set initially to -1.0, Lower Z-inhibit set to 1.0 and repetitions set to 10 I get one cut at Z = -1. No repeats.

Any thoughts?

John Prentice


Re: RC12 Lathe threading test

Steve Blackmore
 

On Tue, 26 Aug 2003 18:54:52 -0300, you wrote:

Yes, new driver is included in the release. Good luck with the tests...
It does sound like maybe a stall, no fucusing needed with those type of
sensors.
You still forgot to fix macro though ;)

Done some more test this morning and things look much more promising
on the spindle front. Spindle is not slowing down and is maintaining
requested speed plus or minus 20rpm (which is still too much) BUT the
really weird error follows:

When Z axis moves -ve on G32 X axis is moving +ve !

It didn't happen with non-step/dir G32.

It's not supposed to and both axis are stalling occasionally.

Here's a snippet of code with explanation

N130 M6 T2
N140 G43 H2
(I added a RUN box to Thread diag - makes life much simpler!)
N150 G0 X9.73 Z36.386 S500 M4 M8
(Also tried changing speed to 300 - both axis are well able to do
compound moves at over 1000mm/min without stalling - but something is
causing it on line N170 onwards)
N160 G0 X7.191 Z34.978
(Fine at 800mm/min)
N170 G32 X7.191 Z19.698 F1.0
(Z is moving -ve X is moving +ve?? with initial stall, never makes it
to Z19.698)
N180 G0 X9.73 Z19.698
(Running lumpy and very fast)
N190 G0 X9.73 Z36.386
(as above)
N200 G0 X7.151 Z34.956
(Again too fast)
N210 G32 X7.151 Z19.676 F1.0
(Z&X both moving as first G32 line etc)

It would appear that the faulty feed speed on the G32 line is being
maintained on the G0 lines that follow.

Reading for spindle speeds

Time Correction 31 26
Normal Spin Count 2802 2838
Current Spin Count 5842 4641
Spin adder 1030 1918


--
Steve Blackmore


Re: Constant velocity/Exact stop ***OT Warning****

 

Some folks might want to try 2X Editor, this little gem is free, faster and smaller than notepad and wordpad and co-exists happily with Mach2.

Try 2XExplorer while you are at it, get used to a two pane file manager and you will never go back to Windows Explorer.
2X is the like Mach2, good programming with a involved user base and a talented developer.

Art, thanks for fixing CV toggle/ G64 etc., explains a lot of weird things I've had happen.

Frank Carpenter


Re: stepper stall (to Art)

Isak Levinson
 

It has no difference if CV is enabled or disabled, via the menu or the
g61/g64 commands.
The effect is the same.

As I see your algorithm works as follows:
The G file is parsed and converted into a tool path list.
The kinematics algorithm calculates the motor speeds.
I think that your backlash correction is done in the RT (mach.sys)
service.
This R service does not have knowladge of the kinematics (only the final
speeds).

If I migh suggest an alternative that algorithm:
After you parse the G file you can scan it for direction changes.
Now you can insert the backlash corrections paths into the path list.
And now calculate the kinematics algorithm for the motor speeds on the new
path, which include the bcklash corrections.

That way you will be able to use baclash correction reguardless of CV
setting (If CV is on there could be a slight drift from the optimal path)
You won't have to deal backlash in a special way.
The backlash corrections would comply with the same
acceleration/deceleration as all other moves.
You won't have to define a speed for backlash correction.

I think that all that has to be done is to scan the desired path list for
direction change, and insert the backlash compensation segments in those
points.

Isak.