× Forum Header

Need help setting up parallel port on new build

More
29 Aug 2021 06:01 #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 or Create an account to join the conversation.

More
29 Aug 2021 06:56 - 29 Aug 2021 06:57 #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).
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:
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
Last edit: 29 Aug 2021 06:57 by phillc54.

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

More
29 Aug 2021 09:35 #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.





File Attachment:

File Name: demo_machi...8-29.hal
File Size:5 KB

File Attachment:

File Name: demo_machi...8-29.ini
File Size:3 KB
Attachments:

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

More
29 Aug 2021 09:42 #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 or Create an account to join the conversation.

More
29 Aug 2021 09:56 #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 or Create an account to join the conversation.

More
29 Aug 2021 10:00 - 29 Aug 2021 10:01 #219084 by phillc54
Sorry, that line should be:
addf or2 servo-thread
 
Last edit: 29 Aug 2021 10:01 by phillc54.

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

More
29 Aug 2021 10:24 #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. 
Attachments:

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

More
29 Aug 2021 10:29 #219086 by phillc54
You will need a 'U' here as well.
KINEMATICS = trivkins coordinates=XYZA

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

More
29 Aug 2021 10:58 #219089 by CNCApples
It Runs. Thank you so much for all your help!
I am indebted to you!

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

More
29 Aug 2021 11:03 #219090 by phillc54
You are welcome.
Enjoy...

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

Time to create page: 0.104 seconds
Powered by Kunena Forum