Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.

More
07 Sep 2017 08:18 #98610 by rodw
Bengt, Its hard for me to help because Plasma cutters don't have spindles!
I think this page is relevant (assuming you are using V 2.7) Section 6 is it, I think
linuxcnc.org/docs/2.7/html/examples/spindle.html
My earlier guess was that somewhere the Mesa spindle signals need to be connected to the LCNC internals somewhere which you did not seem to have done.

This thread looks promising
forum.linuxcnc.org/49-basic-configuratio...encoder?limitstart=0

Its probably time to post your hal and ini files file again so others with more knowledge can help

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

More
07 Sep 2017 08:27 #98612 by tecno
I understood that all encoders to be connected X/Y/Z, this is what you have on plasma. So how did you 'connect'?

HAL and INI are in
forum.linuxcnc.org/39-pncconf/33069-help...oing?start=330#98494

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

More
07 Sep 2017 09:53 #98618 by andypugh
Still waiting for the dmesg / linuxcnc_print / console output that lists the actual hardware pinout of your actual system.
Then we can tell you what is where and how to connect.

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

More
07 Sep 2017 09:57 #98619 by rodw

I understood that all encoders to be connected X/Y/Z, this is what you have on plasma. So how did you 'connect'?


Sorry, I was thinking it was spindle encoder but its for your joints. I used open loop steppers with no encoders. I have no cutting forces at all remember.

Just follow what Andy is asking for

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

More
07 Sep 2017 11:17 #98621 by tecno

Still waiting for the dmesg / linuxcnc_print / console output that lists the actual hardware pinout of your actual system.
Then we can tell you what is where and how to connect.


Sorry I missed this request, my bad.

File Attachment:

File Name: toandy.txt
File Size:6 KB


The spindle encoder is connected to 7i76e and all axis encoders on 7i85s
It does not look correct does it in the attached file?
Attachments:

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

More
07 Sep 2017 13:31 - 07 Sep 2017 13:36 #98625 by andypugh
OK:

This is the FPGA pinout:
hm2/hm2_7i76e.0:     IO Pin 000 (P1-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 001 (P1-14): StepGen #0, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 002 (P1-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 003 (P1-15): StepGen #1, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 004 (P1-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 005 (P1-16): StepGen #2, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 006 (P1-04): StepGen #3, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 007 (P1-17): StepGen #3, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 008 (P1-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 009 (P1-06): StepGen #4, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 010 (P1-07): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_7i76e.0:     IO Pin 011 (P1-08): Smart Serial Interface #0, pin RxData0 (Input)
hm2/hm2_7i76e.0:     IO Pin 012 (P1-09): Smart Serial Interface #0, pin TxData1 (Output)
hm2/hm2_7i76e.0:     IO Pin 013 (P1-10): Smart Serial Interface #0, pin RxData1 (Input)
hm2/hm2_7i76e.0:     IO Pin 014 (P1-11): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i76e.0:     IO Pin 015 (P1-12): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i76e.0:     IO Pin 016 (P1-13): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i76e.0:     IO Pin 017 (P2-01): IOPort
hm2/hm2_7i76e.0:     IO Pin 018 (P2-14): IOPort
hm2/hm2_7i76e.0:     IO Pin 019 (P2-02): IOPort
hm2/hm2_7i76e.0:     IO Pin 020 (P2-15): IOPort
hm2/hm2_7i76e.0:     IO Pin 021 (P2-03): IOPort
hm2/hm2_7i76e.0:     IO Pin 022 (P2-16): IOPort
hm2/hm2_7i76e.0:     IO Pin 023 (P2-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 024 (P2-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 027 (P2-07): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i76e.0:     IO Pin 028 (P2-08): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i76e.0:     IO Pin 029 (P2-09): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i76e.0:     IO Pin 030 (P2-10): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i76e.0:     IO Pin 031 (P2-11): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i76e.0:     IO Pin 032 (P2-12): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i76e.0:     IO Pin 033 (P2-13): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i76e.0:     IO Pin 034 (P3-01): IOPort
hm2/hm2_7i76e.0:     IO Pin 035 (P3-14): IOPort
hm2/hm2_7i76e.0:     IO Pin 036 (P3-02): IOPort
hm2/hm2_7i76e.0:     IO Pin 037 (P3-15): IOPort
hm2/hm2_7i76e.0:     IO Pin 038 (P3-03): IOPort
hm2/hm2_7i76e.0:     IO Pin 039 (P3-16): IOPort
hm2/hm2_7i76e.0:     IO Pin 040 (P3-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 041 (P3-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 042 (P3-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 043 (P3-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 044 (P3-07): IOPort
hm2/hm2_7i76e.0:     IO Pin 045 (P3-08): IOPort
hm2/hm2_7i76e.0:     IO Pin 046 (P3-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 047 (P3-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 048 (P3-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 049 (P3-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 050 (P3-13): IOPort

This is the 7i76 input pinout:
DB25 Pin	GPIO	FUNCT	DIR
1	IO0	DIR0	OUT
2	IO2	DIR1	OUT
3	IO4	DIR2	OUT
4	IO6	DIR3	OUT
5	IO8	DIR4	OUT
6	IO9	STEP4	OUT
7	IO10	SS0TX	OUT
8	IO11	SS0RX	IN
9	IO12	SS1TX	OUT
10	IO13	SS1RX	IN
11	IO14	ENCI	IN
12	IO15	ENCB	IN
13	IO16	ENCA	IN
14	IO1	STEP0	OUT
15	IO3	STEP1	OUT
16	IO5	STEP2	OUT
17	IO7	STEP3	OUT

And the 7i85S input pinout
DB25 PIN	Primary IO	Secondary IO	Function
1	IO0	IO17	SRX0
14	IO1	IO18	STX0
2	IO2	IO19	TX6
15	IO3	IO20	TX7
3	IO4	IO21	TX4
16	IO5	IO22	TX5
4	IO6	IO23	TX2
17	IO7	IO24	TX3
5	IO8	IO25	TX0
6	IO9	IO26	TX1
7	IO10	IO27	ENCMUX
8	IO11	IO28	MENCA0
9	IO12	IO29	MENCB0
10	IO13	IO30	MIDX0
11	IO14	IO31	MENCA1
12	IO15	IO32	MENCB1
13	IO16	IO33	MIDX1

And the 7i85S output pinout:
TB3	PIN	FUNCTION	DIR
1	QA0	TO	7I85S
2	/QA0	TO	7I85S
3	GND	FROM	7I85S
4	QB0	TO	7I85S
5	/QB0	TO	7I85S
6	+5V	FROM	7I85S
7	IDX0	TO	7I85S
8	/IDX0	TO	7I85S
9	QA1	TO	7I85S
10	/QA1	TO	7I85S
11	GND	FROM	7I85S
12	QB1	TO	7I85S
13	/QB1	TO	7I85S
14	+5V	FROM	7I85S
15	IDX1	TO	7I85S
16	/IDX1	TO	7I85S
17	QA2	TO	7I85S
18	/QA2	TO	7I85S
19	GND	FROM	7I85S
20	QB2	TO	7I85S
21	/QB2	TO	7I85S
22	+5V	FROM	7I85S
23	IDX2	TO	7I85S
24	/IDX2	TO	7I85S
			
TB2	PIN	FUNCTION	DIR
1	QA3	TO	7I85S
2	/QA3	TO	7I85S
3	GND	FROM	7I85S
4	QB3	TO	7I85S
5	/QB3	TO	7I85S
6	+5V	FROM	7I85S
7	IDX3	TO	7I85S
8	/IDX3	TO	7I85S
9	GND	FROM	7I85S
10	GND	FROM	7I85S
11	TX0	FROM	7I85S
12	/TX0	FROM	7I85S
13	TX1	FROM	7I85S
14	/TX1	FROM	7I85S
15	+5V	FROM	7I85S
16	+5V	FROM	7I85S
17	GND	FROM	7I85S
18	GND	FROM	7I85S
19	TX2	FROM	7I85S
20	/TX2	FROM	7I85S
21	TX3	FROM	7I85S
22	/TX3	FROM	7I85S
23	+5V	FROM	7I85S
24	+5V	FROM	7I85S

The muxed encoders make this a little more complicated, because each set of 3 fpga pins handles two encoder channels, and corresponds to 2 sets of 6 pins on the screw-terminal connector.

Looking at the first set of data, Muxed encoder #0 is on the 7i85S, connected to P2 of the 7i76E. That handles encoders hm2_7i76e.0.encoder.00 and encoder.01

P2 Pin 08 -> 7i85S -> MENCA0 -> TB3 Pins 0 and 1.
So, 7i85S pins 0 and 1 are the A channel for hm2_7i76E.0.encoder.00

On the 7i76 we can see that the encoder is Muxed encoder #2. That handles hm2_7i76.0.encoder.04

So, you _should_ see the HAL pin hm2_7i76e.0.encoder.04.counts change when you rotate the encoder that is connected to the 7i76E spindle encoder section.
If you don't have encoder.04 active in the config then you won't see anything.

Something that you might be unclear on from some of your comments is that you do not do anything at all with channels A, B and Z in the HAL file. All that you need to connect in the HAL is the encoder position HAL pin and, in the case of the spindle, the speed HAL pin.
Last edit: 07 Sep 2017 13:36 by andypugh.

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

More
07 Sep 2017 13:40 #98626 by andypugh
Incidentally, I have no idea what happens to encoder.05, the second channel on Muxed Encoder #2
Do you get an encoder.05 if you enable all the encoders?

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

More
07 Sep 2017 13:40 #98627 by tecno

So, you _should_ see the HAL pin hm2_7i76e.0.encoder.04.counts change when you rotate the encoder that is connected to the 7i76E spindle encoder section.


It is counting

Something that you might be unclear on from some of your comments is that you do not do anything at all with channels A, B and Z in the HAL file. All that you need to connect in the HAL is the encoder position HAL pin and, in the case of the spindle, the speed HAL pin.


Well this is the part that is clear as mud for me right now, just too much info that I can not sort out.
Assuming it is these pins
11 IO14 ENCI IN
12 IO15 ENCB IN
13 IO16 ENCA IN

but how to connect these to what = clear as mud

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

More
07 Sep 2017 13:51 #98628 by tecno

Incidentally, I have no idea what happens to encoder.05, the second channel on Muxed Encoder #2
Do you get an encoder.05 if you enable all the encoders?


I get 00 - 01 - 02 - 03 -04 where 04 is spindle

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

More
07 Sep 2017 14:00 #98629 by andypugh

Well this is the part that is clear as mud for me right now, just too much info that I can not sort out.
Assuming it is these pins
11 IO14 ENCI IN
12 IO15 ENCB IN
13 IO16 ENCA IN

but how to connect these to what = clear as mud


These connections are inside the boards and cables. You don't need to do anything with them.

All that you need to worry about is the physical wires from the encoder to the terminal block and the metaphysical wires that connect hm2_7i6e.0.encoder.NN.position to the the motion.axis or motion.spindle pins.

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

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