A-axis is reversed, need to fix...
My Rotary table is moving in the wrong direction during JOG, MDI, and via program.
I suspect it is something I can fix via software? i.e. my HAL file?
I am using LinuxCNC 2.5.4, the machine is a vertical spindle mill, and the rotary axis revolves about X-axis (rotary = A-axis)
Line 45 of my HAL file says this....
net adir parport.0.pin-08-out stepgen.3.dir
Am I getting warm???
Attached is my HAL file
As always, many thanks in advance.
Cheers,
Dave
Please Log in or Create an account to join the conversation.
SCALE = -500
to
SCALE = 500
or in your hal file invert the direction output pin
linuxcnc.org/docs/2.4/html/hal_parallel_port.html
1.1.3 Parameters
(bit) parport.<portnum>.pin-<pinnum>-out-invert -- Inverts an output pin.
(bit) parport.<portnum>.pin-<pinnum>-out-reset (only for "out" pins) -- TRUE if this pin should be reset when the -reset function is executed.
(U32) parport.<portnum>.reset-time -- The time (in nanoseconds) between a pin is set by write and reset by the reset function if it is enabled.
The -invert parameter determines whether an output pin is active high or active low. If -invert is FALSE, setting the HAL -out pin TRUE drives the physical pin high, and FALSE drives it low. If -invert is TRUE, then setting the HAL -out pin TRUE will drive the physical pin low.
Rick G
Please Log in or Create an account to join the conversation.
My Rotary table is moving in the wrong direction during JOG, MDI, and via program.
I suspect it is something I can fix via software? i.e. my HAL file?
net adir parport.0.pin-08-out stepgen.3.dir
For a stepper machine the fix is very easy, you can either invert the scale as suggested by Rick or invert the direction pin
[]]net adir parport.0.pin-08-out stepgen.3.dir
setp parport.0.pin-08-out-invert 1[/code]
linuxcnc.org/docs/2.7/html/hal/parallel-port.html
Or, tick the "invert output" checkbox in Stepconf.
Please Log in or Create an account to join the conversation.
I went with the Andy Pugh approach modifying my HAL file.
Many thanks, the A-axis is now correct.
With kind regards,
David
Please Log in or Create an account to join the conversation.