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 add new HAL pin for yaskawa then recompiling source. are they enough? I feel i lack something but i cant explain. 2018-03-07 18:27 GMT+07:00 andy pugh <bodge...@gmail.com>: > On 7 March 2018 at 10:57, Thắng Lê <lethang12...@gmail.com> 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) --> > pc > > to debug in terminal. After that i will write a new firmware base on old > > firmware > > > I assume that you are talking about using Mesa cards, and writing a > new firmware for those. > > There is existing firmware for some absolute encoders with driver > support in LinuxCNC: > (SSI, BiSS and Fanuc) > http://linuxcnc.org/docs/devel/html/man/man9/hostmot2.9.html#Synchronous > Serial Interface (SSI) > > As well as modifying the firmware you would also have to add the HAL > layer support to the Hostmot2 driver: > https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/ > drivers/mesa-hostmot2/abs_encoder.c > (I note that I forgot to update the file comments after I had added > the BiSS and Fanuc) > > The Mesa firmware module for the Fanuc absolute encoders is here: > https://github.com/LinuxCNC/hostmot2-firmware/blob/master/src/fanucabs.vhd > > A Yaskawa module for Hostmot2 and HAL would be a very nice addition to > LinuxCNC. > > > There is an alternative option which swaps a software problem for a > hardware problem: > https://github.com/rene-dev/stmbl/blob/a0a41864f9a40fc7122f1369a4373d > 9f459a3136/docs/src/Getting%20Started.adoc > The STMBL servo drive connects to LinuxCNC via a Mesa card using smart > serial (so could be used in place of your RS-485 to RS232 converter in > the hardware you outlined above) > You could either use it just as a Yaskawa to Smart-Serial converter or > utilise it as the servo drive for your system. > > The STMBL firmware is written in C rather than VHDL so is probably not > directly usable in a Mesa firmware module. > > I have lots of unpopulated circuit boards, but assembled drives or > populated boards are rather rarer. (I had a batch of 50 made, but they > are all allocated to recipients). > > If you are needing a lot of boards then I can put you in touch with a > company in China who have all the files and can make populated boards > (less power semiconductor) for £50 a board in batches of 50. > > -- > 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-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers > -- Lê Thắng Phone: (+84) 1222443855 Email: lethang12...@gmail.com ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers