NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC AXIS Axis Lathe Simulator

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Axis Lathe Simulator

Axis Lathe Simulator 23 Jul 2012 14:09 #22357

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
I'm trying to set up the Axis Lathe Simulator to mimic my Hardinge CHCN so I can test run code. The spindle is limited to 2500 RPM and I need 6k... I've looked at all the files and danged if I can figure out where to up the limit. I've found the ramp speed for the spindle and upped it to a reasonable value.

Thanks
John
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 04:43 #22385

  • andypugh
  • andypugh's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 4135
  • Thank you received: 141
  • Karma: 129
BigJohnT wrote:
I've looked at all the files and danged if I can figure out where to up the limit

Have you looked to see what the limit2.0.max and .min values are? They are initialised to 1e20, but perhaps something else it accidentally writing to them?
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 05:08 #22386

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
I do know that limit2.0.maxv controls how fast the spindle revs up. I've played with that and increased how fast the spindle gets up to speed.

I've watched limit2.0.max and min and both stay at 1e+20 and -1e+20... must be some magic somewhere. If I put s2600 m3 in the MDI the speed will ramp up to 2500 on the pyvcp display then go to -25003.6

Thanks
John
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 05:28 #22390

  • andypugh
  • andypugh's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 4135
  • Thank you received: 141
  • Karma: 129
BigJohnT wrote:
I've watched limit2.0.max and min and both stay at 1e+20 and -1e+20... must be some magic somewhere. If I put s2600 m3 in the MDI the speed will ramp up to 2500 on the pyvcp display then go to -25003.6
What does halcmd show motion.spindle-speed-out say (and other related pins). That sounds like something, somewhere, is overflowing a signed-integer. Quite possibly inside PyVCP
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 05:38 #22392

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
In the lathe.xml the halpin spindle-speed has a max of 5000...

S3000 M3 gives me the following.
motion.spindle-speed-in ramps up then goes to -41.72592
motion.spindle-speed-out goes to 3000 instantly or pretty fast.
motion.spindle-speed-cmd-rps = 50
motion.spindle-speed-out-rps = 50

Looks like something is borked with motion.spindle-speed-in which is connected to spindle-rps-filtered signal.

John
Last Edit: 24 Jul 2012 05:40 by BigJohnT.
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 05:51 #22393

  • andypugh
  • andypugh's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 4135
  • Thank you received: 141
  • Karma: 129
BigJohnT wrote:
Looks like something is borked with motion.spindle-speed-in which is connected to spindle-rps-filtered signal.

That pin is fed from lowpass.0.0ut, but I can't find that. I think it is core_sim.hal but I can't find that at all in gitweb, very strangely.
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 06:10 #22395

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
The more I look at that config I think the problem is trying to use sim-encoder instead of sim-spindle. The sim-encoder might be limited by the servo period... I'm going to try and swap them out in a bit.

John
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 09:14 #22407

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
Yikes, I can't fix the Axis lathe sim as sim_spindle is in master... oh well I'll try it out locally.

John
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 10:04 #22408

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1335
  • Thank you received: 102
  • Karma: 129
If its any consolation John there is definitely something screwy going on with the lathe sim.

On the 2.5~pre on my test machine it is shown as 0 - 5000 rpm in the pyvcp widget but if you command anything higher than about 800 it goes to -833.7 and stays there.

Believe it or not I have never tried running the spindle for a simulation before, seemed no point, all I was interested in was the tool path plot.

Andys idea about overflowing a signed integer sounds likely, but none of the figures when multiplied by 60 for rps come near the overflow thresholds.
The administrator has disabled public write access.

Re:Axis Lathe Simulator 24 Jul 2012 11:01 #22411

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
Normally the spindle would be minor but I got the bug when I write a file on my desktop to just be able to run it in the sim and see that the tool path is correct before I send it to the lathe so the spindle commands are there also. I wonder if it has something to do with latency or something. In any case the sim_spindle.comp works perfect.

John
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 1.210 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.