So far, I have interesting results with following HAL configuration using "scale" and "limit1" components.
# Jog wheels section net jog-enable halui.mode.is-manual loadrt limit1 count=2 addf limit1.0 servo-thread addf limit1.1 servo-thread loadrt scale count=2 addf scale.0 servo-thread addf scale.1 servo-thread setp limit1.0.min 0.01 setp limit1.0.max 0.1 setp scale.0.offset -0.03 setp scale.0.gain 0.001 setp limit1.1.min 0.01 setp limit1.1.max 0.1 setp scale.1.offset -0.03 setp scale.1.gain 0.001 # MPG X PRU encoder setp hpg.encoder.00.chan.00.A-pin 2 #930 ENCyI setp hpg.encoder.00.chan.00.B-pin 5 #927 eQ0B setp hpg.encoder.00.chan.00.counter-mode 3 #Quadrature x1 count mode (HAL encoder x1 mode) net jog-counts-x hpg.encoder.00.chan.00.rawcounts => axis.0.jog-counts net jog-enable => axis.0.jog-enable setp axis.0.jog-vel-mode 1 net jx1 hpg.encoder.00.chan.00.velocity-abs => scale.0.in net jx2 scale.0.out => limit1.0.in net jx3 limit1.0.out => axis.0.jog-scale # MPG Z PRU encoder setp hpg.encoder.00.chan.01.A-pin 0 #931 ENCyA setp hpg.encoder.00.chan.01.B-pin 1 #929 ENCyB setp hpg.encoder.00.chan.01.counter-mode 3 #Quadrature x1 count mode (HAL encoder x1 mode) net jog-counts-z hpg.encoder.00.chan.01.rawcounts => axis.2.jog-counts net jog-enable => axis.2.jog-enable setp axis.2.jog-vel-mode 1 net jz1 hpg.encoder.00.chan.01.velocity-abs => scale.1.in net jz2 scale.1.out => limit1.1.in net jz3 limit1.1.out => axis.2.jog-scale Le 2016-04-10 00:22, Frederic Rible a écrit : > Hello, > > For my lathe control panel project, I have integrated 2 MPG with 100ppr. > (see > http://blog.f1oat.org/2016/03/21/emco-turn-120p-machinekit-control-panel/) > > I would like to drive the size of each jog step according to MPG > rotation velocity. > The idea is to have 0.01mm steps at low speed, an then increase up to > 0.1mm steps when rotation is fast. > I have added jog wheel velocity calculation in my MPG driver. > Now I need to use it to drive the step size (axis.0.jog-scale) > > Any experience to share? > Thanks. > Frederic. > > > ------------------------------------------------------------------------------ > 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! http://pubads.g.doubleclick.net/ > gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532 > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ 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! http://pubads.g.doubleclick.net/ gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532 _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
