On Thursday 14 November 2013 14:48:53 Gene Heskett did opine:

> On Thursday 14 November 2013 10:24:42 Gene Heskett did opine:
> > I recall when I had it work 5 or 6 days ago, that I had a dro display
> > supered over the upper left corner on the image in the backplot
> > screen, but now its missing.
> > 
> > Where should I look?
> > 
> > Thanks
> > 
> > Cheers, Gene
> 
> I found this bit of twaddle in Caa3axis.hal
> 
> #CamView pins
> #for correct DRO we need to SUBB tool.length_offset from pos-relative
> loadrt sum2 count=3
> addf sum2.0 servo-thread
> addf sum2.1 servo-thread
> addf sum2.2 servo-thread
> setp sum2.0.gain1 -1
> setp sum2.1.gain1 -1
> setp sum2.2.gain1 -1
> #net sum20in0 halui.axis.0.pos-relative => sum2.0.in0
> #net sum21in0 halui.axis.1.pos-relative => sum2.1.in0
> #net sum22in0 halui.axis.2.pos-relative => sum2.2.in0
> net sum20in1 halui.tool.length_offset.x => sum2.0.in1
> net sum21in1 halui.tool.length_offset.y => sum2.1.in1
> net sum22in1 halui.tool.length_offset.z => sum2.2.in1
> #empty net to have DRO happy
> net sum20out sum2.0.out
> net sum21out sum2.1.out
> net sum22out sum2.2.out
> 
> I have not such in my-mill-atom-2.hal, but this looks like a good excuse
> to learn how to write a .hal file using names as mine already uses some
> enumerated sum2.s.  Call them dro-X dro-Y dro-Z and dro-A maybe.  I'll
> putz with it after a nap.  That should give you folks time enough to
> tell me its the wrong tree to bark up. :)
> 
> 
> Cheers, Gene

Anyway, I incorporated this in my custom-postgui.hal, but made it for 4 
axis's since I have a rotary table usually bolted on as A, and all those 
additions show up nicely in the hal configuration display, including the 
proper position data when I "move" all 4 with motor power off (all 
steppers)

But there is no dro display over the camview window.

Advice?

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

Best if used before date on carton.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to