5I23 does not see 7I37

More
21 Sep 2012 17:20 #24528 by mariusl
Hi all,
I am on 2.5.1 with a 5i23 Anything I/O and two 7i33 and one 7i37. I am having no joy on getting the 5i23 to see any input or set any output to and from the 7i37. (have not tested the 7i33)
I have reverted to the example config to see if that helps but still nothing. I see no error in the log file and it would seem that all pins are initialized by the firmware. One thing that does happen is that the output pins change state if I configure them as .invert_output.

Anyone used this kind of setup on 2.5.1?
Or any other advise please? I am getting bald here:)

Regards
Marius


www.bluearccnc.com

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

More
21 Sep 2012 17:42 - 21 Sep 2012 17:43 #24529 by PCW
Replied by PCW on topic Re:5I23 does not see 7I37
If this is a standard 7I37 or 7I37TA,
each input is individually isolated so you need to connect INX- to the negative signals source and INX+ to the positive signals source to change the input state. So for example a limit switch connection could be as follows:

+24 to limit switch T1, limit switchT2 to 7I37 IN0+ 7I37 IN0- to 24V common

Same with the outputs, each output is isolated ( a floating switch) so to drive a 24V relay for example you would connect +24V to 7I37 OUT0+. 7I37OUT0- to relay coil T1 and relay coil T2 to 24V common. Outputs need the is-output attribute set true

Both inputs and outputs are active low so outputs will typically want the invert_output attribute set and usually the inverted input pin is most useful
Last edit: 21 Sep 2012 17:43 by PCW. Reason: sp

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

More
21 Sep 2012 18:34 - 21 Sep 2012 18:35 #24530 by mariusl
Replied by mariusl on topic Re:5I23 does not see 7I37
It is a 7I37TA.

It is the way I have it. Well actually I connected the IN+ to 24V and then the IN- through my switches to 24V common. I can measure the voltage on the pins and they respond but I have no effect on the pins in HAL.

I tested the 7I33 with an encoder and I get some response. I can see pins toggle in the HAL watch.

Regards
Marius


www.bluearccnc.com

Last edit: 21 Sep 2012 18:35 by mariusl.

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

More
21 Sep 2012 18:53 #24531 by PCW
Replied by PCW on topic Re:5I23 does not see 7I37
Does the 7I37 have power? (make sure W1 is in the "up" position)
you can check the 7I37s 5V power on P1

Other possibilities:

bad or flipped cable
Looking at wrong GPIO bits
totally bad 7I37 (this is rare but has happened and requires someone to put an overvoltage or reverse power on P1)

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

More
21 Sep 2012 19:17 #24533 by mariusl
Replied by mariusl on topic Re:5I23 does not see 7I37
W1 is in the up position but I could not measure 5V on P1. That jumper is set to CBL for 5V. Will I still be able to measure 5V on P1?

I have two 7i37's in the system and both behave the same although I have unplugged the second set of boards (5I23 + 7I33 + 7I37). The first set is 5I23 + 2 x 7I33 + 7I37.

Regards
Marius


www.bluearccnc.com

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

More
21 Sep 2012 19:33 #24534 by PCW
Replied by PCW on topic Re:5I23 does not see 7I37
Bad cable?
Missing 5V jumper on 5I23?

I guess the next step would be to verify that there is 5V on pin 49 of the flat cable ( first when unconnected and then when connected to the 7I37)

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

More
21 Sep 2012 20:12 #24537 by mariusl
Replied by mariusl on topic Re:5I23 does not see 7I37
I swapped the two 5i23 cards and found the inputs working. Still have no outputs going. I dont know if there is a way to force the cards to a certain position in the config. My Mesa0 was actually Mesa1 and visa versa.

So that would mean that the 5V is present as I measured and confirmed. I measured on the jumper W1.

Is there any special precaution regarding the outputs?

Regards
Marius


www.bluearccnc.com

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

More
21 Sep 2012 20:22 #24539 by PCW
Replied by PCW on topic Re:5I23 does not see 7I37
You need to set the correct GPIO bits to output mode (the is_output attribute needs to be set on the last 8 pins of each connector with a 7I37)

Currently theres no way to tell the cards apart but we are looking into "branding" the cards with a name in EEPROM

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

More
21 Sep 2012 20:28 #24540 by mariusl
Replied by mariusl on topic Re:5I23 does not see 7I37
I am not sure that I only used the last eight pins on every connector. I did check to see that all of them are set to output. Some are inverted as well. I will check it out tomorrow.

Thanks for all the help so far.

Regards
Marius


www.bluearccnc.com

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

More
22 Sep 2012 11:22 - 22 Sep 2012 11:23 #24547 by mariusl
Replied by mariusl on topic Re:5I23 does not see 7I37
So there was two issues here that caused my dilemma.
One: the mesa cards config or rather the assigned number in the config was not known at the time of creating the config with pncconf. This resulted in a whole wiring mess as I had all the ribbons routed nicely and in logical formation.
Two: I had the logic of the output opto's on the 7I37 wrong. I swapped the wires on all outputs and made the pins inverted and the problem is solved.

Thanks for all the help from you guys on the forum. It is much appreciated always :)

Regards
Marius


www.bluearccnc.com

Last edit: 22 Sep 2012 11:23 by mariusl.

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

Moderators: PCWjmelson
Time to create page: 0.230 seconds
Powered by Kunena Forum