Hello Guest it is January 29, 2020, 08:59:59 AM

Author Topic: G31 causes driver fault  (Read 1805 times)

0 Members and 1 Guest are viewing this topic.

G31 causes driver fault
« on: February 23, 2016, 04:02:43 PM »
Hi,

I've just made my own digitizing probe and it works good for probing in the X, Y and Z direction with the 2010 screenset.

Today I tried to use the Digitizing Wizard, but we seem to have a problem here.

This is the data of my system:

Windows 7 SP1
CSMIO/IP-M
Leadshine AM882
Mach3 ver. R3.043.062
2010 Screenset
Setup for milimeters

Some of the code:

 (Digitize File)
M40
G92X0Y0Z0
F100
 G0X0Y0Z5
 G31 Z-6 (Probe touches the surface and outputs Hit success on the screen)

G0 Z5 (Now the driver goes into fault state when trying to read the G0 Z5 line.)
... 
M30

The driver has stall protection meaning that too much acceleration causes the driver to go into the fault state. I can verify this by periodic time of the red led that starts to flash on the driver. I changed the Z in the code to X and my machine made a very rapid move to G0 X5, after the G31 code. When I afterwards tried to run the code again, the driver vent into fault state, just like the Z-axis. This indicates that the code makes my system accelerate very rapid when trying to do the G0 move after the G31 move.

Here are the things I have tried to do, to narrow down the problem, but without success:

- Changed the X, Y and Z Velocity and Acceleration to very low values in Motor Tuning.
- Put G21 line between the  G31 and G0

Maybe it's some incompatibility between CSMIO and Mach3 (G31)?

I really hope that some of your guys can help me with this one.


Thank you in advance,

Brian
   

Offline BR549

*
  •  6,925 6,925
    • View Profile
Re: G31 causes driver fault
« Reply #1 on: February 23, 2016, 06:09:13 PM »
IF it is a G31 problem with teh Csmio the you really need to look to CS-Labs for teh answer as teh Csmio has to handle the G31 function not Mach3 and that part would be done in teh plugin OR teh COntroller firmware.

(;-) TP

Offline ger21

*
  • *
  •  6,291 6,291
    • View Profile
    • The CNC Woodworker
Re: G31 causes driver fault
« Reply #2 on: February 23, 2016, 07:00:08 PM »
I think  you need to use a different code other than G31 with the CS Labs boards.

http://www.cs-lab.eu/en/artykul-129-M31_as_an_alternative_to_G31.html
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: G31 causes driver fault
« Reply #3 on: February 23, 2016, 08:12:25 PM »
I probably need something like this M31 macro, but I must admid that I'm clueless when it comes to programming. I need some help with this, please.

Offline ger21

*
  • *
  •  6,291 6,291
    • View Profile
    • The CNC Woodworker
Re: G31 causes driver fault
« Reply #4 on: February 23, 2016, 08:18:53 PM »
Ask CS Labs if their devices will work with the digitize wizard.
« Last Edit: February 23, 2016, 08:36:25 PM by ger21 »
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: G31 causes driver fault
« Reply #5 on: February 23, 2016, 08:27:39 PM »
I'll ask them first. No need to dig our own grave if it isn't possible anyway.

Brian

Offline BR549

*
  •  6,925 6,925
    • View Profile
Re: G31 causes driver fault
« Reply #6 on: February 23, 2016, 10:19:15 PM »
I don't think you can use teh M31 and teh DIg Wizard as the Wizard writes teh Gcode and IT has no idea what a M31 is. Also teh M31 runs with Parameters to program its function. Agin teh Dig Wizard has no idea on how to do that.

Just a thought, (;-) TP
Re: G31 causes driver fault
« Reply #7 on: March 01, 2016, 08:54:21 AM »
Hello again.

CS Labs just replied this to me:


I have a few tips for you that can be helpful.
1) Use this Mach3 version ftp://machsupport.com/Mach3/Mach3Version3.043.022.exe
In our opinion it's the most reliable version.
 
2) Use G31 only from VB macros level, do not use G31 from gcode.

Remember - after you use M40 command give a file name and point a location of the file with coordinates.
The difference is because the file is created by plugin and not Mach3.
 
No one has ever informed about such issue so if the tips above won't help then you will have to send me copy of your Mach3 with detailed information on how to activate the problem.



Do you guys have an idea how I can implement the G31 to into a VB script? I would love to do be more helpful myself, but I´m just lost here. Has nobody ever tried to use the M31 macro they have put on their site?


Regards,

Brian

Offline ger21

*
  • *
  •  6,291 6,291
    • View Profile
    • The CNC Woodworker
Re: G31 causes driver fault
« Reply #8 on: March 01, 2016, 09:30:04 AM »
1) You can't use version 3.043.022 with the 2010 Screenset. There's a serious bug in mach3 in that version that will cause Mach3 to lock up during a tool change.



Quote
Do you guys have an idea how I can implement the G31 to into a VB script


Look at the M881 and M889 macros from the 2010 Screenset for examples.

Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html