how to invert axes ?
- alexandrub
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 5
06 Apr 2020 13:19 - 06 Apr 2020 13:19 #162909
by alexandrub
how to invert axes ? was created by alexandrub
Attachments:
Last edit: 06 Apr 2020 13:19 by alexandrub.
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2240
- Thank you received: 474
06 Apr 2020 13:25 - 06 Apr 2020 14:34 #162911
by Clive S
Replied by Clive S on topic how to invert axes ?
There are several ways to do this but try changing the scale sign ie put a - in front of scale in the INI file
Edit I was thinking you wanted to reverse the direction of the motor
Edit I was thinking you wanted to reverse the direction of the motor
Last edit: 06 Apr 2020 14:34 by Clive S.
Please Log in or Create an account to join the conversation.
- OT-CNC
- Offline
- Platinum Member
Less
More
- Posts: 622
- Thank you received: 75
06 Apr 2020 13:40 #162914
by OT-CNC
Replied by OT-CNC on topic how to invert axes ?
I'm not sure that's a good idea. It goes against convention.
You could move your home position to the upper R corner and continue using conventional coordinate system no?
You could move your home position to the upper R corner and continue using conventional coordinate system no?
Please Log in or Create an account to join the conversation.
- jay1st
- Offline
- Premium Member
Less
More
- Posts: 127
- Thank you received: 17
06 Apr 2020 14:24 #162915
by jay1st
Replied by jay1st on topic how to invert axes ?
I had the same issue, i needed to reverse my Y axis, so i set the Y home at the max travel minus 10mm
When homing i get X=0-10 and Y=1220-10
At least it keeps the XY orientation standard
When homing i get X=0-10 and Y=1220-10
At least it keeps the XY orientation standard
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
06 Apr 2020 14:32 #162917
by cmorley
Replied by cmorley on topic how to invert axes ?
Do you want to invert the movement or invert the visuals?
Please Log in or Create an account to join the conversation.
- alexandrub
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 5
06 Apr 2020 14:36 #162918
by alexandrub
Replied by alexandrub on topic how to invert axes ?
My orientation is ok.i want just viewing to change.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
06 Apr 2020 14:39 #162919
by cmorley
Replied by cmorley on topic how to invert axes ?
What version of linuxcnc do you use?
Is it an installed version or a developer version?
what screen are you using?
Chris
Is it an installed version or a developer version?
what screen are you using?
Chris
Please Log in or Create an account to join the conversation.
- alexandrub
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 5
06 Apr 2020 14:46 #162920
by alexandrub
I use axis 2.9.0-pre0-1019-g2e0f88e plasmac screen. Is oficial version, without modification
Thank you.
Replied by alexandrub on topic how to invert axes ?
What version of linuxcnc do you use?
Is it an installed version or a developer version?
what screen are you using?
Chris
I use axis 2.9.0-pre0-1019-g2e0f88e plasmac screen. Is oficial version, without modification
Thank you.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
06 Apr 2020 15:04 #162922
by cmorley
Replied by cmorley on topic how to invert axes ?
well plasmac axis and plsmac gmoccapy are a little different change.
You will need to hand modify a python file and if you update will probably have to modify it again.
/usr/lib/python2.7/dist-packages/glnav.py
look AXIS for :
change the one line to:
save the file and one of the Z views will be as you requested.
Chris
You will need to hand modify a python file and if you update will probably have to modify it again.
/usr/lib/python2.7/dist-packages/glnav.py
look AXIS for :
def set_view_z2(self):
self.reset()
glRotatef(-90, 0, 0, 1)
mid, size = self.extents_info()
glTranslatef(-mid[0], -mid[1], -mid[2])
self.set_eyepoint_from_extents(size[1], size[0])
self.perspective = False
self.lat = 0
self.lon = 270
self._redraw()
change the one line to:
glRotatef(-180, 0, 0, 1)
save the file and one of the Z views will be as you requested.
Chris
Please Log in or Create an account to join the conversation.
- alexandrub
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 5
06 Apr 2020 15:49 #162926
by alexandrub
Replied by alexandrub on topic how to invert axes ?
It is not glnav.py in this path...or i dont find.
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds