Forum Header

Need help setting up parallel port on new build

More
5 years 2 months ago #219070 by CNCApples
The LinuxCNC home page suggests that 2.7 is generally a better choice for software stepping using a parallel port.
I'm still at the beginning of my project anyhow so I will install 2.8 and report back

Please Log in to join the conversation.

More
5 years 2 months ago #219073 by phillc54
The error you are getting is in the hal file, lut5.0.in-4 is used twice (in the first and last lines).
Code:
net all-limit-home => lut5.0.in-4 net all-limit <= lut5.0.out net homing-x <= axis.0.homing => lut5.0.in-0 net homing-y <= axis.1.homing => lut5.0.in-1 net homing-z <= axis.2.homing => lut5.0.in-2 net homing-a <= axis.3.homing => lut5.0.in-3 net homing-b <= axis.4.homing => lut5.0.in-4


The lut5 component only has 5 inputs. Changing it to the following may work:
Code:
net all-limit-home => lut5.0.in-4 net all-limit <= lut5.0.out net homing-x <= axis.0.homing => lut5.0.in-0 net homing-y <= axis.1.homing => lut5.0.in-1 net homing-z <= axis.2.homing => lut5.0.in-2 loadrt or2 addf or2.0 servo thread net homing-a <= axis.3.homing => or2.0.in0 net homing-b <= axis.4.homing => or2.0.in1 net homing-ab <= or2.0.out    => lut5.0.in-3

Please Log in to join the conversation.

More
5 years 2 months ago #219079 by CNCApples
So after a bit of trouble I was able to install 2.8 and made the changes to the HAL and INI file, included here.
However I am now getting another issue but still relating to homing.
I've done a fair bit of reading regarding HAL and INI but am having difficulty here, do you know of any more resources I could look into?

Debug file information:
Note: Using POSIX realtime
./demo_machine.hal:47: Pin 'axis.0.homing' does not exist
1521
stopping realtime threads
Unloading hal components
Note: Using POSIX realtime.





Attachment not found


Attachment not found

Please Log in to join the conversation.

More
5 years 2 months ago #219081 by phillc54
Now that you are on 2.8 it will be joint.0 rather than axis.0 for the changes.

The standard docs are quite reasonable.
linuxcnc.org/docs/2.8/html/

Please Log in to join the conversation.

More
5 years 2 months ago #219082 by CNCApples
Thank you, I've gone ahead and made the changes from axis to joint but now I'm getting another issue with regards to the changes made earlier.

HAL: ERROR: bad position: 0
./demo_machine.hal:51: addf failed
2241

Cheers for the link, I think I may take a day or two off this to have a read through

Please Log in to join the conversation.

More
5 years 2 months ago #219084 by phillc54
Sorry, that line should be:
Code:
addf or2 servo-thread  

Please Log in to join the conversation.

More
5 years 2 months ago #219085 by CNCApples
I was able to fix that issue and a couple others further down on line 122 where I'd copied 'a' axis info and did not replace with 'u'. And now I have another one but this one really has me stumped. 

Attachment not found

Please Log in to join the conversation.

More
5 years 2 months ago #219086 by phillc54
You will need a 'U' here as well.
Code:
KINEMATICS = trivkins coordinates=XYZA

Please Log in to join the conversation.

More
5 years 2 months ago #219089 by CNCApples
It Runs. Thank you so much for all your help!
I am indebted to you!

Please Log in to join the conversation.

More
5 years 2 months ago #219090 by phillc54
You are welcome.
Enjoy...

Please Log in to join the conversation.

Time to create page: 0.159 seconds
Powered by Kunena Forum