- Posts: 10
- Thank you received: 0
can't pass a home-mode negative number to ethercat drive with setp in HAL file
1 year 1 month ago #335583
by ShemJ
I've got Leadshine EL8 servo drives talking over ethercat and am trying to get sensorless homing to work.
With the help of the forums, specifically this post , I've found a way to request a specific homing mode. In the EL8 drive documentation, all the torque based sensorless homing modes are a negative number.
setp lcec.0.0.home-mode -6
is what I'm after. Other modes such as mode 35 which homes in place, works just fine so everything appears to be in order. As far as I can tell, the positive number homing modes work fine, but not the negative ones. I can't tell if this is a drive problem or a linuxcnc problem.
Would there be any reason why I can't pass a negative number? Syntax maybe?
With the help of the forums, specifically this post , I've found a way to request a specific homing mode. In the EL8 drive documentation, all the torque based sensorless homing modes are a negative number.
setp lcec.0.0.home-mode -6
is what I'm after. Other modes such as mode 35 which homes in place, works just fine so everything appears to be in order. As far as I can tell, the positive number homing modes work fine, but not the negative ones. I can't tell if this is a drive problem or a linuxcnc problem.
Would there be any reason why I can't pass a negative number? Syntax maybe?
Code:
HAL file
#*******************
# AXIS X
#*******************
setp cia402.0.csp-mode 1
setp cia402.0.pos-scale 1677721.6
[b]setp lcec.0.0.home-mode 35[/b]
setp lcec.0.0.home-hi-speed 500000
setp lcec.0.0.home-lo-speed 500000
setp lcec.0.0.home-acc 100000
Please Log in to join the conversation.
1 year 1 month ago #335605
by Hakan
Replied by Hakan on topic can't pass a home-mode negative number to ethercat drive with setp in HAL file
Does home-mode have halType="u32" in ethercat-conf.xml? Try changing to "s32".
Please Log in to join the conversation.
1 year 1 month ago #335612
by ShemJ
Replied by ShemJ on topic can't pass a home-mode negative number to ethercat drive with setp in HAL file
Ah, of course. That was it! Thanks for that.
Please Log in to join the conversation.
Time to create page: 0.221 seconds
