Beckhoff ethercat 64 with bit linuxcnc, How to install.

More
6 years 2 weeks ago #185632 by Mduran
Thanks Grotius for your explanation, as I was telling you, I'm new to installing LinuxCNC with ethercat and I didn't know where it was going, so if this installation step can I skip it? :

# Install linuxcnc as rip git clone github.com/grotius-cnc/linuxcnc.git
cd linuxcnc / debian /
./configure uspace cd ..
cd src ./autogen.sh ./configure --with-realtime = uspace
Make # -j2
sudo make setuid

Since there is an executable LinuxCNC in the .iso without the need to use console scripts to start LinuxCNC and I copy the 2 lcec files into the linuxcnc folder that comes already when installing the .iso in their respective addresses.

Please Log in to join the conversation.

More
6 years 2 weeks ago #185650 by Grotius
Hi Mike,

You can skip that step indeed.
Be sure the lcec.so goes into the rtlib of linuxcnc. The lcec_conf could be placed where your ini file is.
In the hal file, where you referere to the lcec_conf file, you could use a full path name.

Good luck !

Please Log in to join the conversation.

More
6 years 2 weeks ago #185882 by Nico2017
Hi Grotius,
thanks for the update for installing linuxcnc and ethercat on Buster.
Did you manage to make glade and its library working on this OS? To me I manage to do like you: ethercat + linuxcnc but still struggling with the linuxcnc library for glade installation and I believe this is related to the python version.
Cheers,
Nicolas

Please Log in to join the conversation.

More
6 years 2 weeks ago #185888 by Mduran
hi grotius, in the script this part fails me:

3. Install linuxcnc-ethercat
$ cd linuxcnc-ethercat / => make

it shows me the following error:

configure.mk.8: *** halcompile / comp executable not found or set.

Do you know what is it?

Please Log in to join the conversation.

More
6 years 2 weeks ago #185931 by Grotius
@ Nico,

Ahaa... i did not know that.

To install glade on buster :

Attachment not found


Usage : $ sudo ./setup2.txt

It has a txt extension, but that doesn't affect a bash script at all :laugh:

Good luck !!

@ Mike,

The linuxcnc-ethercat is the easyest to install.

For example, you can execute this script :

Attachment not found


usage $ ./setup1.txt

Please Log in to join the conversation.

More
5 years 10 months ago #190749 by TheRoslyak
A very dumb question
How I can to send command to el2004 from terminal?
Ethercat download -p (0/1) -t bool 0x7000 1 1 isn't work?

Upd. I do this by "halcmd lcec.0.D2.dout-0 1" But how to send it by simple terminal?

Please Log in to join the conversation.

More
5 years 10 months ago #190881 by Grotius
Hi,

This post has a attachment txt file with example command's. It point's to the documentation for the command's.
forum.linuxcnc.org/24-hal-components/223...ver?start=990#189977

file

Please Log in to join the conversation.

More
5 years 10 months ago #190903 by chimeno
Hello @TheRoslyak

It is trying to send an SDO configuration value to a PDO, I think it is not possible, but it can send a pulse to the register that will be reflected in the output an instant.
Code:
ethercat reg_write -p4 --type int8 0xf00 0x01
Code:
0xf00
registry value
Code:
0x01
value


Greeting
Chimeno

Please Log in to join the conversation.

More
5 years 8 months ago #199468 by V-max
Hi all,
I'm new here, in Linux CNC and some brick-brain, but I think that I can memorize this thread completely.
I have got an AX5203 (hardware 1) servo Beckhoff and I would like to integrate it in linuxcnc.
I would like to congratulate the major contributors to this thread. Grotius, Nicolas, Chimeno......
I've been having a lot of trouble installing due to several issues, the last one that I cant solve is the headers for 4.19.0-9 or 4.19.0-11 kernels, I'm am not able to find them in any repository, in Debian webpage they are no longer available. Finally, I've installed the updated one, I mean 4.19.0.14-rt-amd64, linux-image and kernel.
First question: Did I do well?, Do you know where to find the headers for 4.19.0.09?

Following with the installatiƶn I've been able to have the EtherCAT Master installed, running and I can detect the slave (AX5203) , but I'm blocking with the attached linuxcnc file report.

"Debug file information:
Note: Using POSIX realtime
note: MAXV max: 5.000 units/sec 300.000 units/min
note: LJOG max: 5.000 units/sec 300.000 units/min
note: LJOG default: 0.250 units/sec 15.000 units/min
note: jog_order='XYZ'
note: jog_invert=set([])
lcec_conf: ERROR: invalid arguments
postgui.hal:2: waitpid failed /home/avc/linuxcnc-ethercat/src/lcec_conf lcec_conf
postgui.hal:2: /home/avc/linuxcnc-ethercat/src/lcec_conf exited without becoming ready
2768
2814
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
"
Any clue, documentation, recommendation, etc..... will be welcomed.

@Chimeno , Is the ax5203 config file correct,? Any clue or documentation recommended?

Please Log in to join the conversation.

More
5 years 8 months ago #199469 by db1981
Hi,

your command for calling lcec_conf is wrong it should be like this:

loadusr -W /home/avc/linuxcnc-ethercat/src/lcec_conf /home/avc/linuxcnc/configs/sim.axis/ethercat-conf.xml

but i'm not sure at the moment if you can do this in an postgui.hal

Then in your ethercat_conf.xml your slave_idx should be "0" , because its the first device after the master .


From where did you get the initcmd's ? Format is correct. But the drive would stay in error. No Motors and encoders configured. Also for the DC-Bus there is linking enabled. (if it's only one drive, this couldn't be....) Saftycard enabled ....

Please Log in to join the conversation.

Time to create page: 0.218 seconds
Powered by Kunena Forum