Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Thắng Lê
ts.sourceforge.net> >> To: EMC developers <emc-developers@lists.sourceforge.net> >> Subject: Re: [Emc-developers] writing new firmware to read yaskawa >> absolute >> encoder >> >> i guess i cant contact UART on mesa 5i25 by linuxcnc, just only can get

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Peter C. Wallace
rs <emc-developers@lists.sourceforge.net> Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder i guess i cant contact UART on mesa 5i25 by linuxcnc, just only can get data from FIFO. I found a way to solve this problem without touchich uart.c source but it's no

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-23 Thread Thắng Lê
>> Date: Wed, 21 Mar 2018 15:20:12 +0700 >>>> From: "[UTF-8] Th?ng L?" <lethang12...@gmail.com> >>>> Reply-To: EMC developers <emc-developers@lists.sourceforge.net> >>>> To: EMC developers <emc-developers@lists.sourceforge.net> >

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-22 Thread Thắng Lê
0 >>> From: "[UTF-8] Th?ng L?" <lethang12...@gmail.com> >>> Reply-To: EMC developers <emc-developers@lists.sourceforge.net> >>> To: EMC developers <emc-developers@lists.sourceforge.net> >>> Subject: Re: [Emc-developers] writing new firmware to read yask

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-21 Thread Thắng Lê
2 +0700 >> From: "[UTF-8] Th?ng L?" <lethang12...@gmail.com> >> Reply-To: EMC developers <emc-developers@lists.sourceforge.net> >> To: EMC developers <emc-developers@lists.sourceforge.net> >> Subject: Re: [Emc-developers] writing new firmware to read y

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-21 Thread Peter C. Wallace
g12...@gmail.com> Reply-To: EMC developers <emc-developers@lists.sourceforge.net> To: EMC developers <emc-developers@lists.sourceforge.net> Subject: Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder ah, i understood what you mean. thank you very much 201

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-21 Thread Thắng Lê
t; Reply-To: EMC developers <emc-developers@lists.sourceforge.net> >> To: EMC developers <emc-developers@lists.sourceforge.net> >> Subject: Re: [Emc-developers] writing new firmware to read yaskawa >> absolute >> encoder >> >> ah, i understood what yo

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Peter C. Wallace
[Emc-developers] writing new firmware to read yaskawa absolute encoder ah, i understood what you mean. thank you very much 2018-03-16 23:30 GMT+07:00 andy pugh <bodge...@gmail.com>: On 16 March 2018 at 16:27, Th??ng L?? <lethang12...@gmail.com> wrote: > this is a great idea but ho

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Thắng Lê
ah, i understood what you mean. thank you very much 2018-03-16 23:30 GMT+07:00 andy pugh : > On 16 March 2018 at 16:27, Thắng Lê wrote: > > this is a great idea but how can i right-shift the data? Both your way > and > > Peter's way seem have to touch

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Peter C. Wallace
[Emc-developers] writing new firmware to read yaskawa absolute encoder this is a great idea but how can i right-shift the data? Both your way and Peter's way seem have to touch UART source. I dont mind to modify it but if need to change firmware is a bit problem with me No need to change firmwa

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread andy pugh
On 16 March 2018 at 16:27, Thắng Lê wrote: > this is a great idea but how can i right-shift the data? Both your way and > Peter's way seem have to touch UART source No, you can shift the raw data in the HAL component that interprets the data. -- atp "A motorcycle is a

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Thắng Lê
this is a great idea but how can i right-shift the data? Both your way and Peter's way seem have to touch UART source. I dont mind to modify it but if need to change firmware is a bit problem with me 2018-03-16 17:53 GMT+07:00 andy pugh : > On 16 March 2018 at 08:52, Thắng

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread andy pugh
On 16 March 2018 at 08:52, Thắng Lê wrote: > The data frame is: 1 bit start + character 7 bits + 1 bit even parity + 1 > bit stop. I dont need creat this Frame for TX, if there is anyway that i > can configure this Frame for RX without touching uart firmware and >

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-16 Thread Thắng Lê
et> >> Subject: Re: [Emc-developers] writing new firmware to read yaskawa >> absolute >> encoder >> >> >> On 14. Mar 2018, at 17:54, Peter C. Wallace <p...@mesanet.com> wrote: >>> >>> Typically there would be no issue sending and receivi

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread Peter C. Wallace
On Wed, 14 Mar 2018, Rene Hopf wrote: Date: Wed, 14 Mar 2018 22:53:59 +0100 From: Rene Hopf <reneh...@mac.com> Reply-To: EMC developers <emc-developers@lists.sourceforge.net> To: EMC developers <emc-developers@lists.sourceforge.net> Subject: Re: [Emc-developers] writing ne

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread Rene Hopf
> On 14. Mar 2018, at 17:54, Peter C. Wallace wrote: > > Typically there would be no issue sending and receiving 7 bit characters with > the PacketUART (just mask bit 7 on RX and set it to the line idle (high) > state on TX ) thats not how uart works, if there is a stop

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread Peter C. Wallace
On Wed, 14 Mar 2018, andy pugh wrote: Date: Wed, 14 Mar 2018 16:43:39 + From: andy pugh <bodge...@gmail.com> Reply-To: EMC developers <emc-developers@lists.sourceforge.net> To: EMC developers <emc-developers@lists.sourceforge.net> Subject: Re: [Emc-developers] writing ne

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread andy pugh
On 14 March 2018 at 16:43, andy pugh wrote: > Looking at the VHDL files both UART and pktUART have a 4-bit field for > bit-count, so that rather suggests that there should be a way to set > the number of bits to a value other than 7. Maybe not:

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-14 Thread andy pugh
On 14 March 2018 at 04:38, Thắng Lê wrote: > unfortunately, channel A use serial interface with ASCII 7bits, i guess i > cant use mesa_uart without modify uart.c. Does pktuart allow me to change > frames? I was looking at hm2_pktuart_setup function, there is an option >

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-13 Thread Thắng Lê
unfortunately, channel A use serial interface with ASCII 7bits, i guess i cant use mesa_uart without modify uart.c. Does pktuart allow me to change frames? I was looking at hm2_pktuart_setup function, there is an option "Bit 20..16 Frames received", is this what i need? 2018-03-10 17:40

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-09 Thread Thắng Lê
in my 2.8 pre linuxcnc, i also changed the path in mesa_uart.comp to compile it 2018-03-10 14:45 GMT+07:00 Thắng Lê : > When i try run mesa_uart or mesa_pktgyro_test in halcmd, terminal shows me > "*undefined symbol: hm2_uart_read" or " undefind symbol: >

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-09 Thread Thắng Lê
i'm stucked at uarts because i dont really understand how UART work , i see there are many files like mesa_uart.c, mesa_uart.comp, uart.c, pktuart.c, I guess uart.c and pktuart.c contains uart's functions and mesa_uart.comp or mesa_pktgyro_test.comp will use these functions so i just need creat a

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-09 Thread Thắng Lê
sorry, my abs_encoder is 15 bit type, showing at page 56 (63 is pdf page), it hasn't phase S. The problem is phase A has 2 functions, send serial data and incremental pulses so i think i will connect it to 1 UART port and 1 encoder counter port, after receive serial data, i will reset counter.

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-08 Thread andy pugh
On 8 March 2018 at 09:39, Thắng Lê wrote: > + Writing a firmware file absyaskawa.vhd with VHDL language then add in > xilinx library so i can flash new firmware for my mesa card (i'm very new > with FPGA,i need to learn VHDL first). You might not need to do this. It

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-08 Thread andy pugh
On 8 March 2018 at 09:39, Thắng Lê wrote: > + Writing a firmware file absyaskawa.vhd with VHDL language then add in > xilinx library so i can flash new firmware for my mesa card (i'm very new > with FPGA,i need to learn VHDL first). > + Modifying the abs_encoder.c file

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-08 Thread Thắng Lê
Thank Andy, that is a big help! So all the things i need to do are: + Writing a firmware file absyaskawa.vhd with VHDL language then add in xilinx library so i can flash new firmware for my mesa card (i'm very new with FPGA,i need to learn VHDL first). + Modifying the abs_encoder.c file to

Re: [Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-07 Thread andy pugh
On 7 March 2018 at 10:57, Thắng Lê wrote: > can i ask for a way to write a new firmware to get yaskawa absolute encoder. ... > So first of all, i need a way to confirm the data i send is true. i assume > i can use combo 5i25-->7i74--> converter rs-485 to rs-232 ( or usb)

[Emc-developers] writing new firmware to read yaskawa absolute encoder

2018-03-07 Thread Thắng Lê
Hi EMC developers, can i ask for a way to write a new firmware to get yaskawa absolute encoder. My knowedge is limit so i cant find the way by myself therefore i need a little bit help. The yaskawa abs_encoder is a serial abs_encoder but it's using quadrature. >From the the yaskawa document