On Tuesday 24 October 2017 15:20:33 jrmitchellj . wrote:

> I am working on a Jet JTM-2 (Bridgeport clone from Taiwan).
> Re-fitted with a 3hp 3ph spindle motor, and axis kits for motorizing
> X, Y, & Z from Elrod Machine Works in Arizona.
> Originally was going to build them myself, but thought about the hours
> required, and felt the Elrod kits were well engineered, and worth the
> price!
>
> I do have a few widgets in a pyvcp, but 2/3rds of the space is still
> open, so I would be interested in what you have done.
>
> Ray
>
Ok, two .xml's here, first one is from the GO704, 2nd one is from the pi 
running an old sheldon 11x36.

Put them in the [DISPLAY] section of the .ini file as:
PYVCP                           = pyvcp-panel.xml
for the mill
or
PYVCP                           = pyvcp-panel-tach-status.xml
for the lathe version.

There's toys you might not need in both, but while you'll have to hook 
them up with 'net' this and 'net' that, both will or should load and 
display by putting then into the ini files, then hooked up in the 
postgui.hal file.  The one for the lathe has tally's for the jog dials 
too. Having i/o to throw away on the lathe, 72 if all used, the 
temptation to add the gingerbread and useful eye candy was 
overpowering. :)  The dials, $20/copy from mpja.com, are handier than 
bottled beer, but in making them work, they are also at least half the 
main .hal file. I run that stuff in a much slower thread, about 100hz in 
deference to the pi's more limited speed, and they work very very well, 
allowing me to dial in the last .0002", more accurate than the lathe is 
with 70 years of use & bed wear on it.  The ball screws are cheap 
Chinese, need the nuts restuffed with balls about a thou bigger etc.  
But it cut the square threads on a $485 Bartlien cut rifled SS barrel to 
convert old meat in the pot from an Ackley-06 to a 6.5 Creedmoor just 
about 6 weeks back. Shoots well so far but I've not worked up a tack 
driver load yet for Hornady's new 143 gr ELD-X bullet either. Really 
long shots don't present themselves here in WV's right up in your face 
hills anyway. The last deer I ate was about 10 feet.

We do have a 1000 yard range about 25 miles from here though. Its 1000 
yard line of sight is actually on top of all the short range stuff, but 
about 100 feet above everything else. Whitehorse is the name they gave 
it.

Thanks again Ray.

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)
Genes Web page <http://geneslinuxbox.net:6309/gene>
<?xml version='1.0' encoding='UTF-8'?>

<pyvcp>
<!-- 
Include your PyVCP panel here.
The contents of this file will not be overwritten when you run stepconf again.
-->
<!-- the RPM meter -->
  <hbox>
    <relief>RAISED</relief>
    <bd>2</bd>
    <meter>
      <halpin>"spindle_rpm"</halpin>
      <text>"Spindle"</text>
      <subtext>"RPM"</subtext>
      <size>240</size>
      <min_>0</min_>
      <max_>2750</max_>
      <majorscale>500</majorscale>
      <minorscale>100</minorscale>
      <region1>0,2250,"green"</region1>
      <region2>2250,2600,"yellow"</region2>
      <region3>2600,2750,"red"</region3>
    </meter>
  </hbox>

  <hbox>
    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"SPWR"</text>
        <font>("Helvetica",8)</font>
      </label>
      <rectled>
        <halpin>"on-led"</halpin>
        <height>"6"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>

    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"FWD"</text>
        <font>("Helvetica",8)</font>
      </label>
      <rectled>
        <halpin>"fwd-led"</halpin>
        <height>"6"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>

    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"REV"</text>
        <font>("Helvetica",8)</font>
      </label>
      <rectled>
        <halpin>"rev-led"</halpin>
        <height>"6"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>
  </hbox>

<!-- The following is added to your .xml file inside the <pyvcp> </pyvcp> tags --> 
<!-- here we have to re-invent the camview missing stuffs -->
  <labelframe text="Calibrate machine">
    <hbox>
      <button>
        <halpin>"checkbutton1"</halpin>
        <text>"CamSW"</text>
        <font>('Helvetica',10)</font>
      </button>
      <button>
        <halpin>"button1"</halpin>
        <text>"CamStor"</text>
        <font>('Helvetica',10)</font>
      </button>
    </hbox>
    <rectled>
      <halpin>"camactive"</halpin>
      <height>"6"</height>
      <width>"150"</width>
      <on_color>"green"</on_color>
      <off_color>"red"</off_color>
    </rectled>	
  </labelframe>
  
  <labelframe text="Center machine">
    <vbox>
      <hbox>
        <button>
          <halpin>"button2"</halpin>
          <text>"CamCtr3"</text>
          <font>('Helvitica',10)</font>
        </button>
        <button>
          <halpin>"button3"</halpin>
          <text>"CamCtr4"</text>
          <font>('Helvetica',10)</font>
        </button>
      </hbox>
      <hbox>
		<rectled>
          <halpin>"camcentered3"</halpin>
          <height>"6"</height>
          <width>"80"</width>
          <on_color>"green"</on_color>
          <off_color>"red"</off_color>
        </rectled>
        <rectled>
          <halpin>"camcentered4"</halpin>
          <height>"6"</height>
          <width>"80"</width>
          <on_color>"green"</on_color>
          <off_color>"red"</off_color>
        </rectled>
      </hbox>
    </vbox>
  </labelframe>

<!-- and last, the alignment stuff -->

  <labelframe text="Align Sheet">
    <button>
      <halpin>"align-start"</halpin>
      <text>"Align Start"</text> 
      <font>('Helvetica',8)</font>
    </button>
    <rectled>
      <halpin>"align-enabled"</halpin>
      <height>"6"</height>
      <width>"225"</width>
      <on_color>"green"</on_color>
      <off_color>"red"</off_color>
    </rectled>
  </labelframe>
  <labelframe text="Mark x and y">
    <vbox>
      <hbox>
        <button>
          <halpin>"align-x"</halpin>
          <text>"  Align X  "</text> 
          <font>('Helvetica',8)</font>
        </button>
        <button>
          <halpin>"align-y"</halpin>
          <text>"  Align Y  "</text> 
          <font>('Helvetica',8)</font>
        </button>
      </hbox>
      <hbox>
		<rectled>
          <halpin>"aligned-to_x"</halpin>
          <height>"6"</height>
          <width>"99"</width>
          <on_color>"green"</on_color>
          <off_color>"red"</off_color>
        </rectled>
        <rectled>
          <halpin>"aligned-to_y"</halpin>
          <height>"6"</height>
          <width>"99"</width>
          <on_color>"green"</on_color>
          <off_color>"red"</off_color>
        </rectled>
      </hbox>
    </vbox>
  </labelframe>

  <vbox>
    <hbox>
      <button>
        <halpin>"clear-offset"</halpin>
        <text>" Clear Offsets "</text> 
        <font>('Helvetica',8)</font>
      </button>
    </hbox>
  </vbox>
</pyvcp>
<?xml version='1.0' encoding='UTF-8'?>

<pyvcp>
<!--
Include your PyVCP panel here.
The contents of this file will not be overwritten when you run stepconf
again. FWIW, its not been run yet.

This is the tachometer and the three status buttons for overall motor
power,  and the spindles direction, if running.  The hal file is going
to be reconfigured so that when the machine is enabled, signals will be
sent to turn on 2 SSR's, enabling the 127 volts for the xy motors and
one side of the vfd, 254 feed with one of them, and the other leg of the
254 volt to the vfd with the 2nd one.  Yet to be wired up, but might as
well have it ready when the SSR's are ready to be put to work. Wired up
and controlling all motor power now.  This must be executed before the
postgui.hal that hooks these hal-pins up.
-->
<!-- the RPM meter -->
  <hbox>
    <relief>RAISED</relief>
    <bd>2</bd>
    <meter>
      <halpin>"spindle_rpm"</halpin>
      <text>"Spindle"</text>
      <subtext>"RPM"</subtext>
      <size>240</size>
      <min_>0</min_>
      <max_>1500</max_>
      <majorscale>200</majorscale>
      <minorscale>50</minorscale>
      <region1>0,750,"green"</region1>
      <region2>750,1000,"yellow"</region2>
      <region3>1000,1500,"red"</region3>
    </meter>
  </hbox>
<!-- End of the tach dial -->
<!-- start of spindle status -->
  <hbox>
    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"MOTPWR"</text>
        <font>("Helvetica",10)</font>
      </label>
      <rectled>
        <halpin>"on-led"</halpin>
        <height>"12"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>

    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"FWD"</text>
        <font>("Helvetica",10)</font>
      </label>
      <rectled>
        <halpin>"fwd-led"</halpin>
        <height>"12"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>

    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"REV"</text>
        <font>("Helvetica",10)</font>
      </label>
      <rectled>
        <halpin>"rev-led"</halpin>
        <height>"12"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>
  </hbox>
<!-- end of spindle status -->
<!-- start of spindle gearshift status -->
  <hbox>
    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"LOWER"</text>
        <font>("Helvetica",10)</font>
      </label>
      <rectled>
        <halpin>"gear-lower-led"</halpin>
        <height>"12"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>

    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"GOOD"</text>
        <font>("Helvetica",10)</font>
      </label>
      <rectled>
        <halpin>"gear-good-led"</halpin>
        <height>"12"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>

    <vbox>
      <relief>RAISED</relief>
      <bd>2</bd>
      <label>
        <text>"HIGHER"</text>
        <font>("Helvetica",10)</font>
      </label>
      <rectled>
        <halpin>"gear-higher-led"</halpin>
        <height>"12"</height>
        <width>"72"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
    </vbox>
  </hbox>
<!-- end of spindle gearshift status -->
<!-- start of jog size per click display -->
  <hbox>
    <vbox>
      <label>
        <text>"X-Jog Size"</text>
        <font>("Helvetica",12)</font>
      </label>
     <rectled>
        <halpin>"x-rng-active"</halpin>
        <height>"8"</height>
        <width>"115"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
      <number>
        <relief>"raised"</relief>
        <bd>2</bd>
        <padx>17</padx>
        <halpin>"X-Jog"</halpin>
        <font>("Helvetica",18)</font>
        <format>".5f"</format>
      </number>
    </vbox>
    <vbox>
      <label>
	<text>"Z-Jog Size"</text>
        <font>("Helvetica",12)</font>
      </label>
      <rectled>
        <halpin>"z-rng-active"</halpin>
        <height>"8"</height>
        <width>"115"</width>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </rectled>
      <number>
        <relief>"raised"</relief>
        <bd>2</bd>
        <padx>17</padx>
        <halpin>"Z-Jog"</halpin>
        <font>("Helvetica",18)</font>
        <format>".5f"</format>
      </number>
<!-- And many thanks to Chris Morely, this  now works as advertised.
      <multilabel>
        <legends>["Label1", "Label2", "Label3", "Label4", "Label5", "Label6"]</legends>
        <font>("Helvetica",20)</font>
        <disable_pin>False</disable_pin>
      </multilabel> -->
    </vbox>
  </hbox>
</pyvcp>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to