how to invert axes ?

More
06 Apr 2020 13:19 - 06 Apr 2020 13:19 #162909 by alexandrub
Hello,

in my plasma aplication I want to invers axes like in the picture. It will easy for my orientation. How can i do that?

Thank you.

Attachments:
Last edit: 06 Apr 2020 13:19 by alexandrub.

Please Log in or Create an account to join the conversation.

More
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
Last edit: 06 Apr 2020 14:34 by Clive S.

Please Log in or Create an account to join the conversation.

More
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?

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

More
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.

More
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.

More
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

Please Log in or Create an account to join the conversation.

More
06 Apr 2020 14:46 #162920 by alexandrub
Replied by alexandrub on topic how to invert axes ?

cmorley wrote: 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.

More
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 :
    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.

More
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.127 seconds
Powered by Kunena Forum