HURCO KMB-1 Control Update
- NT4Boy
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 10
20 Jun 2025 07:55 - 20 Jun 2025 07:56 #330555
by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
I'm still addressing some old school electronics that needed updating in the VFD, so turned my attention back to the override potentiometers.
When the spindle runs and I read the pot via the 3.3volt Analogue pin 7i92.0.7i71.0.2.input_03, there is a notable hunting in the spindle speed. Not much, but it just doesn't sound steady.
This is down I think to the ADC hopping between bits which is also normal.
I looked at the original Hurco control use of the pots and how the analogue values were read, and note that the conversion to digital was done in a 12 bit ADC. so the increment between bits is tiny in comparison.
In the 7i73 manual. it states:
"OPERATION
ANALOG INPUTS
Inputs 0 through 7 can read analog signal values however only inputs 0 through 3 are supported for analog input by available interface modes. Analog inputs have a range of 0 to 3.3V. Normal resolution is 8 bits. All bits are readable as digital inputs. Note: analog inputs are only accessible in some software modes."
Does this mean I could configure an analogue input to use a increased resolution of 12 bits?
If so How would I do that?
Thanks
When the spindle runs and I read the pot via the 3.3volt Analogue pin 7i92.0.7i71.0.2.input_03, there is a notable hunting in the spindle speed. Not much, but it just doesn't sound steady.
This is down I think to the ADC hopping between bits which is also normal.
I looked at the original Hurco control use of the pots and how the analogue values were read, and note that the conversion to digital was done in a 12 bit ADC. so the increment between bits is tiny in comparison.
In the 7i73 manual. it states:
"OPERATION
ANALOG INPUTS
Inputs 0 through 7 can read analog signal values however only inputs 0 through 3 are supported for analog input by available interface modes. Analog inputs have a range of 0 to 3.3V. Normal resolution is 8 bits. All bits are readable as digital inputs. Note: analog inputs are only accessible in some software modes."
Does this mean I could configure an analogue input to use a increased resolution of 12 bits?
If so How would I do that?
Thanks
Last edit: 20 Jun 2025 07:56 by NT4Boy. Reason: typo
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18739
- Thank you received: 5173
20 Jun 2025 18:40 #330585
by PCW
Replied by PCW on topic HURCO KMB-1 Control Update
The 7I73 does not currently support any higher resolution A-D modes,
(I think the issue was exceeded the total serial data available) but
one simple thing to try is to low-pass filter the 8 bit data from the 7I73
in hal before using it to control the spindle speed.
If the flicker is greater than 1 LSB it may also be that you are picking
up some noise in the potentiometer wiper line. You could reduce this
by adding a small (say 1 uF) capacitor from the potentiometer wiper
terminal to 7I73 GND.
(I think the issue was exceeded the total serial data available) but
one simple thing to try is to low-pass filter the 8 bit data from the 7I73
in hal before using it to control the spindle speed.
If the flicker is greater than 1 LSB it may also be that you are picking
up some noise in the potentiometer wiper line. You could reduce this
by adding a small (say 1 uF) capacitor from the potentiometer wiper
terminal to 7I73 GND.
The following user(s) said Thank You: NT4Boy
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23370
- Thank you received: 4966
20 Jun 2025 20:20 #330595
by andypugh
XY offsets are not often used on a mill, but some machines have one head and a number of tools that pop down from it, and XY offsets are useful there to account for the different positions of the tool axes.
I suggest making sure that all the offsets are zero in the tool-table editor.
If you do find that you have accidentally put an offset in the wrong axis, then you can MDIlinuxcnc.org/docs/devel/html/gcode/g-code.html#gcode:g10-l1
Where "n" is the current tool number.
Replied by andypugh on topic HURCO KMB-1 Control Update
They are not ignored, but if you have X and/or Y offsets applied when you touch-off then the tool offset anf G54 offsets will cancel out.By experimentation, the Y and X offsets can be entered pressing tool touch off with the wrong axis selected. On a 3 axis mill, as far as I can tell numbers in these columns are ignored.
XY offsets are not often used on a mill, but some machines have one head and a number of tools that pop down from it, and XY offsets are useful there to account for the different positions of the tool axes.
I suggest making sure that all the offsets are zero in the tool-table editor.
If you do find that you have accidentally put an offset in the wrong axis, then you can MDI
G10 L1 Pn X0 Y0 G43
Where "n" is the current tool number.
The following user(s) said Thank You: NT4Boy
Please Log in or Create an account to join the conversation.
- NT4Boy
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 10
20 Jun 2025 20:53 #330601
by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Thanks Andy,
Since writing that I did manage to inadvertently introduce an axis offset via the tool table, so have become super cautious.
Since writing that I did manage to inadvertently introduce an axis offset via the tool table, so have become super cautious.
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.139 seconds