- Posts: 48
- Thank you received: 0
Inverting the Direction of a joint in Tandem Axis has no effect
5 years 5 months ago #208581
by MartyJ
Hello all,
I am setting up a XYYZ gantry machine. 5i25/single 7i76 setup driving Leadshine closed-loop stepper drivers.
I want to invert the direction of the tandem joint, in my case, that's stepgen 3, using:
Any other ideas? Ini/HAL attached, thanks!
I am setting up a XYYZ gantry machine. 5i25/single 7i76 setup driving Leadshine closed-loop stepper drivers.
I want to invert the direction of the tandem joint, in my case, that's stepgen 3, using:
Code:
setp hm2_5i25.0.stepgen.03.direction.invert_output true
- Because it's a closed-loop driver system, switching A+/A- wires will not work to invert the direction of the motor.
- The stepscale is a positive value for both joints in this tandem axis.
- There is no combination of stepscale sign or inverting stepgens 01 or 03 which result in stepgen 03 inverting its drection, even though I verify that the stepgen.03.direction.invert_output parameter is successfully registered as "true".
Any other ideas? Ini/HAL attached, thanks!
Please Log in to join the conversation.
- tommylight
-
- Online
- Administrator
-
Less
More
- Posts: 22009
- Thank you received: 3
5 years 5 months ago #208587
by tommylight
Replied by tommylight on topic Inverting the Direction of a joint in Tandem Axis has no effect
The direction can be inverted by simply putting a - in front of the SCALE in the ini file, or removing it if there is already there.
Please Log in to join the conversation.
5 years 5 months ago #208599
by MartyJ
Replied by MartyJ on topic Inverting the Direction of a joint in Tandem Axis has no effect
Thanks! So I tried that, that's what "POS" and "NEG" mean in the STEPSCALE fields in the chart in my first post.
For my primary joint on stepgen 01, adding a - in front of the stepscale value reverses the direction of the motor. For the secondary stepgen, it does not.
For my primary joint on stepgen 01, adding a - in front of the stepscale value reverses the direction of the motor. For the secondary stepgen, it does not.
Please Log in to join the conversation.
5 years 5 months ago #208600
by PCW
Replied by PCW on topic Inverting the Direction of a joint in Tandem Axis has no effect
Since stepgen 3 never changes direction, I would suspect a hardware problem
Please Log in to join the conversation.
5 years 5 months ago #208601
by MartyJ
Replied by MartyJ on topic Inverting the Direction of a joint in Tandem Axis has no effect
Huh. I'll try hooking it up to stepgen 4 and see what happens, thanks for the idea.
Please Log in to join the conversation.
5 years 5 months ago #208603
by PCW
Replied by PCW on topic Inverting the Direction of a joint in Tandem Axis has no effect
Might be drive wiring also
You can test the direction inversion with a voltmeter or just a
LED and halcmd
halcmd setp hm2_5i25.0.stepgen.03.direction.invert_output true
halcmd setp hm2_5i25.0.stepgen.03.direction.invert_output false
Should toggle the output polarities of the direction 3 outputs
You can test the direction inversion with a voltmeter or just a
LED and halcmd
halcmd setp hm2_5i25.0.stepgen.03.direction.invert_output true
halcmd setp hm2_5i25.0.stepgen.03.direction.invert_output false
Should toggle the output polarities of the direction 3 outputs
Please Log in to join the conversation.
5 years 5 months ago #208604
by MartyJ
Replied by MartyJ on topic Inverting the Direction of a joint in Tandem Axis has no effect
Bingo, thanks so much gents.
I'll buy a new 7i76, but for now moving to stepgen 4 has me up and running.
I'll buy a new 7i76, but for now moving to stepgen 4 has me up and running.
Please Log in to join the conversation.
5 years 5 months ago #208653
by andypugh
Could be wiring? Wire the wrong side of the cage clamp?
Replied by andypugh on topic Inverting the Direction of a joint in Tandem Axis has no effect
MartyJ wrote: Bingo, thanks so much gents.
I'll buy a new 7i76, but for now moving to stepgen 4 has me up and running.
Could be wiring? Wire the wrong side of the cage clamp?
Please Log in to join the conversation.
5 years 5 months ago #208681
by MartyJ
Replied by MartyJ on topic Inverting the Direction of a joint in Tandem Axis has no effect
In the end (hopefully) it was EMF the whole time. I was using a non-shielded ribbon cable to connect the 5i25 to 7i76 inside my controller box, and it passed nearby my toroidal power supply. Now I'm using a different cable routing and shielded cable, hopefully sorted.
Please Log in to join the conversation.
Time to create page: 0.331 seconds
