Inverting the Direction of a joint in Tandem Axis has no effect
- MartyJ
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 13
11 May 2021 20:44 - 11 May 2021 20:51 #208581
by MartyJ
Inverting the Direction of a joint in Tandem Axis has no effect was created 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:
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!
Last edit: 11 May 2021 20:51 by MartyJ.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19968
- Thank you received: 6777
11 May 2021 21:55 #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.
The following user(s) said Thank You: MartyJ
Please Log in or Create an account to join the conversation.
- MartyJ
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 13
11 May 2021 23:28 - 11 May 2021 23:30 #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.
Last edit: 11 May 2021 23:30 by MartyJ.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18384
- Thank you received: 5018
11 May 2021 23:29 #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
The following user(s) said Thank You: MartyJ
Please Log in or Create an account to join the conversation.
- MartyJ
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 13
11 May 2021 23:31 #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 or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18384
- Thank you received: 5018
11 May 2021 23:45 #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
The following user(s) said Thank You: MartyJ
Please Log in or Create an account to join the conversation.
- MartyJ
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 13
11 May 2021 23:46 #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 or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23225
- Thank you received: 4897
12 May 2021 21:31 #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
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 or Create an account to join the conversation.
- MartyJ
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 48
- Thank you received: 13
13 May 2021 01:01 - 13 May 2021 01:01 #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.
Last edit: 13 May 2021 01:01 by MartyJ.
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds