On Saturday 11 September 2021 13:33:30 John Dammeyer wrote: > Hi Gene, > On Vancouver Island so other end of the country and about 4 days by > road if one is not driving 24/7. > > Thanks for the code fragment. Very helpful. > > I do have two buttons > > # **** Tag buttons **** > net remote-rapid-to-Z-home halui.mdi-command-16 <= > pyvcp.rapid-to-Z-home net remote-rapid-to-XY-home halui.mdi-command-17 > <= pyvcp.rapid-to-XY-home > > And they are coupled to the system in the .INI file along with the > pendant buttons as #16 and #17 in the list to create the G-Code for > motion. > > [HALUI] > # These are the commands for the HB04 and PyVCP screen buttons. > # a halui hal pin is created for each MDI_COMMAND below > # halui.mdi-command-00, halui.mdi-command-01,... etc > # > MDI_COMMAND=G0 X0 Y0 Z0 > MDI_COMMAND=(debug, example: mdi-01) > MDI_COMMAND=(debug, example: mdi-02) > #03 M110: clears notifications > MDI_COMMAND=M110 > MDI_COMMAND=(debug, example: mdi-04) > MDI_COMMAND=(debug, example: mdi-05) > MDI_COMMAND=(debug, example: mdi-06) > #07 M101: example print to stdout > MDI_COMMAND=M101 > MDI_COMMAND=(debug, example: mdi-08) > MDI_COMMAND=(debug, example: mdi-09) > MDI_COMMAND=(debug, example: mdi-10) > MDI_COMMAND=(debug, example: mdi-11) > #12 Set current physical X position to be 0 > MDI_COMMAND= G10 L20 P0 X0 > #13 Set current physical Y position to be 0 > MDI_COMMAND= G10 L20 P0 Y0 > #14 Set current physical Z position to be 0 > MDI_COMMAND= G10 L20 P0 Z0 > #15 Set current physical A position to be 0 > MDI_COMMAND= G10 L20 P0 A0 > # 16 pyVCP button Full speed to Z0 > MDI_COMMAND= G0 Z0 > MDI_COMMAND= G0 X0 Y0 > > If I understand the HAL file code then your mister is totally > controlled by the slider. No simple button for ON/OFF?
On/Off is the mister checkmark. Perhaps my grepping failed? try this: gene@sixty40:~/linuxcnc/configs/6040-5i25-7i76-rs485$ grep mist * 6040-5i25-7i76-rs485.hal:loadrt xor2 count=2 #2nd one is mist-ctl 6040-5i25-7i76-rs485.hal:loadrt and2 names=and-prb1,and-prb2,mist-ctl 6040-5i25-7i76-rs485.hal:addf xor2.1 servo-thread # turns mister on/off 6040-5i25-7i76-rs485.hal:addf timedelay.3 servo-thread # mist oscillator 6040-5i25-7i76-rs485.hal:# output for coolant-mist air ctrl - WORKS! Valve coil gets HOT 6040-5i25-7i76-rs485.hal:net mist-on <= iocontrol.0.coolant-mist => hm2_5i25.0.7i76.0.0.output-01 <--this one? 6040-5i25-7i76-rs485.hal:# turns on tool mister air valv, and supplies pump 12 volts 6040-5i25-7i76-rs485.hal:net mist-on => xor2.1.in0 # turn on pump motor speed control 6040-5i25-7i76-rs485.hal:net mister-out <= timedelay.3.out => xor2.1.in1 6040-5i25-7i76-rs485.hal:net mister-out => hm2_5i25.0.gpio.024.out # to pump pwr control That whole thing: #*************************************************************** # output for coolant-mist air ctrl - WORKS! Valve coil gets HOT net mist-on <= iocontrol.0.coolant-mist => hm2_5i25.0.7i76.0.0.output-01 # turns on tool mister air valv, and supplies pump 12 volts net mist-on => xor2.1.in0 # turn on pump motor speed control net osc-fdbck <= xor2.1.out => timedelay.3.in # make speed timer oscillator setp hm2_5i25.0.gpio.024.is_output true net mister-out <= timedelay.3.out => xor2.1.in1 net mister-out => hm2_5i25.0.gpio.024.out # to pump pwr control # note, get pump power from output of relay driven by 1st line above. # Otherwise pump runs when lcnc off/ stopped/shut down #*************************************************************** that should help. Take care, John > > Note too, that depending on what else you already have in the .hal > > file, the .number. may change. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users