Re:pyVCP Online Documents

More
14 Apr 2009 11:54 #88 by pleezwrite
Replied by pleezwrite on topic Re:Led
Yes, I saw the error, then maybe my whole concept is wrong:

So, I have an input for X home switch and would like to link this pin to my large pyvcp LED because the screen is very far from the operator and the little home cross is not very visible. This would help us to see if the machine has really found home.

My concern is now that this is not feasible as input pin No. 10 is used for two inputs (LED for pyvcp and home switch)??? Or am I wrong?

Regards,
Adam

Uses EMC for: 3 axis mill, 2 axis CNC heater
Company profile: recumbent bicycle manufacturer

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

More
14 Apr 2009 12:00 #89 by alex_joni
Replied by alex_joni on topic Re:Led
pleezwrite wrote:

My concern is now that this is not feasible as input pin No. 10 is used for two inputs (LED for pyvcp and home switch)??? Or am I wrong?


Well, you should have said that from the beginning ;)

You are not allowed to connect two signals to one writer pin (parport.0.pin-10-in), but you can connect one signal to more than one reader pins.
So in your case you have the 'Zhome' signal (you'll find the exact name in the hal file) which is connected to parport.0.pin-10-in and to the motion controller (something like net Zhome paport.0.pin-10-in axis.2.home-sw-in).

You then want (in your custom hal file) to connect that signal to the pyvcp pin:
net Zhome pyvc.xref

And that should be it.

Regards,
Alex

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

More
14 Apr 2009 12:08 #90 by BigJohnT
Replied by BigJohnT on topic Re:Led
Just to add a bit to what Alex said...

A little reading material is here:

www.linuxcnc.org/docview/devel/html//hal_basic_hal.html#r1_1_4

Also a good way to find out what is connected to what open up the HAL Configuration window from the Machine menu. You can find the signal names and click on them and see what is connected and you can see what pins have what connected to them.

www.linuxcnc.org/docview/devel/html//hal_basic_hal.html#r1_1

John

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

More
16 Apr 2009 05:11 #109 by pleezwrite
Replied by pleezwrite on topic Re:Led
Thanks guys for the help, its all ok and understood now!

Adam

Uses EMC for: 3 axis mill, 2 axis CNC heater
Company profile: recumbent bicycle manufacturer

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

More
21 Apr 2011 10:45 - 21 Apr 2011 10:49 #9216 by piasdom
Replied by piasdom on topic Re:pyVCP Online Documents
if it doesn't start, check for errors in syntax.(i do that a lot:)
what is the error message ? in the error message there is
a debug section. i usually look there first.








OOPS.....i need to read "THE LAST" post :)
Last edit: 21 Apr 2011 10:49 by piasdom.

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

More
17 Dec 2011 16:38 #15774 by cmorley
Replied by cmorley on topic Re:pyVCP Online Documents
show the error code ,HAL code and XML file and we could help more specifically

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

Time to create page: 0.207 seconds
Powered by Kunena Forum