- Posts: 295
- Thank you received: 125
Ethercat HAL driver
- chimeno
- Offline
- Elite Member
-
Less
More
5 years 10 months ago - 5 years 10 months ago #192464
by chimeno
Replied by chimeno on topic Ethercat HAL generic on raspberry 4 rt (working with beckhoff)
Hello @jc2ktr
can you publish the .xml configuration file? I'll take a look at it
After studying a little, mode 8 is position by synchronism therefore the way to act is this:
0x1A00 TXPDO1
-the status register is 0x6041
-the position is 0x6064
0x1600 RXPDO1
-the control register is 0x6040
-register 0x6060 send operation mode 8
-send position to register 0x607A
Greeting
Chimeno
can you publish the .xml configuration file? I'll take a look at it
After studying a little, mode 8 is position by synchronism therefore the way to act is this:
0x1A00 TXPDO1
-the status register is 0x6041
-the position is 0x6064
0x1600 RXPDO1
-the control register is 0x6040
-register 0x6060 send operation mode 8
-send position to register 0x607A
Greeting
Chimeno
Last edit: 5 years 10 months ago by chimeno. Reason: Edit
Please Log in or Create an account to join the conversation.
- jc2ktr
- Offline
- Premium Member
-
Less
More
- Posts: 87
- Thank you received: 17
5 years 10 months ago #192470
by jc2ktr
Replied by jc2ktr on topic Ethercat HAL generic on raspberry 4 rt (working with beckhoff)
@Chimeno
i added my .XML as attachment.
i added my .XML as attachment.
Please Log in or Create an account to join the conversation.
- chimeno
- Offline
- Elite Member
-
Less
More
- Posts: 295
- Thank you received: 125
5 years 10 months ago - 5 years 10 months ago #192480
by chimeno
Replied by chimeno on topic Ethercat HAL generic on raspberry 4 rt (working with beckhoff)
Hello @jc2ktr
Could it be that registers of more than one bit cannot be registered in bit mode?
you rectified the file you can try??
I am also not very clear about the SDO record in that format is correct, I think it is better to configure the value by PDO and simply register it with HAL
also the
value should be equal to the servo thread value
Greeting
Chimeno
Could it be that registers of more than one bit cannot be registered in bit mode?
you rectified the file you can try??
I am also not very clear about the SDO record in that format is correct, I think it is better to configure the value by PDO and simply register it with HAL
Code:
setp lcec.0.7.opmode 8
also the
Code:
appTimePeriod
Greeting
Chimeno
Last edit: 5 years 10 months ago by chimeno. Reason: Edit
Please Log in or Create an account to join the conversation.
- RobinTheunis
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
5 years 10 months ago #192540
by RobinTheunis
Replied by RobinTheunis on topic Ethercat HAL driver
Hi all,
We have converted our cnc router to ethernet. But we are struggeling quite a bit with the tuning of our machine.
The machine running internal feedback, so no encoders on the stepper motors. We have kept the original drives and used EL2521 to generate the STEP and DIR signals.
The problem that we see is when we increase the MAX_ACCELERATION above a certain point, we are seeing oscillations in the movement. Only decreasing the P values will remove these oscillations which will increase the following error.
Does anyone have an example on a working config for EL2521 or knows what we are doing wrong?
I have included our configs
We have converted our cnc router to ethernet. But we are struggeling quite a bit with the tuning of our machine.
The machine running internal feedback, so no encoders on the stepper motors. We have kept the original drives and used EL2521 to generate the STEP and DIR signals.
The problem that we see is when we increase the MAX_ACCELERATION above a certain point, we are seeing oscillations in the movement. Only decreasing the P values will remove these oscillations which will increase the following error.
Does anyone have an example on a working config for EL2521 or knows what we are doing wrong?
I have included our configs
Please Log in or Create an account to join the conversation.
- jc2ktr
- Offline
- Premium Member
-
Less
More
- Posts: 87
- Thank you received: 17
5 years 10 months ago #192541
by jc2ktr
Hi @Chimeno,
thanks for your help, that did it, i got all the slaves OP. Can enable the drive and readout the actpos.
But when i try to jog de Axis does not move. Somewhere i missed something to connect in my HAL file.
Replied by jc2ktr on topic Ethercat HAL generic on raspberry 4 rt (working with beckhoff)
chimeno wrote: Hello @jc2ktr
Could it be that registers of more than one bit cannot be registered in bit mode?
you rectified the file you can try??
I am also not very clear about the SDO record in that format is correct, I think it is better to configure the value by PDO and simply register it with HALCode:setp lcec.0.7.opmode 8
also thevalue should be equal to the servo thread valueCode:appTimePeriod
Greeting
Chimeno
Hi @Chimeno,
thanks for your help, that did it, i got all the slaves OP. Can enable the drive and readout the actpos.
But when i try to jog de Axis does not move. Somewhere i missed something to connect in my HAL file.
Please Log in or Create an account to join the conversation.
- chimeno
- Offline
- Elite Member
-
Less
More
- Posts: 295
- Thank you received: 125
5 years 10 months ago - 5 years 10 months ago #192569
by chimeno
Replied by chimeno on topic Ethercat HAL generic on raspberry 4 rt (working with beckhoff)
Hello @jc2ktr,
how good it works with linuxcnc !! I attach the modified file with a correction.
You have different settings and you have to enable one, for example number 1 why are you using the TXPDO1 and RXPDO1 registers
Hello @RobinTheunis
I've never used the device, but studying a bit, there are some configurable HAL parameters, I don't know if this can help.
Greeting
Chimeno
how good it works with linuxcnc !! I attach the modified file with a correction.
You have different settings and you have to enable one, for example number 1 why are you using the TXPDO1 and RXPDO1 registers
Code:
setp lcec.0.7.X-cmd-OPmodeRel1 1
Hello @RobinTheunis
I've never used the device, but studying a bit, there are some configurable HAL parameters, I don't know if this can help.
Code:
setp lcec......stp-freq
setp lcec......stp-maxvel
setp lcec......stp-maxaccel-fall
setp lcec......stp-maxaccel-rise
setp lcec......stp-pos-scale
Greeting
Chimeno
Last edit: 5 years 10 months ago by chimeno. Reason: more explanation
The following user(s) said Thank You: jc2ktr
Please Log in or Create an account to join the conversation.
Time to create page: 0.200 seconds