Re: [Emc-developers] pwmgen, mesa version, man page is?

2020-10-26 Thread Peter C. Wallace

On Mon, 26 Oct 2020, Gene Heskett wrote:


Date: Mon, 26 Oct 2020 04:00:31 -0400
From: Gene Heskett 
Reply-To: EMC developers 
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] pwmgen, mesa version, man page is?

On Monday 26 October 2020 00:27:31 Peter C. Wallace wrote:


On Sun, 25 Oct 2020, Gene Heskett wrote:

Date: Sun, 25 Oct 2020 23:54:34 -0400
From: Gene Heskett 
Reply-To: EMC developers 
To: emc-developers@lists.sourceforge.net
Subject: Re: [Emc-developers] pwmgen, mesa version, man page is?

On Sunday 25 October 2020 22:51:15 Peter C. Wallace wrote:

On Sun, 25 Oct 2020, Gene Heskett wrote:

Date: Sun, 25 Oct 2020 21:50:25 -0400
From: Gene Heskett 
Reply-To: EMC developers 
To: EMC developers 
Subject: [Emc-developers] pwmgen, mesa version, man page is?

Greetings all;

Some confusion about useing the mesa pwmgens in a 5i25 with the
5i25_7i76_1px2d.bit file loaded.  this bitfile fails to wire up
the dir output, but is as close to driveing a stock bob on p2 as
there is.


I dont think this is the case, Both PWMgens have direction outputs


If my tracing is correct, pwmgen.01's dir s/b on the std bob at
Zdir, adjacent to its output on Zstep from the pwmgen.01.  Its dir
is nowhere to be found that I can find. pwmgen.00 s/b step/dir4 in
both polarities. These may be working but I'm haveing a hard time
correlating the mouse clicks to check both and hold a meter or scope
probe at the same time.


I just tried the 7i76_1px2d pinfile source code on a 7I92
and it works as expected:

setting PWM 00 or 01 to a 0.5 value results in a 50 % duty cycle
waveform with DIR low

setting PWM 00 or 01 to -0.5 value results in a 50 % duty cycle
waveform with DIR high


But. But. I don't have a 7i92, nor do I have a free ethernet port to
drive it with. I have a std sainsmart bob on the 5i25's p2. The crimp on
cable was bad at first but thats been repaired with new connectors.


The 7I92 config will work identically to the 5I25 config, that was my point




That pwmgen.01's dir output s/b on the 5i25.0.gpio.021, aka header pin5,
aka YDIR.  So I've edited the .hal slightly different, and I can now see
the signals at the 5i25.0.gpio.006.in and gpio.007.in for axis A with a
halmeter.



?? using 5i25_7i76_1px2d:

PWMgen00s direction is on GPIO 8 (P3 DB25 pin 5)
PWMgen00s PWM is on GPIO 9 (P3 DB25 pin 6)

PWMgen01s direction is on GPIO 25 (P2 DB25 pin 5)
PWMgen02s PWM is on GPIO 26 (P2 DB25 pin 6)

Note I anm not referencing header pins but always DB25 pins



And dittos for pwmgen.01 for gpio pins 25 & 26 for the spindle.  Now to
wire it that way since it isn't.  These sainsmart BoB boards are cheap,
well built and almost indestructable, but chasing a signal thru one that
doesn't name outputs by pin # is a cast iron bitch.





Thank you, Peter.

[...]

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 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] pwmgen, mesa version, man page is?

2020-10-26 Thread Gene Heskett
On Monday 26 October 2020 00:27:31 Peter C. Wallace wrote:

> On Sun, 25 Oct 2020, Gene Heskett wrote:
> > Date: Sun, 25 Oct 2020 23:54:34 -0400
> > From: Gene Heskett 
> > Reply-To: EMC developers 
> > To: emc-developers@lists.sourceforge.net
> > Subject: Re: [Emc-developers] pwmgen, mesa version, man page is?
> >
> > On Sunday 25 October 2020 22:51:15 Peter C. Wallace wrote:
> >> On Sun, 25 Oct 2020, Gene Heskett wrote:
> >>> Date: Sun, 25 Oct 2020 21:50:25 -0400
> >>> From: Gene Heskett 
> >>> Reply-To: EMC developers 
> >>> To: EMC developers 
> >>> Subject: [Emc-developers] pwmgen, mesa version, man page is?
> >>>
> >>> Greetings all;
> >>>
> >>> Some confusion about useing the mesa pwmgens in a 5i25 with the
> >>> 5i25_7i76_1px2d.bit file loaded.  this bitfile fails to wire up
> >>> the dir output, but is as close to driveing a stock bob on p2 as
> >>> there is.
> >>
> >> I dont think this is the case, Both PWMgens have direction outputs
> >
> > If my tracing is correct, pwmgen.01's dir s/b on the std bob at
> > Zdir, adjacent to its output on Zstep from the pwmgen.01.  Its dir
> > is nowhere to be found that I can find. pwmgen.00 s/b step/dir4 in
> > both polarities. These may be working but I'm haveing a hard time
> > correlating the mouse clicks to check both and hold a meter or scope
> > probe at the same time.
>
> I just tried the 7i76_1px2d pinfile source code on a 7I92
> and it works as expected:
>
> setting PWM 00 or 01 to a 0.5 value results in a 50 % duty cycle
> waveform with DIR low
>
> setting PWM 00 or 01 to -0.5 value results in a 50 % duty cycle
> waveform with DIR high

But. But. I don't have a 7i92, nor do I have a free ethernet port to 
drive it with. I have a std sainsmart bob on the 5i25's p2. The crimp on 
cable was bad at first but thats been repaired with new connectors.

That pwmgen.01's dir output s/b on the 5i25.0.gpio.021, aka header pin5, 
aka YDIR.  So I've edited the .hal slightly different, and I can now see 
the signals at the 5i25.0.gpio.006.in and gpio.007.in for axis A with a 
halmeter.

And dittos for pwmgen.01 for gpio pins 25 & 26 for the spindle.  Now to
wire it that way since it isn't.  These sainsmart BoB boards are cheap, 
well built and almost indestructable, but chasing a signal thru one that 
doesn't name outputs by pin # is a cast iron bitch.

Thank you, Peter.

[...]

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 


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


[Emc-developers] EMC Master NML configuration file buffer size changes

2020-10-26 Thread Johannes Fassotte
This is what is happening in relation to the actual traditional 
emcStatus sync word location,      .


This list was automatically generated by looking for the locations of 
the sync word in the data received from LinuxCNC and splitting the
received data into before and after segments at that point. Thus it 
lists the before and after sync word data sizes
in relation to the traditional emcStatus sync word. Normally the before 
sync word location would be 20.


As the list show stability of the location of the sync word has been 
lost by a recent change. For info the status request for this test  were 
made at 50ms intervals. Anything with 20 in the before list will give 
proper status info.


It should be noted that there was no request made by the remote for the 
problematic data,  nor does it show up as having been
sent to the remote in debug. Debug does show proper handling of the data 
that was requested.


My tests seem to show that there is no data in these transfers that do 
not have 20 as a before value, they are just a whole lot of zero's..
Is there any info available how best the disable these data transfer so 
I can continue on other work? I have done all I can do on this for now.


This pattern repeats over and over and over

Before:  29360, After: 45068
Before:  58720, After: 15708
Before:  74440, After: 0
Before:  13620, After: 60808
Before:  42980, After: 31448
Before:  72340, After: 127648
Before:  79960, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 74428
Before:  29360, After: 45068
Before:  58720, After: 15708
Before:  74440, After: 0
Before:  13620, After: 60808
Before:  42980, After: 31448
Before:  72340, After: 127648
Before:  79960, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 103768
Before:  20, After: 74428




___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers