Re: [Emc-users] No response to jog data in

2017-03-13 Thread Gene Heskett
On Monday 13 March 2017 16:53:35 Sebastian Kuzminsky wrote:

> We have a pair of tests in the test suite that verify wheel jogging of
> joints and axes.
>
> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=tree;f=tests/motion;h=
>7d4b07c4062a924573564076657b7ffb57a990d3;hb=HEAD
>
> And here's how the HAL circuitry is hooked up in the axis case (the
> joint case is similar):
>
> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=tests/motion/jo
>gwheel-axis/postgui.hal;h=96474e7efcd68d2c55d765b0fe0c2b73f347224f;hb=H
>EAD

I'll check these out, I suspect, as I told Andy, that I didn't know what 
I was doing, but my pushbutton code fouled up my thinking as I tried to 
get that right.  Its been an "interesting day" so far.

Thanks Sebastian.

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 

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread Gene Heskett
On Monday 13 March 2017 16:29:30 andy pugh wrote:

> On 13 March 2017 at 20:09, Gene Heskett  wrote:
> > I note
> > that both axis.x.jog-scale and joint.0.jog-scale are zero.
>
> I thought you had set up all sorts of clever HAL logic to drive the
> jog-scale from the encoder?

I do, but didn't realize the jog-count data needed to be massaged down 
to /1000th of a red hair. I set scale to one, which meant machine units 
according to the manpage for motion, whereas I thought it was the scale 
for that axis from the ini file. If I leave the math alone, then scale 
becomes .38933 for X and .45894 for Z.

I fed both inputs an enable signal, and set both scales for x to 1, and 
it ran to the mechanical crash point and sat there banging on it till 
the timeout expired. Poking the esc key was useless.

Re-reading man 9 motion tells me its machine units which is inches, 
whereas with my prior math, the scale, if I leave all the previous math 
alone, s/b the recipricol (SP? my spell checker sucks dead toads thru 
soda straws, default debian big_en) of the axis scale setting. The 
number I developed was for the number of microsteps. to move .0002" as 
the slowest step, and thats several inches by the motion definition.  
Duh. Dumbassed old man even. I can get rid of some math if I leave it at 
1, and just feed motion the same data being displayed in my post-gui-hal 
pyvcp panel stuffs.  And the pi will thank me.  That will take me about 
as long to excise that as it did to write it. :( Tomorrow maybe...

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 

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread Sebastian Kuzminsky
We have a pair of tests in the test suite that verify wheel jogging of 
joints and axes.

http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=tree;f=tests/motion;h=7d4b07c4062a924573564076657b7ffb57a990d3;hb=HEAD

And here's how the HAL circuitry is hooked up in the axis case (the 
joint case is similar):

http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=tests/motion/jogwheel-axis/postgui.hal;h=96474e7efcd68d2c55d765b0fe0c2b73f347224f;hb=HEAD


-- 
Sebastian Kuzminsky

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread Nicklas Karlsson
I have problem with jogging for one of the axis/joints, it works with keyboard 
but not from GUI. Someone suggested this problem was bug in GUI which have been 
fixed. MDI work OK.

> On 13 March 2017 at 18:34, Gene Heskett  wrote:
> > I have sent the jog quantity to both axis.#.jog-count and to
> > joint.#.jog-count, with no response from the machine. Keyboard jogging
> > work ok. What else to I have to hook up to enable the acceptance of the
> > data, and get machine motion from it?
> 
> 
> axis.L.jog-enable and joint.N.jog-enable need to be set.

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread andy pugh
On 13 March 2017 at 20:09, Gene Heskett  wrote:
> I note
> that both axis.x.jog-scale and joint.0.jog-scale are zero.

I thought you had set up all sorts of clever HAL logic to drive the
jog-scale from the encoder?

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread Gene Heskett
On Monday 13 March 2017 15:46:06 andy pugh wrote:

> On 13 March 2017 at 19:36, Gene Heskett  wrote:
> >> axis.L.jog-enable and joint.N.jog-enable need to be set.
> >
> > Both, or just the latter?
>
> Depends what you want to jog.

Well, halshow won't let me set joint.0.jog-enable, but setting the 
axis.x.jog-enable sets both.  But still no machine response, and I note 
that both axis.x.jog-scale and joint.0.jog-scale are zero.  Can, since 
I've already done the math in my own code, assume that a jog-scale 
setting of one (to whichever one I am allowed to set, axis.x.jog-scale I 
expect) would be correct?

Or is there yet another "guard dog" to be fed & petted here, and under 
what conditions?

In the event it works, and the timer times out, zeroing the encoder etc, 
and the data being sent to jog-counts drops to zero when that occurs 
since the timeout resets the encoder, I assume I should drop the enable 
before the jog-counts drops to zero at the end of the timedelay?  Or 
should I not clear the encoder because motion remembers it and acts only 
on the new difference.  That would get rid of 4 or 6 lines of hal code.

Thanks Andy.

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 

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread andy pugh
On 13 March 2017 at 19:36, Gene Heskett  wrote:
>> axis.L.jog-enable and joint.N.jog-enable need to be set.
>
> Both, or just the latter?

Depends what you want to jog.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread Gene Heskett
On Monday 13 March 2017 14:51:08 andy pugh wrote:

> On 13 March 2017 at 18:34, Gene Heskett  wrote:
> > I have sent the jog quantity to both axis.#.jog-count and to
> > joint.#.jog-count, with no response from the machine. Keyboard
> > jogging work ok. What else to I have to hook up to enable the
> > acceptance of the data, and get machine motion from it?
>
> axis.L.jog-enable and joint.N.jog-enable need to be set.

Both, or just the latter?  Since your conversion script has been run w/o 
errors, I was a bit surprised to see the axis stuff left in the halmeter 
selection window.

Thanks Andy.

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 

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] No response to jog data in

2017-03-13 Thread andy pugh
On 13 March 2017 at 18:34, Gene Heskett  wrote:
> I have sent the jog quantity to both axis.#.jog-count and to
> joint.#.jog-count, with no response from the machine. Keyboard jogging
> work ok. What else to I have to hook up to enable the acceptance of the
> data, and get machine motion from it?


axis.L.jog-enable and joint.N.jog-enable need to be set.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users