How to use LinuxCNC to control slave

More
04 Jul 2019 02:13 #138584 by cheng
Thank you. I'm using a 32-bit system. I'm using EtherCAT slave from estun.

I found that I didn't know much about LinuxCNC. I just wanted to learn how to use LinuxCNC before, but I never knew the professional knowledge behind it. Now I decide a step to use and a side to understand.

Thanks for answering my questions without bothering you. I think you need to sleep. It's too late on your side now.
Attachments:

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 02:32 #138585 by cheng
Thank you, I use a 32-bit system, using estun company EtherCAT slave.

I found that I have many don't understand, I just want to learn how to use LinuxCNC before, never know that it is behind the professional knowledge. Now I decided to step in to use and understand.

Thank you for your answer to my question. I think you need to sleep, now already is in the morning

Please Log in or Create an account to join the conversation.

More
04 Jul 2019 09:27 - 04 Jul 2019 23:21 #138610 by Grotius
@Cheng,

Do you have a model number for the Estun?
You can search with google if there was someone before you that used a Estun Ethcercat device.
If so, you are lucky today !!

To use your Estun with Linuxcnc Ethercat you need a xml file (ethercat configuration file) to load into hal (hardware abstract layer). The beckhoff software can make such a file xml automatic, this could be done in worst case.

Attached a ethercat project that is quite a good and easy example to investegate for you.
It's a beckhoff example, but you can modify it to Estun.
It works with PID motor control, i think that is usefull for you.

Also attached a text file, you can look at it. It are a few terminal command's that can be a template for you to modify. Just for info.

You live in a nice city Cheng...



It looks better then Detroit USA. B)
Attachments:
Last edit: 04 Jul 2019 23:21 by Grotius.
The following user(s) said Thank You: cheng

Please Log in or Create an account to join the conversation.

More
05 Jul 2019 01:06 #138657 by cheng
The tower in the picture is called the Guangzhou Tower or the small waist. It is a new landmark in Guangzhou. Thank you for your compliment to Guangzhou. I don't know much about Detroit. When I was studying geography textbooks, I knew that it was a city of cars, and the industrial automation capability was very strong. In fact, the most famous in Guangzhou is the food here, such as "changfen", a variety of exquisite "dianxin". I found some pictures of my classmates going to eat "early tea" in the WeChat circle of friends.

Thank you for your advice and study materials. I went to study. You have a wonderful day.
Attachments:
The following user(s) said Thank You: Grotius, Dinuka_Shehan

Please Log in or Create an account to join the conversation.

More
09 Jul 2019 15:14 #138958 by Dinuka_Shehan
Hi Cheng,
I like your work.do you using
Facebook or whatsapp

Please Log in or Create an account to join the conversation.

More
16 Jul 2019 03:39 #139538 by cheng
Sorry, I didn't use that

Please Log in or Create an account to join the conversation.

More
16 Jul 2019 21:56 - 16 Jul 2019 22:01 #139614 by Grotius
Hi Chen,

Nice picture !! I live in Holland.

I think the error "lcec conf" while loading linuxcnc has to do with the source code of the lcec_conf file.

See the attached C source file. If you open the file with the text editor Geany....

It you have no Geany installation open terminal and copy and paste this : sudo apt-get install geany
When opening the program goto :
-> document -> set filetype -> programming language -> c source file

If you look in the file... I spot directly the following 2 lines :
  // stoeber MDS5000 series
  { "StMDS5k", lcecSlaveTypeStMDS5k, slaveStMDS5kParams },

  // Delta ASDA series
  { "DeASDA", lcecSlaveTypeDeASDA, NULL },

Is your Ethercat component available in this file? If no, we have to add your Ethercat piece to it.
And after that we have to do more. But first we have to add your device.

If you try to add your device yourself in C, what is a good practice for you to learn something,
don't forget to compile the source directory of the
linuxcnc-ethercat source code again. And don't forget to do a reload or reload configure ethercat command.
Good luck, so far. And i see you have more friend's. I don't know Dinuka...
Attachments:
Last edit: 16 Jul 2019 22:01 by Grotius.

Please Log in or Create an account to join the conversation.

More
17 Jul 2019 01:38 #139663 by cheng
I just signed up for a Facebook account, but I am still not skilled at using it.
Attachments:

Please Log in or Create an account to join the conversation.

More
17 Jul 2019 01:41 #139664 by cheng
Thank you very much for telling me the direction. I will read and modify c code myself. Maybe it will bother you.

good lucky

by cheng

Please Log in or Create an account to join the conversation.

More
17 Jul 2019 23:04 #139738 by Grotius
@Cheng,

I will read and modify c code myself.

If so, you are a very talented person.

Please Log in or Create an account to join the conversation.

Time to create page: 0.176 seconds
Powered by Kunena Forum