Hello Guest it is August 19, 2019, 12:13:23 AM

Author Topic: Is it me or Mach...Probably me :)  (Read 4302 times)

0 Members and 1 Guest are viewing this topic.

Offline SMA

*
  •  68 68
    • View Profile
Is it me or Mach...Probably me :)
« on: April 13, 2012, 07:01:34 PM »
Simple workoffset Script.  I am using G92 to "zero" DRO's early in the script which works great.  A short pause so I can observe Zero's across the DRO's.  I use same command at end of Script and I am left with some small numbers in DRO's.  Why is this.  I can use DoOEMButton and get zero's but the G92 does not Zero?

Ideas?

Thanks

S


LoadMatX = GetUserDRO(1017)' read the stored values
LoadMatY = GetUserDRO(1018)
LoadMatZ = GetUserDRO(1019)


DoButton(24)
RefCombination (1 + 2)
While IsMoving()
Wend
Code "G92 X0.00 Y0.00 Z0.00)
Sleep (2000)
Code ("G53 G1 X" & LoadMatX & " Y" & LoadMatY & " F1500")
While IsMoving()
Wend
Code ("G53 G01 Z" & LoadMatZ & " F600")'
While IsMoving()
Wend
Code "G92 X0.00 y0.00 Z0.00"

Offline BR549

*
  •  6,886 6,886
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #1 on: April 13, 2012, 07:25:59 PM »
Try this way

LoadMatX = GetUserDRO(1017)' read the stored values
LoadMatY = GetUserDRO(1018)
LoadMatZ = GetUserDRO(1019)


DoButton(24)
RefCombination (1 + 2)
While IsMoving()
Sleep(10)
Wend
Code "G92 X0.00 Y0.00 Z0.00"
While Ismoving()
Sleep(10)
Wend
Sleep (2000)
Code ("G53  X" & LoadMatX & " Y" & LoadMatY & " F1500")
While IsMoving()
Sleep(10)
Wend
Code ("G53 Z" & LoadMatZ & " F600")'
While IsMoving()
Sleep(10)
Wend
Code "G92 X0.00 y0.00 Z0.00"
While Ismoving()
Sleep(10)
Wend

(;-) TP

Offline SMA

*
  •  68 68
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #2 on: April 14, 2012, 12:06:25 AM »
Thanks TP,

Strangely enough I am still left with small values in the DRO's.  Very small values mind you but values none the less.

Z=0 but X=-0.0029 Y=0.0019

Extremely small but since G92 is supposed to force the DRO's to display a value, in this case 0, I can't understand why it does not work.

I can use DoOEMButton 1008 9 and 10 but it bothers me that the 92 does not work.  As I said it works in the first instance it is found in the string just not in the second?

S

Offline BR549

*
  •  6,886 6,886
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #3 on: April 14, 2012, 10:54:31 AM »
Works fine here(;-)

Try something. Change teh G92 call to use the Full display of the DRO to the right of the decimal such as

G92 X0.0000 Y0.0000 Z0.0000

Just a thought, (;-) TP

Offline SMA

*
  •  68 68
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #4 on: April 14, 2012, 07:29:16 PM »
Thanks again TP.  This did not work either.  Here is what did work and I would like to hear your take on it. 

My take is that the motor was not capable of acheiving this position exactly due to steps per.  Here is why I think this, and I may be way in left field on this. 

The small amount left in the DROs was consistently -0.0019.  I took this amount and subtracted it from my Y Load Material postion and now DRO's zero.  For the X axis it was consistely 0.0029 and I subtracted this from the Load Material X setting that was 16.0629 and made it 16.0600 and same results.  DRO's both now will display Zeros. 

Am I misunderstanding G92.  I thought that it forced the DRO's to display whatever number you denoted for the axis but did not move the axis.

Although is problem solved I really want to understand why.  Is there a setting in MaCH that would have rectified the issue.

Still  confused about Mach but getting there.

S

Offline BR549

*
  •  6,886 6,886
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #5 on: April 14, 2012, 11:47:40 PM »
G92 SHOULD reset to Zero reguardless that is why I asked about using the G92 with Full dro scale 0.0000(;-) I thought a taiil end value was being left in the 3&4 after the decimal.

Have you tried useing a G52 (same thing only different)

(;-) TP

Offline SMA

*
  •  68 68
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #6 on: April 15, 2012, 01:45:32 AM »
And I thought that was the ticket.  I tried it but it did not make a diff.  Same amounts left in DRO's.

I wonder if it is just some sort of bad install.   I am totally ignorant when it comes to software and how you might end up with a buggy install. 

Maybe an offset.  I will make myself familiar with G52 and then employ it if I can figure it out.

There have been some really strange things with this machine.  I am actually dealing with another issue all at the same time as I am pretty sure that my controller contains one of these http://www.candcnc.com/G251-4_FMK.html.  On the road to try another controller from Jeff Birt. 

Thanks for you input as it is greatly appreciated.

S

Offline BR549

*
  •  6,886 6,886
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #7 on: April 15, 2012, 11:29:47 AM »
Certainly nothing wrong with the CandCNC stuff.  Tom is great to deal with and Takes care of the customers. Seeing how he designs and manf the boards he knows them inside and out.

Out of curiousity what are you steps per unit settings for the axis?


(;-) TP

Offline SMA

*
  •  68 68
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #8 on: April 15, 2012, 04:50:13 PM »
Tom was extremely helpfull in narrowing down a step loss issue and was extremely generous with his time.  It is likely that my control unit is an old one and that it has one of these G251-4 units that are in the link.  I am going to be sending the unit back for repair in the near future.

I have attached my motor settings.  
« Last Edit: April 15, 2012, 05:02:55 PM by SMA »

Offline SMA

*
  •  68 68
    • View Profile
Re: Is it me or Mach...Probably me :)
« Reply #9 on: April 15, 2012, 05:07:27 PM »
Dang here are the other two.  Heck of time trying to post these