loadusr -W xhc-hb04 -I xhc-hb04-layout1.ini -H # Home button net home halui.home-all <= xhc-hb04.button-home # Absolute position LCD net pos-x halui.axis.0.pos-feedback => xhc-hb04.x.pos-absolute net pos-y halui.axis.1.pos-feedback => xhc-hb04.y.pos-absolute net pos-z halui.axis.2.pos-feedback => xhc-hb04.z.pos-absolute net pos-a halui.axis.3.pos-feedback => xhc-hb04.a.pos-absolute # Relative position LCD net pos-rel-x halui.axis.0.pos-relative => xhc-hb04.x.pos-relative net pos-rel-y halui.axis.1.pos-relative => xhc-hb04.y.pos-relative net pos-rel-z halui.axis.2.pos-relative => xhc-hb04.z.pos-relative net pos-rel-a halui.axis.3.pos-relative => xhc-hb04.a.pos-relative # Jog axis selection button net jog-x axis.0.jog-enable <= xhc-hb04.jog.enable-x net jog-y axis.1.jog-enable <= xhc-hb04.jog.enable-y net jog-z axis.2.jog-enable <= xhc-hb04.jog.enable-z net jog-a axis.3.jog-enable <= xhc-hb04.jog.enable-a # Jog wheel for world mode net jog-max-velocity halui.max-velocity.value => xhc-hb04.jog.max-velocity net jog-speed xhc-hb04.jog.velocity => halui.jog-speed net jog-plus-x xhc-hb04.jog.plus-x => halui.jog.0.plus net jog-minus-x xhc-hb04.jog.minus-x => halui.jog.0.minus net jog-plus-y xhc-hb04.jog.plus-y => halui.jog.1.plus net jog-minus-y xhc-hb04.jog.minus-y => halui.jog.1.minus net jog-plus-z xhc-hb04.jog.plus-z => halui.jog.2.plus net jog-minus-z xhc-hb04.jog.minus-z => halui.jog.2.minus net jog-plus-a xhc-hb04.jog.plus-a => halui.jog.3.plus net jog-minus-a xhc-hb04.jog.minus-a => halui.jog.3.minus # Wheel for feedrate and spindle setp halui.feed-override.scale 0.01 net jog-counts => halui.feed-override.counts net jog-feed halui.feed-override.count-enable <= xhc-hb04.jog.enable-feed-override net jog-feed2 halui.feed-override.value => xhc-hb04.feed-override setp halui.spindle-override.scale 0.01 net jog-counts => halui.spindle-override.counts net jog-spindle halui.spindle-override.count-enable <= xhc-hb04.jog.enable-spindle-override net jog-spindle2 halui.spindle-override.value => xhc-hb04.spindle-override net spindle-rps motion.spindle-speed-cmd-rps => xhc-hb04.spindle-rps # RESET/ESTOP button net estop xhc-hb04.button-reset => halui.estop.activate # X=0, Y=0, Z=0 #net x0 halui.mdi-command-06 xhc-hb04.button-x0 #net y0 halui.mdi-command-07 xhc-hb04.button-y0 #net z0 halui.mdi-command-08 xhc-hb04.button-z0 #net origin halui.mdi-command-09 xhc-hb04.button-goto-zero