chuck ladder work?

More
08 Nov 2012 04:59 - 08 Nov 2012 05:03 #26352 by jlviloria
chuck ladder work? was created by jlviloria
first attempt with HAL, but still do not quite understand your logic. I'm translating everything to see if I get something acceptable.

try ladder, but I want to walk before throwing in my machine you see it and give me your valuable opinions:

INPUT

net foot-chuck ==> hm2_5i25.0.7I64.0.2.in-00 ==> classicladder.0.in-00
net spindle-on ==> motion.spindle-on ==> classicladder.0.in-10

OUTPUT

net chuck-open ==> hm2_5i25.0.7i64.0.2.out-02 ==> classicladder.0.out-02
net chuck-close ==> hm2_5i25.0.7i64.0.2.out-03 ==> classicladder.0.out-03


please do not laugh if it's crazy what I'm doing. ;)
Attachments:
Last edit: 08 Nov 2012 05:03 by jlviloria.

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

More
08 Nov 2012 08:51 #26356 by andypugh
Replied by andypugh on topic chuck ladder work?

net spindle-on ==> motion.spindle-on ==> classicladder.0.in-10

This isn't quite right. I actually have exactly this logic on my milling machine drawbar release, and it's just plain wrong (and will change soon).
The problem is that the spindle can be off, but still spinning at high speed.

Personally I would do all this in HAL, (because I don't understand Ladder.)

loadrt and2 count =1
loadrt neat count = 1
...
addf and2.0 servo-thread
addf near.0 servo-thread
...
net pedal hm2_5i25.0.7I64.0.2.input-00 => and2.0.in0
net spindle_speed => near.0.in0
setp near.0.in1 0
setp near.0.diffference 0.1
net spindle-stopped near.0.out => and2.in1
net chuck-open and2.0.out => hm2_5i25.0.7I64.0.2.output-00

This assumes that spindle_speed exists as a signal already. It also assumes no other and2 modules are loaded. The 7i64 pin names are probably wrong too, unless you are using the master branch (I changed them in the driver)

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

More
08 Nov 2012 09:33 #26358 by jlviloria
Replied by jlviloria on topic chuck ladder work?
Andy, thanks for you answer

try ladder, but linuxcnc, I do nothing.

the strange thing is that when I open the settings halmeter.

All inputs and outputs so I get:

hm2_5i25.0.7i64.0.2.digin.xx.input
hm2_5i25.0.7i64.0.2.digout.xx.output

I do not get as 7i77

thanks

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

More
08 Nov 2012 20:15 #26367 by BigJohnT
Replied by BigJohnT on topic chuck ladder work?
Do you have the field power turned on? If not the 7i77 pins will not be available to the 5i25.

John

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

More
08 Nov 2012 21:17 #26376 by jlviloria
Replied by jlviloria on topic chuck ladder work?
John with the I / O of 7i77. worked perfect the ladder.

7i64 but with no work.

the 7i64 shows the pins so.

hm2_5i25.0.7i64.0.2.digin.xx.input
hm2_5i25.0.7i64.0.2.digout.xx.output

card is connected to 7i77. through a cable mesanet purchased directly. is connected in 7i77. in TB6. and the 7i64 in SERIAL PORT.

i need change other jumper?

thanks

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

More
08 Nov 2012 22:50 #26379 by BigJohnT
Replied by BigJohnT on topic chuck ladder work?
We will have to wait for someone familiar with the 7i64 to chime in.

How are your jumpers configured?

John

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

More
09 Nov 2012 03:40 #26391 by andypugh
Replied by andypugh on topic chuck ladder work?

the 7i64 shows the pins so.
hm2_5i25.0.7i64.0.2.digin.xx.input
hm2_5i25.0.7i64.0.2.digout.xx.output

Where do you see these pin names? In "Show Machine Config" or halcmd you mean?
They don't look right to me, but if you are seeing hm2_5i25.0.7i64.0.2 then the card is being detected correctly.
What doesn't work? How have you wired the terminals on the 7i64? You know that the inputs need both +ve and -ve terminals connecting, and show "true" when the switch allows current to flow from +ve to -ve?

For example:
+12V -> 7i64+ -> 7i64- -> switch in -> switch out -> GND
Or
+12V -> switch in -> switch out -> 7i64+ -> 7i64- -> GND

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

Time to create page: 0.070 seconds
Powered by Kunena Forum