x axis direction whb04b-6

More
12 Sep 2021 04:02 #220277 by dima_sz
I have a linuxcnc lathe, how do I change the X axis direction when using whb04b-6? When rotated clockwise, the X coordinate value increases, but it is necessary for the coordinate values to decrease.

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

More
12 Sep 2021 11:01 #220286 by tommylight
Put a - (minus) in front of the SCALE for that axis/joint.
Never used one so not sure where exactly that would be.

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

More
12 Sep 2021 13:00 #220301 by Aciera
Replied by Aciera on topic x axis direction whb04b-6
Post your hal and ini files please.

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

More
12 Sep 2021 15:45 #220332 by dima_sz
Replied by dima_sz on topic x axis direction whb04b-6
The machine is still in the build process, I am only tweaking the software part, so not all parameters are correct. gcode is executing correctly. Problem when using mpg whb04b-6. If you turn the knob clockwise on a physical machine, then the cutter moves from me to the center of rotation of the spindle and this is normal, but if you turn the mpg whb04b-6 knob clockwise, then the cutter moves towards me from the center of rotation of the spindle, and this is not correct. I want to get the controls I am accustomed to.
Attachments:

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

More
12 Sep 2021 16:06 - 12 Sep 2021 16:08 #220336 by dima_sz
Replied by dima_sz on topic x axis direction whb04b-6

Axis movement Z is correct
Last edit: 12 Sep 2021 16:08 by dima_sz.

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

More
12 Sep 2021 19:09 #220360 by Aciera
Replied by Aciera on topic x axis direction whb04b-6
Maybe you could use a 'MULT2'-component to multiply 'whb.axis.x.jog-scale' with -1 to reverse the direction and then connect the output-pin to 'axis.x.jog-scale'

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

More
13 Sep 2021 06:18 - 13 Sep 2021 06:21 #220403 by dima_sz
Replied by dima_sz on topic x axis direction whb04b-6
    everything worked out, only I had to use the functions conv_float_s32, conv_s32_float, mult2
Attachments:
Last edit: 13 Sep 2021 06:21 by dima_sz.
The following user(s) said Thank You: Aciera

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

Time to create page: 0.644 seconds
Powered by Kunena Forum