- Posts: 19306
- Thank you received: 0
z axis reversed
mariusl wrote: Andy,
Will it be the OUTPUT_SCALE setting under each individual AXIS section?
Is it stepper or servo?
Please Log in to join the conversation.
Then you need to make the encoder scale negative. Or possibly swap the encoder A and B phases.mariusl wrote: Servo system Andy.
This might also need you to negate the PWM scaling factor too.
Please Log in to join the conversation.
I made the encoder scale negative and the output_scale negative and got a huge runaway on that axis. I did not swap the A and B signal yet.
So I will have to keep the ENCODER_SCALE as is and make the OUTPUT_SCALE negative and swap A and B signals on the hardware connection.
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
mariusl wrote: Andy,
I made the encoder scale negative and the output_scale negative and got a huge runaway on that axis. I did not swap the A and B signal yet.
So I will have to keep the ENCODER_SCALE as is and make the OUTPUT_SCALE negative and swap A and B signals on the hardware connection.
This is a situation where things tend to cancel out. For example if you swap A and B and then change the encoder scale you will end up exactly back where you were.
(except that the PID might get confused).
I suggest you need to undo one of the changes, not add more.
Please Log in to join the conversation.
Sounds like it did nothing (so you ended up with positive feedback=runaway)
Please Log in to join the conversation.
PCW wrote: what final parameter does OUTPUT_SCALE actually change in your system?
Sounds like it did nothing (so you ended up with positive feedback=runaway)
That is correct, it changed nothing when I made it negative. It does make sense though to swap the feedback and make the scale negative. Then the axis motion should be reversed with proper feedback.
I will be back at the machine on Tuesday and then I will test what Andy suggested. I will give feedback.
Regards
Marius
www.bluearccnc.com
Please Log in to join the conversation.
- grossman83
- Offline
- New Member
-
- Posts: 9
- Thank you received: 0
Fortunately, I was able to dig through axis.py and flip these keys solely for the purpose of jogging the axes. You could even swap the axes if you like... say because your computer is at 90 degrees rotation relative to your router/mill/lathe. The relevant lines of code are here with my mod:
Hope this proves useful to someone
-Marc
PS: if anyone knows how to mirror the display I'm still trying to figure that out... see the display assumes that my spindle is on the left, but mine is on the right.
Please Log in to join the conversation.
grossman83 wrote: PS: if anyone knows how to mirror the display I'm still trying to figure that out... see the display assumes that my spindle is on the left, but mine is on the right.
The display is in glcanon.py
github.com/LinuxCNC/linuxcnc/blob/master...274/glcanon.py#L1090
If I was in your position I would experiment with adding a
glRotatef(180, 0, 1, 0)
around that point.
I think that your lathe is basically conventional except rotated through 180 degrees on Y. glrotate is (angle, X-amount, Y-amount, Z-amount) In fact I think that those two lines there could be (90,1,0,-1) but with rotations order matters, to there might be a reason for the current two-line method.
glcanon is Python, so just changing the file and restarting LinuxCNC will work, no need to compile anything.
Please Log in to join the conversation.
