Timer
23 Sep 2011 19:40 #13407
by piasdom
i have jog buttons for XYZ, and have a Reset_M124(glade) button for a script(below)
M123 resets M124 to zero. i find with no program running and i click reset, the
jog axis don't work, i have to use glade home-all or axis default buttons(-+)
i don't know if this is suppose to work like this, so i'm just letting ya'll know
M124
#!/bin/bash
COUNT=$(halcmd getp gladevcp.M124_count)
let "COUNT += 1"
halcmd setp gladevcp.M124_count $COUNT
exit 0
M123
#!/bin/bash
halcmd setp gladevcp.M124_count 0
exit 0
M123 resets M124 to zero. i find with no program running and i click reset, the
jog axis don't work, i have to use glade home-all or axis default buttons(-+)
i don't know if this is suppose to work like this, so i'm just letting ya'll know
M124
#!/bin/bash
COUNT=$(halcmd getp gladevcp.M124_count)
let "COUNT += 1"
halcmd setp gladevcp.M124_count $COUNT
exit 0
M123
#!/bin/bash
halcmd setp gladevcp.M124_count 0
exit 0
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds