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?

John


> -----Original Message-----
> From: Gene Heskett [mailto:ghesk...@shentel.net]
> Sent: September-11-21 7:01 AM
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Serial Port access
> 
> On Saturday 11 September 2021 05:02:47 John Dammeyer wrote:
> 

> > I'm still waiting for mine to arrive.  Latest is that it arrived at
> > Canada Post in Toronto.  I'm going to guess it's going via surface
> > from there to here.  So another week.
> 
> I take it you are sorta out in the toulies then? I got mine from ebay,
> bought 4 of them knowing the limited lifetime of the silicon hose the
> the pump squeezes with rollers. Its now been close to 2 years & about a
> gallon of koolmist thru it, and 3 of them are still in the bag. About $9
> usd a copy on ebay.

> But that was then, now I'll be 87 in a couple weeks. And alone again.
> 

You're more than 20 years further along on this than I am.


> > Not sure how to do sliders yet on the AXIS interface.
> 
> Piece of cake John, the pyvcp .xml file snippet that draws them:
> but there's a wagon load of stuff above it too. :o)
> ========================
>   <labelframe text= "mist motor speed">
>         <vbox>
>           <hbox>
>         <spinbox>
>               <width>("5")</width>
>                   <halpin>"mist-on-adj"</halpin>
>           <min_>.000</min_>
>           <max_>.025</max_>
>           <initval>.005</initval>
>           <resolution>0.001</resolution>
>           <format>".3f"</format>
>           <font>("Helvitica",12)</font>
>           <param_pin>0</param_pin>
>         </spinbox>
>         <spinbox>
>                   <width>("5")</width>
>                   <halpin>"mist-off-adj"</halpin>
>               <min_>.000</min_>
>               <max_>.250</max_>
>               <initval>.100</initval>
>               <resolution>0.001</resolution>
>               <format>".3f"</format>
>               <font>("Helvitica",12)</font>
>               <param_pin>0</param_pin>
>         </spinbox>
>       </hbox>
>     </vbox>
>   </labelframe>
> ==============
> then in postgui.hal:
> ================
> # for mister pump motor speed ctrl
> net mister-spdon        <= pyvcp.mist-on-adj  => timedelay.3.off-delay
> net mister-spdoff       <= pyvcp.mist-off-adj => timedelay.3.on-delay
> ================
> then in the main.hal:
> ================
> 6040-5i25-7i76-rs485.hal:addf  xor2.1                servo-thread
> # turns mister on/off
> 6040-5i25-7i76-rs485.hal:net mist-on => xor2.1.in0
> # turn on pump motor speed control
> 6040-5i25-7i76-rs485.hal:net osc-fdbck  <= xor2.1.out => timedelay.3.in
> # make speed timer oscillator
> 6040-5i25-7i76-rs485.hal:net mister-out  <= timedelay.3.out => xor2.1.in1
> ================
> and:
> ================
> loadrt timedelay    count=4 #.3 is mist motor timer
> loadrt xor2         count=2 #.1 one is mist-ctl
> 6040-5i25-7i76-rs485.hal:addf  timedelay.3  servo-thread
> # is mist oscillator
> 6040-5i25-7i76-rs485.hal:net osc-fdbck  <= xor2.1.out => timedelay.3.in
> # make speed timer oscillator
> 6040-5i25-7i76-rs485.hal:net mister-out  <= timedelay.3.out => xor2.1.in1
> ================
> The xor2.1 is the on-off switch for te oscillator, interrupting the
> feedback path when the mist button is off
> 
> Note too, that depending on what else you already have in the .hal file,
> the .number. may change.
> 



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to