How to use LinuxCNC to control slave

More
02 Jul 2019 02:26 #138366 by cheng
I have successfully installed igh-ethercat and detected slaves but I don't know how to make the slave station motor turn.
I wish
Attachments:

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

More
02 Jul 2019 07:04 #138381 by pl7i92
hi
you may go with the new MASTER relese
at www.linuxcnc.org/testing-stretch-rtpreempt/
use the ((( 1.3 GB ))) DVD file
linuxcnc-stretch-uspace-amd64-r13.iso

IF YOU ALREDY GOT STRETCH Debian 9 Running use the BUILDBOT to update to master
buildbot.linuxcnc.org/

then follow tutorial

wiki.linuxcnc.org/cgi-bin/wiki.pl?EtherCatDriver

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

More
02 Jul 2019 17:06 #138417 by tommylight
He already has everything installed and running properly.
Now he needs actual commands to test the motors, but i can not help there, maybe Grotius or some other forum member can help.

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

More
02 Jul 2019 22:03 - 02 Jul 2019 22:18 #138444 by Grotius
Cheng,

First off all welcome to the LinuxCNC forum !
I see you are a new member, living in Hongkong?

I have successfully installed igh-ethercat and detected slaves but I don't know how to make the slave station motor turn.
You did not use and try any C code example i see wich is provided by Etherlab.

I wish
Do you want to use Linuxcnc to turn your motor?
Or do you want to turn your motor with C or C++ code?
What needs your application?

He already has everything installed and running properly.
Haha. So far so good.

pl7i92
?
He can use .so or .ko kernel insmod's. He don't need a update.
Ethercat works for 32 and 64 bit, just for info.
Last edit: 02 Jul 2019 22:18 by Grotius.
The following user(s) said Thank You: cheng

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

More
03 Jul 2019 00:45 #138478 by cheng
Thank you very much

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

More
03 Jul 2019 00:46 #138479 by cheng
You are right, I have successfully run, but do not know how to control the motor

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

More
03 Jul 2019 00:58 #138480 by cheng
thanks Grotius .I live in Guangzhou now. Do you know Guangzhou? It is next to Hong Kong. I want to learn how to use LinuxCNC to control the motor. I don't know what to do. Maybe I need to write .hal .xml .ini file.

I am going to find an example of C code in Etherlab.

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

More
04 Jul 2019 01:08 #138581 by Grotius
I live in Guangzhou now.
Nice Cheng.

I want to learn how to use LinuxCNC to control the motor.
Oke that's fine !

I am going to find an example of C code in Etherlab.
It's important you play a bit in the Etherlab source code. There is one example provided (included) that is basic enough to investegate.

I have a question. Is your system 32 or 64 bit? You can read a bit about .ko and .so kernel modules.
32 bit uses .ko modules. 64 bit uses .so modules.

The installation of 32 bit is quite easy to do. The 64 bit installation is more difficult.

What kind of ethercat slave do you have? Is it a Beckhoff?
The following user(s) said Thank You: cheng

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

More
04 Jul 2019 01:20 #138582 by cheng
Thank you. Do you know any other command about LinuxCNC? For example, use
linuxcnc
to open the graphical interface.

I turned on an example from the system, and it worked fine on the PC, but my motor was still quiet.

Attachments:

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

More
04 Jul 2019 01:22 #138583 by cheng
sorry I made a mistake.

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

Time to create page: 0.591 seconds
Powered by Kunena Forum