On Thursday 28 April 2016 19:41:58 andy pugh wrote: > On 28 April 2016 at 23:29, Gene Heskett <[email protected]> wrote: > > Worst case, 18 u-s to do a dir reverse and one step then revert the > > dir. 12 u-s for dir_setup+dir_hold, and 6 more for the step=18. > > > > Grabbing a copy of kcalc, enter 18 as .000018, do a 1/x to get the > > max freq=55,555.5555555555556 or a but over 55 kilohertz. Drive > > claims it can do 200 kilohertz. driver is set for /8 microsrepping. > > Screw is a 16x5mm. > > > > So how fast can it go when the pulses are at 200 KHz? > > You don't need to consider direction changes when looking at top > speed. > > 48.7 IPM and a 5mm screw is 247 rpm. > x 8 microstepping and 200 steps per rev is 6.5kHz or 150 uS per step. > > The max step rate that the drive can handle is not relevant here, the > f-error is calculated internally to LinuxCNC. > > What do you get if you just wire motor-pos-cmd directly to > motor-pos-fb so that the step generator is not even part of the > f-error loop?
Up to load my weekly pilltainer and take tonight's pills. Hummm. In the hal file, the => and <= are AIUI, just helpers for us to understand what we wrote, but in fact the first "net netname signalname" is what sets the source of the signal, and if that "net netname" is used again, the signals named are all targets to deliver that first signal to, right? If thats the case, you just found it because it appears I have it out of the correct order in the halfile. But to get a better idea of where my scribbling went awry, I'll have to print what I have and attempt to correct it by referencing an axis that will run faster w/o throwing that error. The relevant section thats in error: =================== #******************* # AXIS Z #******************* setp pid.z.Pgain [AXIS_2]P setp pid.z.Igain [AXIS_2]I setp pid.z.Dgain [AXIS_2]D setp pid.z.bias [AXIS_2]BIAS setp pid.z.FF0 [AXIS_2]FF0 setp pid.z.FF1 [AXIS_2]FF1 setp pid.z.FF2 [AXIS_2]FF2 setp pid.z.deadband [AXIS_2]DEADBAND setp pid.z.maxoutput [AXIS_2]MAX_OUTPUT setp pid.z.error-previous-target true setp pid.z.maxerror .0015 net z-index-enable <=> pid.z.index-enable net z-enable => pid.z.enable ## to here? See below ## comment net z-pos-cmd => pid.z.command net z-vel-cmd => pid.z.command-deriv net z-pos-fb => pid.z.feedback net z-output => pid.z.output # Step Gen signals/setup setp hm2_5i25.0.stepgen.02.dirsetup [AXIS_2]DIRSETUP setp hm2_5i25.0.stepgen.02.dirhold [AXIS_2]DIRHOLD setp hm2_5i25.0.stepgen.02.steplen [AXIS_2]STEPLEN setp hm2_5i25.0.stepgen.02.stepspace [AXIS_2]STEPSPACE setp hm2_5i25.0.stepgen.02.position-scale [AXIS_2]STEP_SCALE setp hm2_5i25.0.stepgen.02.step_type 0 setp hm2_5i25.0.stepgen.02.control-type 1 setp hm2_5i25.0.stepgen.02.maxaccel [AXIS_2]STEPGEN_MAXACCEL setp hm2_5i25.0.stepgen.02.maxvel [AXIS_2]STEPGEN_MAXVEL setp hm2_5i25.0.gpio.009.invert_output true setp hm2_5i25.0.gpio.010.invert_output true # ---closedloop stepper signals--- ##added just in this msg, these 2 lines needs to move up net z-pos-cmd <= axis.2.motor-pos-cmd net z-vel-cmd <= axis.2.joint-vel-cmd net z-output <= hm2_5i25.0.stepgen.02.velocity-cmd net z-pos-fb <= hm2_5i25.0.stepgen.02.position-fb net z-pos-fb => axis.2.motor-pos-fb net z-enable <= axis.2.amp-enable-out net z-enable => hm2_5i25.0.stepgen.02.enable ============================= but I'll print it just to make sure the fixed order is correct. Back later as this can be checked without power on the steppers or spindle. Thanks Andy, you made me check something I thought was still boilerplate out of the original pncconfig construction a year ago. But it was duff, or my more recent edits were. Later & thanks. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
