need help ethercat et linuxcnc
- stone_sleeper
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
18 Mar 2025 08:50 #324181
by stone_sleeper
need help ethercat et linuxcnc was created by stone_sleeper
Hello everyone. This is the first time i'm using linuxcnc and i have a lot of questions. I've retrofited dozens of cnc machines with mach3, but none with linuxcnc. This time i need help. I've installed and configured ethercat with kollmorgen s700 drives. I've made a window to read input and output states. and it works. My problem is that i don't know how to display the position of the axes, the x,y and z positions are always at 0 in the main window. Any ideas? I've looked for information in the forums but i guess the answer is so simple that no one has written it down. Thank you in advance.
Translated with DeepL.com (free version)
Translated with DeepL.com (free version)
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11201
- Thank you received: 3735
18 Mar 2025 10:18 #324183
by rodw
Replied by rodw on topic need help ethercat et linuxcnc
Your drives appear to be cia402 compatible devices.
If you start here
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
clone the cia402.comp and follow the cia402 examples and be sure to set the scale in pulses per device units.
Eg I use metric units and have a drive with 4000 encoder pulses per revolution on a 5mm pitch ball screw so my scale is 800 (pulses per mm)
Also check the notes about what is said about ini file settings for the joints.
The pin for the encoder Is joint.N.pos-fb which is documented here linuxcnc.org/docs/stable/html/man/man9/motion.9.html
but you should see the DRO's move if you lean on your motor.
If you start here
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
clone the cia402.comp and follow the cia402 examples and be sure to set the scale in pulses per device units.
Eg I use metric units and have a drive with 4000 encoder pulses per revolution on a 5mm pitch ball screw so my scale is 800 (pulses per mm)
Also check the notes about what is said about ini file settings for the joints.
The pin for the encoder Is joint.N.pos-fb which is documented here linuxcnc.org/docs/stable/html/man/man9/motion.9.html
but you should see the DRO's move if you lean on your motor.
The following user(s) said Thank You: stone_sleeper
Please Log in or Create an account to join the conversation.
- stone_sleeper
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
18 Mar 2025 10:28 #324184
by stone_sleeper
Replied by stone_sleeper on topic need help ethercat et linuxcnc
OK, thank you very much.
Please Log in or Create an account to join the conversation.
- stone_sleeper
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
31 Mar 2025 07:31 #325362
by stone_sleeper
Replied by stone_sleeper on topic need help ethercat et linuxcnc
Hello everyone.
It works now but i have another problem. My machine have 2 motors for the X axis. When i click on the X+ or X- button only one motor turns (X1). when i click on the Y+ or Y- button it's the other x motor that turns (X2). Any ideas?
Thanks in advance.
LINUXCNC - 2.9.4
Machine configuration directory is '/home/byuser/linuxcnc/configs/53h_alfa'
Machine configuration file is '53h_alfa.ini'
check_config:
INCONSISTENT coordinates specifications:
trivkins coordinates=XXYZ
[TRAJ]COORDINATES=XYZ
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./pre_gui.hal
identityKinematicsSetup: coordinates:XXYZ
Joint 0 ==> Axis X
Joint 1 ==> Axis X
Joint 2 ==> Axis Y
Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both
It works now but i have another problem. My machine have 2 motors for the X axis. When i click on the X+ or X- button only one motor turns (X1). when i click on the Y+ or Y- button it's the other x motor that turns (X2). Any ideas?
Thanks in advance.
LINUXCNC - 2.9.4
Machine configuration directory is '/home/byuser/linuxcnc/configs/53h_alfa'
Machine configuration file is '53h_alfa.ini'
check_config:
INCONSISTENT coordinates specifications:
trivkins coordinates=XXYZ
[TRAJ]COORDINATES=XYZ
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./pre_gui.hal
identityKinematicsSetup: coordinates:XXYZ
Joint 0 ==> Axis X
Joint 1 ==> Axis X
Joint 2 ==> Axis Y
Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both
Attachments:
Please Log in or Create an account to join the conversation.
- stone_sleeper
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
31 Mar 2025 12:01 #325384
by stone_sleeper
Replied by stone_sleeper on topic need help ethercat et linuxcnc
Solved!!!
Please Log in or Create an account to join the conversation.
- stone_sleeper
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
31 Mar 2025 12:02 #325386
by stone_sleeper
Replied by stone_sleeper on topic need help ethercat et linuxcnc
[KINS]
KINEMATICS = trivkins coordinates=XXYZ kinstype=BOTH
JOINTS = 4
KINEMATICS = trivkins coordinates=XXYZ kinstype=BOTH
JOINTS = 4
Please Log in or Create an account to join the conversation.
Time to create page: 0.110 seconds