punching machine

More
03 Jan 2011 12:23 #6404 by anpe
Replied by anpe on topic Re:punching machine
Hi, andypugh

I like way number 3 (Do you want the G-code program to know (then see the M66 command))
I've linked pin12 with digital-in-00
Is it possible to show value of variable #5399 by (MSG, ...)?

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

More
03 Jan 2011 12:28 #6406 by BigJohnT

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

More
14 Jan 2011 13:45 #6683 by anpe
Replied by anpe on topic Re:punching machine
Hi All
Another question.
My machine has jumping guideners and they change position depends on X coord. I can solve this problem using G-code but I'd like to use HAL.
Guideners have two positions (up and down).

I tested in HAL CONFIGURATION and noticed that Xpos-cmd keeps wrong value. I need absolute coordinate after homing.

Thanx

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

More
14 Jan 2011 17:00 #6685 by andypugh
Replied by andypugh on topic Re:punching machine
What is XPos-cmd linked to? Signal names are unique to your setup.

I thought that the motor positions were in absolute coordinates.

Can you be a bit more clear about what you are trying to do, and how you hope to do it?

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

More
14 Jan 2011 17:31 #6686 by anpe
Replied by anpe on topic Re:punching machine
I used example from integrator manual. I dont need accuracy with X coordinate, but while homing coord. value become negative and doesnt correspond to real value. Maybe it's because i use HAL CONFIGURATION.
I try to link specified x-coordinate value with parport.0.pin-05-out.
Sorry,
I cannot explain better

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

More
15 Jan 2011 00:18 #6693 by andypugh
Replied by andypugh on topic Re:punching machine
When you say "absolute position" do you really mean "relative position"?

Do you want to toggle a pin when the X coordinate passes through a certain value?

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

More
15 Jan 2011 09:41 #6703 by anpe
Replied by anpe on topic Re:punching machine
Yes, I need to toggle signal on pin-05 when phisical distance between current axe x position and home switch more then certain value.
I've fount that halui.axis.0.pos-commanded is right for my purpose. Am I right?

Using comp9 is enough?

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

More
15 Jan 2011 14:50 #6706 by andypugh
Replied by andypugh on topic Re:punching machine
Look at wcomp. (sorry,on iPhone)

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

More
17 Jan 2011 06:48 #6738 by anpe
Replied by anpe on topic Re:punching machine
Thanks andypugh

It works.
My code:

setp timedelay.0.on-delay 10.0
setp timedelay.0.off-delay 10.0
net x-cur <= halui.axis.0.pos-commanded
setp wcomp.0.min 500.0
setp wcomp.0.max 6000.0
net x-cur => wcomp.0.in
net pneu wcomp.0.out => halui.program.pause timedelay.0.in
#net pneu wcomp.0.under => halui.program.pause timedelay.0.in

net delay timedelay.0.out => halui.program.resume

When I uncomment commented string, emc says : halui.program.pause was already linked

My aim is: When x-cur > 500 mm program is paused, delayed for 10 sec parport.0.pin-05-out toggled to 1, then program resumed.
When x-cur < 500 mm program is paused, delayed for 10 sec parport.0.pin-05-out toggled to 0 then resumed

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

More
17 Jan 2011 12:06 #6739 by BigJohnT
Replied by BigJohnT on topic Re:punching machine
As you have found out you can only link a pin once.

Here is a pretty good explanation on how the net command works.

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

John

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

Time to create page: 0.493 seconds
Powered by Kunena Forum