Reading from digital inputs from two cards 7i64 connected to 6i25 throught 7i74

More
27 Sep 2019 09:57 #146358 by pgruszel
Hello!
6i25 flashed with 5i25_7i77_7i74.bit file
I always reads FALSE from 7i64 digital input. 7i64 outputs working properly - yellow status led indicate the value of set at output.
show pin cmd show all resources properly. After start cmd right status leds are green on 7i64 and blinking green on 7i77 .

Configuration
6i25 P3 -> 7i77
P2 -> 7i74 CH0 -> 7i64
7i74 CH1 -> 7i64

Almost all seems to be working without reading from digital inputs on 7i64. Reading from any of 7i64 always return FALSE.
I suspect that it could be a problem with sserial_port_N option for hm2_pci or where to look around for wrong configuration
Current modprobe option for hm2_pci is set to sserial_port_0=000xxxxx and sserial_port_1=00xxxxxx
Who can explain to me modes of operation for 7i64 cards.

Thanks in advance!

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

More
27 Sep 2019 10:50 #146361 by pl7i92
as you got the 6i25 setup right what does the pinout read give you
mesaflash --device 6i25 --readhmid > mypins.pin

and as you start the simple mashine axis config
what does HAL give you as it reads the complete chanin
i guess you got this files already inside
freeby.mesanet.com/ssi_ss.zip

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

More
27 Sep 2019 11:29 #146367 by pgruszel
I am currently not in front of hardware now but after flashing with 5i25_7i77_7i74.bit file compare output from mesaflash --device 6i25 --readhmid cmd with 5i25_7i77_7i74.pin file form /lib/firmware/hm2/5i25 and it looks the same.
More ouput need to save but I will can do it in the evenig.
I am still newbie with basic configuration but if I flashed 6i25 with freeby.mesanet.com/ssi_ss.zip how I connect with 7i77 on P3 ?

Thank you in advance!
Piotr

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

More
27 Sep 2019 13:14 #146377 by PCW
What input signals are you connecting to the 7I64?
Note that there are no input indicator LEDs on the 7I64
(the LEDs near the inputs are reverse protection diodes)

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

More
27 Sep 2019 13:21 #146379 by pgruszel
I connect for example +24V (IBIT0+),and GND(IBIT0-) to pair of input, reverse polarization turn on RED LED.

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

More
27 Sep 2019 13:22 #146380 by pgruszel
Sorry to no light RED LED +24 V need to be connected to IBIT0- and GND IBIT0+

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

More
27 Sep 2019 13:35 - 27 Sep 2019 13:43 #146383 by PCW
OK, this might be a LinuxCNC bug
Do the analog inputs work?
Do inputs work on a single 7I64?
What version of LinuxCNC are you using?
Also can you post your hal file?
Last edit: 27 Sep 2019 13:43 by PCW.

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

More
27 Sep 2019 13:50 #146386 by pgruszel
At the beginning I connected the same 7i64 straight to 7i77 (flash 7i77x2) and all input and outputs working properly. I do not test analog inputs yet.
Because I need to use some more IO decide to use some expansion and order 7i74 an one more 7i64. All boards are new. In few hours do some more tests but outputs on two 7i64 working properly. Show pin cmd give list of all available pins and for 7i64 we have 24 input and 24 output together with two analog input twice so probably it is ok.
What I thinking is still sserial_port_value_N parameter because I found thread on the forum
forum.linuxcnc.org/12-milling/33035-retr...00e?start=750#125187 where someone discuss about mask

What you think about it ?

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

More
27 Sep 2019 13:54 #146387 by pgruszel
Will give all the information requested in 3-4 hours.

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

More
27 Sep 2019 13:55 #146388 by PCW
The 7I64 has no settable modes so its mode should be left at "0"

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

Time to create page: 0.086 seconds
Powered by Kunena Forum