×
Forum Header
Problem in Spindle Speed readout???
23 Jul 2011 17:06 #11771
by acondit
Problem in Spindle Speed readout??? was created by acondit
The computer on my lathe crashed (disk drive went south), so I installed a new computer with EMC2-2.4.6.
I was having trouble getting my old config to work, so I used stepconf to generate a new config. I checked the
box to generate a new custom pyvcp panel. I got a spindle speed indicator (which was what I wanted).
However, when I ran the lathe there was no apparent reading in the spindle speed. So after a lot of work,
I discovered that the encoder was working fine, and everything up to the pyvcp display was working.
Below is the custom_postgui.hal file text.
I discovered that setp scale.0.gain was set to 1/60 (.01667) rather than 60. When I changed the value everything worked.
My question is did I do something to cause stepconf to calculate the wrong value or is there a bug in stepconf related
to the calculations for the spindle speed setup?
####custom_postgui.hal
# Include your customized HAL commands here
# The commands in this file are run after the AXIS GUI (including PyVCP panel) starts
# **** Setup of spindle speed display using pyvcp -START ****
# **** Use ACTUAL spindle velocity from spindle encoder
# **** spindle-velocity bounces around so we filter it with lowpass
# **** spindle-velocity is signed so we use absolute compoent to remove sign
# **** ACTUAL velocity is in RPS not RPM so we scale it.
#setp scale.0.gain .01667 ( I replaced this line with the following line)
setp scale.0.gain 60
setp lowpass.0.gain 0.01
net spindle-velocity => lowpass.0.in
net spindle-rps-filtered <= lowpass.0.out
net spindle-rps-filtered => abs.0.in
net absolute-spindle-vel <= abs.0.out => scale.0.in
net scaled-spindle-vel <= scale.0.out => pyvcp.spindle-speed
I was having trouble getting my old config to work, so I used stepconf to generate a new config. I checked the
box to generate a new custom pyvcp panel. I got a spindle speed indicator (which was what I wanted).
However, when I ran the lathe there was no apparent reading in the spindle speed. So after a lot of work,
I discovered that the encoder was working fine, and everything up to the pyvcp display was working.
Below is the custom_postgui.hal file text.
I discovered that setp scale.0.gain was set to 1/60 (.01667) rather than 60. When I changed the value everything worked.
My question is did I do something to cause stepconf to calculate the wrong value or is there a bug in stepconf related
to the calculations for the spindle speed setup?
####custom_postgui.hal
# Include your customized HAL commands here
# The commands in this file are run after the AXIS GUI (including PyVCP panel) starts
# **** Setup of spindle speed display using pyvcp -START ****
# **** Use ACTUAL spindle velocity from spindle encoder
# **** spindle-velocity bounces around so we filter it with lowpass
# **** spindle-velocity is signed so we use absolute compoent to remove sign
# **** ACTUAL velocity is in RPS not RPM so we scale it.
#setp scale.0.gain .01667 ( I replaced this line with the following line)
setp scale.0.gain 60
setp lowpass.0.gain 0.01
net spindle-velocity => lowpass.0.in
net spindle-rps-filtered <= lowpass.0.out
net spindle-rps-filtered => abs.0.in
net absolute-spindle-vel <= abs.0.out => scale.0.in
net scaled-spindle-vel <= scale.0.out => pyvcp.spindle-speed
Please Log in or Create an account to join the conversation.
23 Jul 2011 18:41 - 23 Jul 2011 19:00 #11776
by cmorley
Replied by cmorley on topic Re:Problem in Spindle Speed readout???
This is a bug. It's fixed in EMC 2.5.
Strangely you are the first report I remember of anyone complaining.
Thanks for the report and solution
Chris M
If there ever is a 2.4.7 its fixed there too now.
Strangely you are the first report I remember of anyone complaining.
Thanks for the report and solution
Chris M
If there ever is a 2.4.7 its fixed there too now.
Last edit: 23 Jul 2011 19:00 by cmorley.
Please Log in or Create an account to join the conversation.
26 Jul 2011 00:17 #11855
by acondit
Replied by acondit on topic Re:Problem in Spindle Speed readout???
Chris,
Thanks for fixing it in advance of report. You guys are good!!!
Alan
Thanks for fixing it in advance of report. You guys are good!!!
Alan
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds