# Include your customized HAL commands here # The commands in this file are run after the GUI starts and has the opportunity to create the needed pins # Pins on the left come from the base HAL file # Pins on the right come from the GUI, i.e. tormach.foo-bar # P3 pin 14 gpio 001 #setp hm2_5i25.0.gpio.001.is_output 1 #setp hm2_5i25.0.gpio.001.is_opendrain 0 #net coolant-flood tormach.coolant => hm2_5i25.0.gpio.001.out #net coolant-flood-io iocontrol.0.coolant-flood => tormach.coolant-iocontrol # Spindle net spindle-on tormach.spindle => hm2_5i25.0.stepgen.02.enable net spindle-io-control motion.spindle-on => tormach.spindle-iocontrol # this connects the GUI to the signals from the milljogtranslator/shuttlexpress net sxp.xen-button => tormach.jog-axis-x-enabled net sxp.yen-button => tormach.jog-axis-y-enabled net sxp.zen-button => tormach.jog-axis-z-enabled net sxp.aen-button => tormach.jog-axis-a-enabled net sxp.step-button => tormach.jog-step-button net sxp.jog-ring-speed-signed => tormach.jog-ring-speed-signed net sxp.selected-axis => tormach.jog-ring-selected-axis net sxp.counts-smoothed => tormach.jog-counts net sxp.gui_step_index <= tormach.jog-gui-step-index net sxp.is_metric <= tormach.jog-is-metric # spindle RPM during program execution comes from encoder net spindle-velocity => tormach.spindle-speed-out # GUI sets tool changer type in lathe tool changer comp net gui-tool-changer-type tormachltc.0.tool-changer-type => tormach.tool-changer-type # GUI tells tool changer comp when operator has completed tool change net gui-manual-tool-changed tormachltc.0.manual-tool-changed => tormach.manual-tool-changed # GUI needs to know when tool change is in progress for managing manual tool changer net tool-change-start => tormach.tool-change # GUI needs tool_prepare number to display to operator on manual tool change net tool-prep-number-to-comp => tormach.tool-prep-number # gui sets whether we are using a high speed pulley (5c) or low speed (D1-4) # connect spindle range button to hal gearchange pin net spindle-range tormach.spindle-range => gearchange.0.sel net spindle-range-alarm tormach.spindle-range-alarm => gearchange.0.alarm # door switch status #net door-switch-status => tormach.door-switch #net door-switch-in => tormach.door-switch # following line turns door switch Green(0) or yellow(1) setp tormach.door-switch 0 # limit switch status #setp tormach.limit-switch 1 net limit-switch-in => tormach.home-switch net limit-switch-enable => tormach.home-switch-enable # collet closer status #net dout-02 => tormach.collet-closer-status # raw count from spindle encoder net spindle-encoder-count hm2_5i25.0.encoder.00.count => tormach.encoder-count net spindle-phase-A => tormach.encoder-a net spindle-phase-B => tormach.encoder-b net spindle-phase-Z => tormach.encoder-z net machine-ok => tormach.machine-ok # Mesa card watchdog net hm2_5i25.0.watchdog.has-bit => tormach.mesa-watchdog-has-bit loadrt time addf time.0 servo-thread net prog-running prog-not-idle.in <= halui.program.is-idle net cycle-timer time.0.start <= prog-not-idle.out net cycle-seconds tormach.cycle-time-seconds <= time.0.seconds net cycle-minutes tormach.cycle-time-minutes <= time.0.minutes net cycle-hours tormach.cycle-time-hours <= time.0.hours net motion-program-line tormach.motion-program-line <= motion.program-line net motion-next-program-line tormach.motion-next-program-line <= motion.next-program-line net motion-completed-program-line tormach.motion-completed-program-line <= motion.completed-program-line # USBIO net usbio-enabled tormach.usbio-enabled => usbio.enabled net dig-out-5 tormach.usbio-output-0 net dig-out-6 tormach.usbio-output-1 net dig-out-7 tormach.usbio-output-2 net dig-out-8 tormach.usbio-output-3 net dig-in-5 tormach.usbio-input-0 net dig-in-6 tormach.usbio-input-1 net dig-in-7 tormach.usbio-input-2 net dig-in-8 tormach.usbio-input-3