Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # EMC2 hexapod DMM servos step mode
- loadrt genhexkins
- loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
- loadrt probe_parport
- loadrt hal_parport cfg="0x378 out 0xc880 out"
- setp parport.0.reset-time 3000
- loadrt stepgen step_type=0,0,0,0,0,0
- addf parport.0.read base-thread
- addf parport.1.read base-thread
- addf stepgen.make-pulses base-thread
- addf parport.0.write base-thread
- addf parport.0.reset base-thread
- addf parport.1.write base-thread
- addf stepgen.capture-position servo-thread
- addf motion-command-handler servo-thread
- addf motion-controller servo-thread
- addf stepgen.update-freq servo-thread
- #net spindle-cmd <= motion.spindle-speed-out
- net ydir => parport.0.pin-06-out
- setp parport.0.pin-07-out-invert 1
- net ystep => parport.0.pin-07-out
- setp parport.0.pin-07-out-reset 1
- net adir => parport.0.pin-08-out
- setp parport.0.pin-09-out-invert 1
- net astep => parport.0.pin-09-out
- setp parport.0.pin-09-out-reset 1
- net zdir => parport.0.pin-16-out
- setp parport.0.pin-17-out-invert 1
- net zstep => parport.0.pin-17-out
- setp parport.0.pin-17-out-reset 1
- net cdir => parport.0.pin-04-out
- setp parport.0.pin-05-out-invert 1
- net cstep => parport.0.pin-05-out
- setp parport.0.pin-05-out-reset 1
- net xdir => parport.0.pin-02-out
- setp parport.0.pin-03-out-invert 1
- net xstep => parport.0.pin-03-out
- setp parport.0.pin-03-out-reset 1
- net bdir => parport.0.pin-14-out
- setp parport.0.pin-01-out-invert 1
- net bstep => parport.0.pin-01-out
- setp parport.0.pin-01-out-reset 1
- #net home-x <= parport.0.pin-10-in
- #net home-y <= parport.0.pin-11-in
- #net home-z <= parport.0.pin-12-in
- #net estop-ext <= parport.0.pin-13-in
- #net home-a <= parport.1.pin-10-in
- #net home-b <= parport.1.pin-11-in
- #net home-c <= parport.1.pin-12-in
- setp stepgen.0.position-scale [AXIS_0]SCALE
- setp stepgen.0.steplen 1
- setp stepgen.0.stepspace 0
- setp stepgen.0.dirhold 25000
- setp stepgen.0.dirsetup 25000
- setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL
- net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd
- net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb
- net xstep <= stepgen.0.step
- net xdir <= stepgen.0.dir
- net xenable axis.0.amp-enable-out => stepgen.0.enable
- #net home-x => axis.0.home-sw-in
- setp stepgen.1.position-scale [AXIS_1]SCALE
- setp stepgen.1.steplen 1
- setp stepgen.1.stepspace 0
- setp stepgen.1.dirhold 25000
- setp stepgen.1.dirsetup 25000
- setp stepgen.1.maxaccel [AXIS_1]STEPGEN_MAXACCEL
- net ypos-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd
- net ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb
- net ystep <= stepgen.1.step
- net ydir <= stepgen.1.dir
- net yenable axis.1.amp-enable-out => stepgen.1.enable
- #net home-y => axis.1.home-sw-in
- setp stepgen.2.position-scale [AXIS_2]SCALE
- setp stepgen.2.steplen 1
- setp stepgen.2.stepspace 0
- setp stepgen.2.dirhold 25000
- setp stepgen.2.dirsetup 25000
- setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
- net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
- net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
- net zstep <= stepgen.2.step
- net zdir <= stepgen.2.dir
- net zenable axis.2.amp-enable-out => stepgen.2.enable
- #net home-z => axis.2.home-sw-in
- setp stepgen.3.position-scale [AXIS_3]SCALE
- setp stepgen.3.steplen 1
- setp stepgen.3.stepspace 0
- setp stepgen.3.dirhold 25000
- setp stepgen.3.dirsetup 25000
- setp stepgen.3.maxaccel [AXIS_3]STEPGEN_MAXACCEL
- net apos-cmd axis.3.motor-pos-cmd => stepgen.3.position-cmd
- net apos-fb stepgen.3.position-fb => axis.3.motor-pos-fb
- net astep <= stepgen.3.step
- net adir <= stepgen.3.dir
- net aenable axis.3.amp-enable-out => stepgen.3.enable
- #net home-a => axis.3.home-sw-in
- setp stepgen.4.position-scale [AXIS_4]SCALE
- setp stepgen.4.steplen 1
- setp stepgen.4.stepspace 0
- setp stepgen.4.dirhold 25000
- setp stepgen.4.dirsetup 25000
- setp stepgen.4.maxaccel [AXIS_4]STEPGEN_MAXACCEL
- net bpos-cmd axis.4.motor-pos-cmd => stepgen.4.position-cmd
- net bpos-fb stepgen.4.position-fb => axis.4.motor-pos-fb
- net bstep <= stepgen.4.step
- net bdir <= stepgen.4.dir
- net benable axis.4.amp-enable-out => stepgen.4.enable
- #net home-b => axis.4.home-sw-in
- setp stepgen.5.position-scale [AXIS_5]SCALE
- setp stepgen.5.steplen 1
- setp stepgen.5.stepspace 0
- setp stepgen.5.dirhold 25000
- setp stepgen.5.dirsetup 25000
- setp stepgen.5.maxaccel [AXIS_5]STEPGEN_MAXACCEL
- net cpos-cmd axis.5.motor-pos-cmd => stepgen.5.position-cmd
- net cpos-fb stepgen.5.position-fb => axis.5.motor-pos-fb
- net cstep <= stepgen.5.step
- net cdir <= stepgen.5.dir
- net cenable axis.5.amp-enable-out => stepgen.5.enable
- #net home-c => axis.5.home-sw-in
- net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
- #net estop-out <= iocontrol.0.user-enable-out
- #net estop-ext => iocontrol.0.emc-enable-in
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement