Re: [Emc-developers] pktuart -> rs-485

2020-03-25 Thread Gene Heskett
On Wednesday 25 March 2020 12:10:22 Curtis Dutton wrote:

> My current project is connecting a pktuart -> 6i25 -> 7i84 ->yaskwa
> rs-485 encoder.
>
> I was able to compile custom hostmot2 firmware with 4 pktuart and 4
> sserial components.
>
> I have a provisional hal component that is able to send data through 2
> pktuart modules that wired together via the 7i84 and send bits back
> and forth at 2 Mbps which is the frequency that yaskawa encoders
> function at.
>
> The encoders use a 2 wire bi-directional rs-485 protocol so I
> purchased some  mesa 485x1 Rs-485/RS-422 adaptors.
>
> I can't seem to get them to work.
>
> My testing plan is to get pktuart 0 to communicate with pktuart 1 with
> 2 of the RS-485 adapters in between them. This will give me confidence
> that everything is working properly and can then move on to
> communicating with the yaskawa encoders.
>
> I'm not sure exactly how to wire the adapters and I haven't gotten
> lucky yet with my attempts.
>
Those may be bidirectional adapters. I got some of them from an ebay 
vendor for about $2 each to put between the diff outputs of my spindle 
motor encoder, another ebay $20 purchase, and found I had to bias them 
out of doing both directions at which point they turned into perfect 
diff to ttl signalers which could be fed directly into a 5i25's encoder 
inputs as rail to rail ttl signals.

I wrote some notes at the time as to how I did it and will attempt to 
find them next time I'm out there but am under the weather with a kidney 
infection ATM.

> Does anyone have a diagram or information on how to use these
> adaptors?
>
> Do I even have the correct approach here?
>
>
> Thanks,
>Curtis
>
> ___
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


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


Re: [Emc-developers] pktuart -> rs-485

2020-03-25 Thread Peter C. Wallace

On Wed, 25 Mar 2020, Curtis Dutton wrote:


Date: Wed, 25 Mar 2020 12:10:22 -0400
From: Curtis Dutton 
Reply-To: EMC developers 
To: EMC developers 
Subject: [Emc-developers] pktuart -> rs-485

My current project is connecting a pktuart -> 6i25 -> 7i84 ->yaskwa rs-485
encoder.


Did you mean 7I85?



I was able to compile custom hostmot2 firmware with 4 pktuart and 4 sserial
components.




I have a provisional hal component that is able to send data through 2
pktuart modules that wired together via the 7i84 and send bits back and
forth at 2 Mbps which is the frequency that yaskawa encoders function at.

The encoders use a 2 wire bi-directional rs-485 protocol so I purchased
some  mesa 485x1 Rs-485/RS-422 adaptors.




I can't seem to get them to work.


Are the RS-485 enables connected to PktUART TXEN pins and do they have the 
correct polarity? (Active low)



Note that there is a fairly recent fix in the TXEN delay function of the PKtUART 
so it should probably be set to 0 for testing




My testing plan is to get pktuart 0 to communicate with pktuart 1 with 2 of
the RS-485 adapters in between them. This will give me confidence that
everything is working properly and can then move on to communicating with
the yaskawa encoders.

I'm not sure exactly how to wire the adapters and I haven't gotten lucky
yet with my attempts.

Does anyone have a diagram or information on how to use these adaptors?

Do I even have the correct approach here?


Thanks,
  Curtis

___
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] pktuart -> rs-485

2020-03-25 Thread Curtis Dutton
Apologies. It is a 7i74 not a 7i84.

On Wed, Mar 25, 2020 at 1:47 PM Peter C. Wallace  wrote:

> On Wed, 25 Mar 2020, Curtis Dutton wrote:
>
> > Date: Wed, 25 Mar 2020 12:10:22 -0400
> > From: Curtis Dutton 
> > Reply-To: EMC developers 
> > To: EMC developers 
> > Subject: [Emc-developers] pktuart -> rs-485
> >
> > My current project is connecting a pktuart -> 6i25 -> 7i84 ->yaskwa
> rs-485
> > encoder.
>
> Did you mean 7I85?
>
> >
> > I was able to compile custom hostmot2 firmware with 4 pktuart and 4
> sserial
> > components.
> >
>
> > I have a provisional hal component that is able to send data through 2
> > pktuart modules that wired together via the 7i84 and send bits back and
> > forth at 2 Mbps which is the frequency that yaskawa encoders function at.
> >
> > The encoders use a 2 wire bi-directional rs-485 protocol so I purchased
> > some  mesa 485x1 Rs-485/RS-422 adaptors.
>
> >
> > I can't seem to get them to work.
>
> Are the RS-485 enables connected to PktUART TXEN pins and do they have the
> correct polarity? (Active low)
>
>
> Note that there is a fairly recent fix in the TXEN delay function of the
> PKtUART
> so it should probably be set to 0 for testing
>
> >
> > My testing plan is to get pktuart 0 to communicate with pktuart 1 with 2
> of
> > the RS-485 adapters in between them. This will give me confidence that
> > everything is working properly and can then move on to communicating with
> > the yaskawa encoders.
> >
> > I'm not sure exactly how to wire the adapters and I haven't gotten lucky
> > yet with my attempts.
> >
> > Does anyone have a diagram or information on how to use these adaptors?
> >
> > Do I even have the correct approach here?
> >
> >
> > Thanks,
> >   Curtis
> >
> > ___
> > 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
>

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


Re: [Emc-developers] pktuart -> rs-485

2020-03-25 Thread Peter C. Wallace

On Wed, 25 Mar 2020, Curtis Dutton wrote:


Date: Wed, 25 Mar 2020 14:02:39 -0400
From: Curtis Dutton 
Reply-To: EMC developers 
To: EMC developers 
Subject: Re: [Emc-developers] pktuart -> rs-485

Apologies. It is a 7i74 not a 7i84.


BTW a simple way to bisect the testing process is to simply loop back the FPGA 
TX line to the FPGA RX line, to eliminate any issues with TXEN, polarities, 
RS-485 driver hookup etc etc



Peter Wallace
Mesa Electronics


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


[Emc-developers] pktuart -> rs-485

2020-03-25 Thread Curtis Dutton
My current project is connecting a pktuart -> 6i25 -> 7i84 ->yaskwa rs-485
encoder.

I was able to compile custom hostmot2 firmware with 4 pktuart and 4 sserial
components.

I have a provisional hal component that is able to send data through 2
pktuart modules that wired together via the 7i84 and send bits back and
forth at 2 Mbps which is the frequency that yaskawa encoders function at.

The encoders use a 2 wire bi-directional rs-485 protocol so I purchased
some  mesa 485x1 Rs-485/RS-422 adaptors.

I can't seem to get them to work.

My testing plan is to get pktuart 0 to communicate with pktuart 1 with 2 of
the RS-485 adapters in between them. This will give me confidence that
everything is working properly and can then move on to communicating with
the yaskawa encoders.

I'm not sure exactly how to wire the adapters and I haven't gotten lucky
yet with my attempts.

Does anyone have a diagram or information on how to use these adaptors?

Do I even have the correct approach here?


Thanks,
   Curtis

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