Stepconf jog is working but AXIS will not move the engines

More
28 Dec 2017 00:22 #103769 by ragt
Hello,
New to the forum and to LinuxCNC so help is much appreciated.
WHeezy + LinuxCNC 2.7.11 all fresh installs.
HAL + INI + dmesg files are attached.
Setup:
ASUS P5ND (PnP On board parallel port) - no printer.
Parallel port set to 0x378 IRQ 7 ECP. (tried to change - all is working but the issue still happens when running in AXIS)
l@rancnc:~$ dmesg | grep parport
[ 8.355982] parport_pc 00:09: reported by Plug and Play ACPI
[ 8.356196] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]
[ 11.992177] lp0: using parport0 (interrupt-driven).
Break board - 5 Axis... same as:
www.ebay.com/itm/US-Ship-5-Axis-MACH3-CN...9:g:d6AAAOSw3ydVmzqq
Break board setup:
All pins are "Unused" except for pins:
#2 - X step
#3 - X Direction
#14 - Amplifier Enable
(Note that currently I disconnected all engines and drivers - and only kept the X engine+driver in order to narrow down the issue)
Driver: M542H set to 2.8V and 2 microsteps.
Engine: NEMA23 76mm 3V 1.8.

Issue:
In Stepconf engines are tested and working fine (all 3 of them) (JOG + RUN).
At this point, while in the test screen, I can't rotate the engine by hand.

In AXIS, after power on, I click on the left/right/up/down/pageUP/pageDown and on the screen the tool is moving (no error msg). While clicking or running the program I expected that the engines will move. They do not.
At this point (F2 still on) if I try to rotate the engine by hand - I can do that easily (seems that the engines @ AXIS do not get instructions/power).
What I'm I doing wrong?

Any direction on how to resolve is greatly appreciated.

Thank you,
Ran

File Attachment:

File Name: MyCNC.ini
File Size:2 KB

File Attachment:

File Name: MyCNC.hal
File Size:3 KB

File Attachment:

File Name: dmesg.txt
File Size:60 KB
Attachments:

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

More
28 Dec 2017 03:46 #103771 by Todd Zuercher
It is a common problem. Many stepper drivers enable inputs are actually disables. Add to this the fact that Stepconfig does not use the enable signals in testing. What you probably need to do is simply invert the enable signals.

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

More
28 Dec 2017 04:53 #103774 by rodw

What you probably need to do is simply invert the enable signals.

Or just disconnect them altogether... on most drivers, enable means (dis)able so you might only power it up in response to an estop.

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

More
28 Dec 2017 06:13 #103775 by ragt
Thank you,
Inverting pin 14 (Enable) has the following effect:
1. Stepconf test does not work any longer
2. AXIS will not start. Error msg

File Attachment:

File Name: Invert_pin_14.txt
File Size:58 KB
.
Attachments:

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

More
28 Dec 2017 06:19 #103776 by ragt
Thank you,
Inverting pin 14 and also disconnecting enable all together did not resolve the issue. Same as before for both test (working) and not working (AXIS).
(Inverting produce an error see attached).

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

More
28 Dec 2017 06:34 #103777 by rodw
It does not look like the enable is the issue (but leave it disconnected for now - as I have a similar stepper driver) but you have edited a simulation.

This pin needs to be replaced with a real one in your hal file
pin 'parport.0.pin-14-out-invert-fake' not found

If you read the statements where it says debug you will find your clues.
It will be even easier if you start LInuxCNC from a terminal window.

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

More
28 Dec 2017 06:37 #103778 by rodw
Sorry, this is coming from you loading a simulator parallel port with:
loadrt sim_parport names=parport.0

I have never used a parallel port but I think you should be using this instead
loadrt hal_parport

but you might need to add some parameters to it and change a few more lines (eg those with an addf)

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

More
28 Dec 2017 13:27 #103790 by Todd Zuercher
I should have noticed this right away, but I was too lazy to bother looking at your configuration files. After having a quick peek the answer is obvious.
When you started setting up your config in Stepconfig, it looks like you selected the "Simulation" option check box on the first screen. Rerun Stepconfig and uncheck that box.
Attachments:

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

More
28 Dec 2017 18:58 #103800 by ragt
Thank you rodw much appreciated.

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

More
28 Dec 2017 18:59 #103801 by ragt
Thank you Todd for the solution.
It is now working.

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

Time to create page: 0.118 seconds
Powered by Kunena Forum