- Posts: 59
- Thank you received: 10
Ethercat HAL driver
- Masa
- Offline
- Senior Member
-
Less
More
5 years 4 months ago #212462
by Masa
Replied by Masa on topic Ethercat HAL driver
I connect the encoder Z phase signal from the servo driver to the lacth input using a signal conversion circuit, but the HAL Pin connection fails.
net home-index-enable joint.0.index-enable lcec.0.1.enc-0-latch-ext-valid
error:
Signal'home-index-enable' can not add OUT pin'lcec.0.1.enc-0-latch-ext-valid', it already has I / O pin'joint.0.index-enable'
No change in the signal is felt when observing with the Halscope. When I connected it to the gate instead of the latch, I was able to see the change in the signal on the Hal Watch. However, I am having trouble connecting the Hal Pin with the same error.
Am I doing something wrong?
net home-index-enable joint.0.index-enable lcec.0.1.enc-0-latch-ext-valid
error:
Signal'home-index-enable' can not add OUT pin'lcec.0.1.enc-0-latch-ext-valid', it already has I / O pin'joint.0.index-enable'
No change in the signal is felt when observing with the Halscope. When I connected it to the gate instead of the latch, I was able to see the change in the signal on the Hal Watch. However, I am having trouble connecting the Hal Pin with the same error.
Am I doing something wrong?
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
Less
More
- Posts: 790
- Thank you received: 276
5 years 4 months ago #212468
by db1981
Replied by db1981 on topic Ethercat HAL driver
hello,
for homing you have to connect the joint.X.index-enable pin to enc-0-index-ext-pos-enable or neg-enable pin (homing at pos/neg edge of the latch input).
The latch-ext-valid pin is only the return for an real latch mesaurement function.
for homing you have to connect the joint.X.index-enable pin to enc-0-index-ext-pos-enable or neg-enable pin (homing at pos/neg edge of the latch input).
The latch-ext-valid pin is only the return for an real latch mesaurement function.
The following user(s) said Thank You: Masa
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
Less
More
- Posts: 790
- Thank you received: 276
5 years 4 months ago #212470
by db1981
Replied by db1981 on topic Ethercat HAL driver
hello,
theres an bug in your hal file.
Move the line "addf lcec.write-all servo-thread" at the last position of the addf's, after your line "addf conv-float-s32.7 servo-thread ".
at the moment your are constantly writing zero to the drives, because you are sending the output (write-all) before you are doing scaling and calculations.
And you have to move all convertions that are related to inputs (feedback) between
lcec-read and motion, otherwise motion reads zero or old values to.
-addf lcec.read-all
-addf input conversions....
-addf motion, pids, classic ladder...
-addf output conversions....
-addf lcec.write-all (the last)
all modules are called in every cycle in the order you have placed addf in the hal.
read this answer again: forum.linuxcnc.org/24-hal-components/223...er?start=1140#199443
theres an bug in your hal file.
Move the line "addf lcec.write-all servo-thread" at the last position of the addf's, after your line "addf conv-float-s32.7 servo-thread ".
at the moment your are constantly writing zero to the drives, because you are sending the output (write-all) before you are doing scaling and calculations.
And you have to move all convertions that are related to inputs (feedback) between
lcec-read and motion, otherwise motion reads zero or old values to.
-addf lcec.read-all
-addf input conversions....
-addf motion, pids, classic ladder...
-addf output conversions....
-addf lcec.write-all (the last)
all modules are called in every cycle in the order you have placed addf in the hal.
read this answer again: forum.linuxcnc.org/24-hal-components/223...er?start=1140#199443
Please Log in or Create an account to join the conversation.
- Masa
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 10
5 years 4 months ago #212472
by Masa
Replied by Masa on topic Ethercat HAL driver
Hi
I seem to have misunderstood. Homing seems to be successful. Since the operation is different from what you want, we will set it while trying the difference in parameters.
Thank you.
I seem to have misunderstood. Homing seems to be successful. Since the operation is different from what you want, we will set it while trying the difference in parameters.
Thank you.
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
Less
More
- Posts: 790
- Thank you received: 276
5 years 4 months ago #212474
by db1981
Replied by db1981 on topic Ethercat HAL driver
if it not works like expected, you have to set the parameter 8060:02 (Enable enc reset at latch) to true in the em7004 modul.
I cant remeber about that at the moment, it has been to long ago.
I cant remeber about that at the moment, it has been to long ago.
The following user(s) said Thank You: Masa
Please Log in or Create an account to join the conversation.
- Masa
- Offline
- Senior Member
-
Less
More
- Posts: 59
- Thank you received: 10
5 years 4 months ago #212486
by Masa
Replied by Masa on topic Ethercat HAL driver
Hi
The difference from the expected behavior is the behavior pattern of homing, not the behavior of em7004. Homing is working with the description of hal you pointed out. I want to reproduce the FANUC homing that is often done on Japanese machines, so I will devise the settings of linuxcnc.
Thanks for any further advice.
The difference from the expected behavior is the behavior pattern of homing, not the behavior of em7004. Homing is working with the description of hal you pointed out. I want to reproduce the FANUC homing that is often done on Japanese machines, so I will devise the settings of linuxcnc.
Thanks for any further advice.
Please Log in or Create an account to join the conversation.
Time to create page: 2.081 seconds