Hello Guest it is April 25, 2024, 07:22:38 AM

Author Topic: confusion over DRO numbering  (Read 4921 times)

0 Members and 1 Guest are viewing this topic.

confusion over DRO numbering
« on: August 19, 2016, 03:03:17 AM »
Hi All,
I have just started to write my own macros for a coil winding project.
I have some code written and it appears to work although have yet to try
it out on the machine.

My confusion over DRO/LED/Button numbering means that it has been a slow
process.

I have an encoder mounted on the winding spindle and have enabled 'encoder1'
on the ports and pins page. I have successfully read the encoder at DRO 17203.
This much at least I have tested on the machine.

I have found no definitive documentation which tells me what DRO's monitor encoders
1 thru 4 on the ports and pins page.
 
Additionally while I can read 17203 (by my understanding a 'new' number) I cannot load
the existing A axis DRO with the result except by using setOEMDRO(803), an 'old' number?

Is there a logical explanation for the seeming numerous numbering systems?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: confusion over DRO numbering
« Reply #1 on: August 19, 2016, 08:45:43 AM »
I don't really understand what your problem is? Or what you're trying to do?
The A axis DRO is OEMDRO 803, so that's how you write to it (SetOEMDRO(803))

There is only one numbering system.
You have pre-defined OEM numbers, and user definable numbers.



Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: confusion over DRO numbering
« Reply #2 on: August 19, 2016, 10:16:12 AM »
Hi,
I wish to read the spindle encoder and display it, that  I can achieve. The spindle motor is a current
limited DC motor acting as a torque motor where its speed will be regulated by me impeding the
wire. I want Mach3 to count the turns and shift the Xaxis to lay them down, up to 20 layers deep.

My hope is that provided I keep the spindle speed low enuf, say 1 rev/sec, that the Xaxis will maintain
step.

As it turns out I have written the code and tested it on my laptop but have yet to try it on the machine,
that is tomorrows adventure.

My confusion is more about the DRO numbering setup. I found that I could read the encoder at DRO(17203)
and yet to display it  using Machs existing DRO at 803. The XLS file in the general forum indicates 'old' and
'new' numbers. Can I use either?

I am also confused about the distinction between predefined and user definable numbers, how do I distinguish
the two?

Apologies if these questions seem absolutely basic. I have recently coded in C a field oriented servo controller
so I can program but with VB I'm back in the deep end until the confusion clears!

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: confusion over DRO numbering
« Reply #3 on: August 19, 2016, 10:28:20 AM »
Old, or Standard DRO's, have been replaced by new, or OEMDRO's. Yes, you can use either  or both, but I'd recommend using OEMDRO's for consistency and less confusion.

http://www.machsupport.com/Mach3Wiki/index.php?title=OEM_DROs

User DRO's are created by the user. The Wiki says they should be from 1000 up, but I think there was a change at some point, and I would start over 1200. Not sure if there are unlimited numbers available or not. Most people use numbers in the 1200-2000 range.


Where did the #17203 come from? And how are you reading the encoder?

Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: confusion over DRO numbering
« Reply #4 on: August 19, 2016, 11:31:35 AM »
Hi ger21,
thanks for your reply, the wiki is excellent, clear and concise.

I found 17203 in OEM List Alpha 6.1 XLS near the top of the General Forum page.
Its new description is 'Encoder position A'. I read it using getOEMDRO(17203).
It was to my knowledge at that time the only DRO which was monitoring Encoder1
which I had enabled.

Looks like I have some more experimenting to do!

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: confusion over DRO numbering
« Reply #5 on: August 19, 2016, 12:29:42 PM »
OK, if you go buy that list, Old/New have very different meanings.
In that list, "New" was meant  to be preliminary work for Mach4.
I'm actually surprised that any of those high numbers even work.

I'd recommend using the Wiki first, and elsewhere if you can't find something in the Wiki.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: confusion over DRO numbering
« Reply #6 on: August 19, 2016, 06:51:42 PM »
Hi ger21,
it starts to make sense and given that I'm surprised it works as well.
Will experiment a bit more today and report back.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: confusion over DRO numbering
« Reply #7 on: August 19, 2016, 08:11:28 PM »
Hi All,
just as a matter of interest the coils I'm winding are for a LVDT that I'm making for use as a toolsetter/probe.

I use 0.2mm drills and 0.4mm endmills on circuit boards and they are VERY tender. Any force used to probe or
touch off breaks them. What I want is a device that I can place on top of the object, a blank circuit board typically,
to be milled and touch off to it with a force of 10grams or less. I use cuts as light as 50um on circuit boards and
need a repeatable accuracy of 5um or better.

I've made a handwound LVDT with a ferrite armature and a homebrew exicter oscillator/demodulator. I measured
its sensitivity yesterday at 84mV/mm with 2.5Vrms excitation for a specific sensitivity of 33mV/mm/V. This is still
at the low end of the published sensitivities by various commercial makers.

The new coil arrangement I have designed should up the sensitivity to 80mV/mm/V. The noise floor is about 0.3mV
so I'm hoping to achieve a repeatable accuracy of 1um with a linear range of 5mm.

My current design uses a passive demodulator with an estimated voltage loss of 14dB or a factor of 2.25. If I use
an active demodulator with 0dB loss and can hold the noise floor down the sensitivity could be a high as 179mV/mm/V
which is very respectable.

The best part is that so far its cost me about $50US for parts/materials that I couldn't make or recycle and those parts
are enuf to make 8 of them.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: confusion over DRO numbering
« Reply #8 on: August 20, 2016, 05:40:47 AM »
Hi All,
have been experimenting on the machine and have made progress but questions remain..

Following ger21's advice I'm using DRO's 143 and 173.

DRO 143 gives the actual pulse count whereas DRO 173 gives the value in units. I using
a recycled rotary encoder which has 24ppr for 96 counts per revolution. With Encoder4 enabled
in Ports & Pins I can see the pin state LED's operate on the Diagnostics page.
I can read both 143 and 173 and display them in DRO's 802 and 803. So far so good.

What I can't do is set either 143 or 173 to zero.

Have tried many variations of setOEMDRO(143.0) without success.
Am I correct in assuming that it is not possible to set or reset an encoder DRO?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: confusion over DRO numbering
« Reply #9 on: August 20, 2016, 06:51:41 AM »
Can you use the X, Y, or Z encoder DRO's? 140-142?
I think that there are buttons to zero those 3, but apparently not for the one you're using.

The following may or may not be accurate:

DoOEMButton (133) will zero DRO 140 and 170.
DoOEMButton (134 will zero DRO 141 and 171.
DoOEMButton (135) will zero DRO 142 and 172.
Gerry

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

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