- Posts: 257
- Thank you received: 128
Please Log in or Create an account to join the conversation.
Based on the feedback from PCW I reconfigured the servo drives and updated my INI file so that I now have 10000 steps per revolution of the servo drives and it really made things noticeable smoother which I had not expected.1000 steps per turn is 5u per step which is pretty crude
I would chose a number around 10x higher
#Servo drive fault handling
net x-drive-fault => joint.0.amp-fault-in <= hm2_7i96s.0.7i84.0.0.input-16-not
net y-drive-fault => joint.1.amp-fault-in <= hm2_7i96s.0.7i84.0.0.input-17-not
net z-drive-fault => joint.2.amp-fault-in <= hm2_7i96s.0.7i84.0.0.input-18-not
With e-stop, steps and alarms sorted I became a little more confident in starting to push the servos a bit so I hooked up the physical buttons for jogging, run/step, pause/resume.loadrt estop_latch
loadrt oneshot count=2
addf estop-latch.0 servo-thread
addf oneshot.0 servo-thread
addf oneshot.1 servo-thread
setp oneshot.0.width 1
setp oneshot.1.width 1
#Automatically reset e-stop in UI and any fault codes on the drives
net reset-trig oneshot.0.in <= hm2_7i96s.0.7i84.0.0.input-00
net reset-ui oneshot.0.out => halui.estop.reset hm2_7i96s.0.7i84.0.0.output-11 hm2_7i96s.0.7i84.0.0.output-12 hm2_7i96s.0.7i84.0.0.output-13
#Latching e-stop function
net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out
net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in
net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset
net remote-estop estop-latch.0.fault-in <= hm2_7i96s.0.7i84.0.0.input-00-not
#When software e-stop is detected momentarily break e-stop circuit to trigger safety relay requiring external reset
net relay-in oneshot.1.in <= estop-latch.0.fault-out
net relayout oneshot.1.out-not => hm2_7i96s.0.7i84.0.0.output-00
source run_pause.hal
I found a code example here on the forum by Nebur for synchronizing the physical jog speed with the setting in the Axis GUI. My plan is to use Probe Basic so I hope something similar can realized for the GUI too. If anyone has any input here it would be much appreciated image missing /media/kunena/emoticons/smile.pngsetp halui.axis.jog-speed 100
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.