A-axis is reversed, need to fix...

More
17 Dec 2015 02:42 #67065 by fc60
Greetings,

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
Attachments:

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

More
17 Dec 2015 06:39 - 17 Dec 2015 06:47 #67067 by Rick G
In your ini file under [AXIS_3] have you tried changing...
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
Last edit: 17 Dec 2015 06:47 by Rick G.
The following user(s) said Thank You: fc60

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

More
17 Dec 2015 10:30 #67073 by andypugh

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.
The following user(s) said Thank You: fc60

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

More
17 Dec 2015 18:49 #67097 by fc60
Greetings,

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.

Time to create page: 0.119 seconds
Powered by Kunena Forum