- Posts: 57
- Thank you received: 0
How to use LinuxCNC to control slave
I overestimated my ability. I wasted a day modifying c code. I feel very depressed.
I want to continue reading c code today.
Cheng
Please Log in to join the conversation.
I analyzed the running error.Even if my slave model is not included in lcec_conf, it should be loaded with the lcec_conf before error occurs. But now the problem began. So my guess is that this code is not being executed, or that the.ko file is missing it.
At noon. I follow this url to add user-space drivers. wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified .
After I edit the code and running "./configure"The following error occurred
The linuxcnc prompts me to lack tcl lib.so i running "find / -name tcl.h".But could not find。
enen the c source was download github.com/aschiffler/linuxcnc.Is it wrong for me to download?
Have you ever seen tcl.h?
Please Log in to join the conversation.
I solved the problem of missing tcl.h. But I have encountered new problems again.
I suspect that it is a problem with the path. So I changed to an absolute path.but still error
Today is a day to solve mistakes and new mistakes.
by Cheng
Please Log in to join the conversation.
- Dinuka_Shehan
- Offline
- Platinum Member
-
- Posts: 333
- Thank you received: 0
Please Log in to join the conversation.
Attachment not found
Please Log in to join the conversation.
I overestimated my ability. I wasted a day modifying c code. I feel very depressed.
I want to continue reading c code today.
Haha. Did you compile something in the mean time?
For .ko files you can test them with insmod
Put them into your kernel.
If you are so far. You can put your ethercat src directory on wetransfer.
I will test it for compiling and error's. But post it only if you are one week stuck...
I want to get the maximum out of your talent. :woohoo:
Please Log in to join the conversation.
Grotius wrote: @Cheng,
I overestimated my ability. I wasted a day modifying c code. I feel very depressed.
I want to continue reading c code today.
Haha. Did you compile something in the mean time?
For .ko files you can test them with insmod
Put them into your kernel.
If you are so far. You can put your ethercat src directory on wetransfer.
I will test it for compiling and error's. But post it only if you are one week stuck...
I want to get the maximum out of your talent. :woohoo:
I modified the code yesterday and found that the compilation did not pass. I thought about my initial purpose. I want to use the LinuxCNC to control the motor. I have used the command line you gave last time and read the CANOpen protocol to successfully control the motor through EtherCAT. Now it is necessary to use LinuxCNC to control my slave. Since the slave is not Beckhoff, I need to write the HAl, ini and xml files myself.
According to your suggestion, I found a HAl, xml written by someone else about estun. But it can't run, I now wonder if I have problems during the LinuxCN installation. The last time I modified the code was really annoying. I replaced the method today to reinstall LinuxCNC
Please Log in to join the conversation.
- Dinuka_Shehan
- Offline
- Platinum Member
-
- Posts: 333
- Thank you received: 0
Please Log in to join the conversation.
after dmesg
eee
Maybe dmesg has too much information, it is recommended to look from the back.
I hope someone told me what to do with it.
thanks
Please Log in to join the conversation.
How is life in your beautifull city?
Relating to your post :
Machine configuration file is 'cpd17_x.ini'
Starting LinuxCNC...
.
emc/iotask/ioControl.cc 768: can't load tool table. If you add a tool.tbl file and a ini connection you are fertig with this one.
Found file(REL): ./cpd17_x.hal
HAL: ERROR: function 'not.0' not found You have a action to a "not" function somewhere in hal or your component's...
the "not" can be a little line statement somewhere that say's... I will not do this if you do that... So it looks like a if-else function.
www.linuxcnc.org/docs/devel/html/hal/basic-hal.html#_not
the bit inverter function is not found.
./cpd17_x.hal:12: addf failed Here it relates the "not" (bit inverter function) to cpd17_x.hal, line 12...
Shutting down and cleaning up LinuxCNC... Goodbye linuxcnc
LinuxCNC terminated with an error. You can find more information in the log:
/home/mg123/linuxcnc_debug.txt
and
/home/mg123/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
You are going good !
Please Log in to join the conversation.
