Newb and 5i20 DOut don't mix

More
11 Sep 2014 14:56 - 11 Sep 2014 14:58 #51061 by Niko
Hello,
I am trying to set up a two servo lathe like test bench . I have a 5i20 + 7i33 + two 7i37 .
Currently running on Ubuntu 10.04 and LinuxCNC 2.5.4
flashed the mesa with SVST8_4.BIT
PNCconf configured everything for me . So far the limit switches work servos and positioning regulators work . The demo runs fine . Digital outputs don't work at all . They are configured for X and Z enable . They are either constantly on or off and completely ignore any comands . I moved them to 46 and 47 because I thought there was someting wrong with the first ones . In the .hal I have this
# --- X-ENABLE ---
setp hm2_5i20.0.gpio.046.is_output true
setp    hm2_5i20.0.gpio.046.is_opendrain  true
net x-enable hm2_5i20.0.gpio.046.out		

# --- Z-ENABLE ---
setp hm2_5i20.0.gpio.047.is_output true
setp    hm2_5i20.0.gpio.047.is_opendrain  true
net z-enable hm2_5i20.0.gpio.047.out

What I dont see here is the => symbol whose function I don't quite understand .
How can I get digital outputs to work ?
Last edit: 11 Sep 2014 14:58 by Niko.

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

More
11 Sep 2014 15:27 - 11 Sep 2014 15:43 #51064 by cncbasher
ok can we step back a bit and check through
which servo amps are you using ? is their a reason your using digital inputs , rather than gpio , or is it just a lack of pins etc
normal gpio pins are fine for enable etc, but you may find the digital pins lack a pullup in the servo amp , and will therefore float
this will give the sense that they dont work .

the symbols are really only for human readability to show direction , linuxcnc it's self does not use them
Last edit: 11 Sep 2014 15:43 by cncbasher.
The following user(s) said Thank You: Niko

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

More
11 Sep 2014 15:50 - 11 Sep 2014 16:24 #51065 by Niko
Replied by Niko on topic Newb and 5i20 DOut don't mix
I am using OUT6 and OUT7 on the first 7i37 . The servos are designed for open drain drivers . I have managed to give them RUN through the reverse diode of the transistor so the polarity is fine . I setup one of the outputs to force pin true and two more for coolant . None of them seem to be working . HAL meter shows that they get TRUE when they should, but nothing at the other end . I measure the drain source voltage with a multimiter on diode so I am shure the transistor is not on .
What do you mean using a digital input ?
Last edit: 11 Sep 2014 16:24 by Niko.

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

More
11 Sep 2014 16:55 - 11 Sep 2014 17:03 #51067 by cncbasher
have you try'd inverting the output pin ?
add
setp hm2_5i20.0.gpio.046.invert_output true
for example
i would also just use the normal out rather than opendrain
some systems suit it better

so try :
setp hm2_5i20.0.gpio.046.is_output true
setp hm2_5i20.0.gpio.046.invert_output true
net x-enable hm2_5i20.0.gpio.046.out
Last edit: 11 Sep 2014 17:03 by cncbasher.

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

More
11 Sep 2014 17:10 - 11 Sep 2014 17:12 #51068 by Niko
Replied by Niko on topic Newb and 5i20 DOut don't mix
I have tried that, open drain and standart output . It didn't seem to work . Can the jumpers on the 5i20 somehow create this problem ?
Last edit: 11 Sep 2014 17:12 by Niko.

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

More
11 Sep 2014 18:56 #51073 by andypugh

net x-enable hm2_5i20.0.gpio.046.out


Is the "other end" of x-enable connected to anything?

Can you see x-enable changing state with halmeter?

If you go into machine->show hal config and type "sets x-enable 1" in the box, what happens?

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

More
11 Sep 2014 19:52 #51076 by Niko
Replied by Niko on topic Newb and 5i20 DOut don't mix
It doesn't allow me to write anything . But I have observed the 047.out change in hal meter .

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

More
11 Sep 2014 19:59 #51077 by andypugh

It doesn't allow me to write anything . But I have observed the 047.out change in hal meter .


That seems to indicate that the HAL "wiring" is correct then.

It is possible that the hardware wiring isn't correct. As I undersand it the 7i37 outputs should be seen as switches, rather than voltage sources, so you need control voltage to the + terminal, then the - terminal to the load, then from the load to gnd.

I may be incorrect in this, though, and perhaps PCW can clarify the point.
The following user(s) said Thank You: Niko

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

More
11 Sep 2014 21:11 #51084 by cncbasher
as said before , it may need a pullup to 5v from the pin with a resistor of say 2k2 , again PCW can advise
but can you give us the driver information so we can see how the enable is operated ..pdf perhaps

is the ground of the 7i37 also fixed to ground of the driver , so you have a common ground
you also say coolant etc is not working ? .. ok how is this wired and what voltage is present ?
it''s normal to supply 5v to say a relay and take the ground side of the relay to the output pin on the 7i37
the 7i37 will then switch the relay to ground , subject to being within voltage and current specs for the 7i37 etc

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

More
11 Sep 2014 22:34 #51089 by Niko
Replied by Niko on topic Newb and 5i20 DOut don't mix
Hello,
two things happened .
I was supplying power form a lab PSU which was plugged in another outlet, probably another phase . That created immense noise problems . Now I am back to the internal supply . The reason i hesitate to connect the drive to non-isolated pins is because these servos are known to to cause problems . But so far the drive is not an issue .

And two LinuxCNC died on me . So first thing in the morning I will setup 2.6.4 and start over .

For a brief moment a few outputs were working, so I suspect the boards are fine . The working config was as suggested by cncbasher
is_output TRUE
invert_output TRUE

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

Moderators: cmorley
Time to create page: 0.099 seconds
Powered by Kunena Forum