(Solved) 7i76 can only get one encoder
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
26 Mar 2021 10:07 - 26 Mar 2021 11:07 #203680
by bevins
(Solved) 7i76 can only get one encoder was created by bevins
Looking for second encoder.
If I put num_encoders=2 in the loadrt line then I get error.
This a firmware issue?
If I put num_encoders=2 in the loadrt line then I get error.
This a firmware issue?
Last edit: 26 Mar 2021 11:07 by bevins.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
26 Mar 2021 10:23 - 26 Mar 2021 10:29 #203682
by bevins
Replied by bevins on topic (Solved) 7i76 can only get one encoder
Loadrt line:This spits an error about the config.num_encoders=2 but only 1 available.
I think I have the correct firmware loaded. It shows the DPLL module which I think is what is needed for plasmac.
mesaflash readhmid
loadrt hm2_eth board_ip="10.10.10.10" config=" num_encoders=2 num_pwmgens=0 num_stepgens=4 sserial_port_0=200xxx"
I think I have the correct firmware loaded. It shows the DPLL module which I think is what is needed for plasmac.
mesaflash readhmid
Warning: Spoiler!
Configuration Name: HOSTMOT2
General configuration information:
BoardName : MESA7I92
FPGA Size: 9 KGates
FPGA Pins: 144
Number of IO Ports: 2
Width of one I/O port: 17
Clock Low frequency: 100.0000 MHz
Clock High frequency: 200.0000 MHz
IDROM Type: 3
Instance Stride 0: 4
Instance Stride 1: 64
Register Stride 0: 256
Register Stride 1: 256
Modules in configuration:
Module: DPLL
There are 1 of DPLL in configuration
Version: 0
Registers: 7
BaseAddress: 7000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: WatchDog
There are 1 of WatchDog in configuration
Version: 0
Registers: 3
BaseAddress: 0C00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: IOPort
There are 2 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: QCount
There are 1 of QCount in configuration
Version: 2
Registers: 5
BaseAddress: 3000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: SSerial
There are 1 of SSerial in configuration
Version: 0
Registers: 6
BaseAddress: 5A00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 64 bytes
Module: StepGen
There are 5 of StepGen in configuration
Version: 2
Registers: 10
BaseAddress: 2000
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Module: LED
There are 1 of LED in configuration
Version: 0
Registers: 1
BaseAddress: 0200
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 4 bytes
Configuration pin-out:
IO Connections for P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 0 IOPort StepGen 0 Dir/Table2 (Out)
14 1 IOPort StepGen 0 Step/Table1 (Out)
2 2 IOPort StepGen 1 Dir/Table2 (Out)
15 3 IOPort StepGen 1 Step/Table1 (Out)
3 4 IOPort StepGen 2 Dir/Table2 (Out)
16 5 IOPort StepGen 2 Step/Table1 (Out)
4 6 IOPort StepGen 3 Dir/Table2 (Out)
17 7 IOPort StepGen 3 Step/Table1 (Out)
5 8 IOPort StepGen 4 Dir/Table2 (Out)
6 9 IOPort StepGen 4 Step/Table1 (Out)
7 10 IOPort SSerial 0 TXData0 (Out)
8 11 IOPort SSerial 0 RXData0 (In)
9 12 IOPort SSerial 0 TXData1 (Out)
10 13 IOPort SSerial 0 RXData1 (In)
11 14 IOPort QCount 0 Quad-IDX (In)
12 15 IOPort QCount 0 Quad-B (In)
13 16 IOPort QCount 0 Quad-A (In)
IO Connections for P1
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
1 17 IOPort None
14 18 IOPort None
2 19 IOPort None
15 20 IOPort None
3 21 IOPort None
16 22 IOPort None
4 23 IOPort None
17 24 IOPort None
5 25 IOPort None
6 26 IOPort None
7 27 IOPort None
8 28 IOPort None
9 29 IOPort None
10 30 IOPort None
11 31 IOPort None
12 32 IOPort None
13 33 IOPort None
Last edit: 26 Mar 2021 10:29 by bevins.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19487
- Thank you received: 6535
26 Mar 2021 10:29 #203683
by tommylight
Replied by tommylight on topic (Solved) 7i76 can only get one encoder
7i76 has only one normal encoder and 2 MPG encoders.
For MPG encoders to be usable the initialisation line in hal has to be set to mode 1 or 2 (not sure) but i do set it to mode 2 always as it also gets the 4 analogue inputs besides 2 MPG.
forum.linuxcnc.org/24-hal-components/385...e-7i76-mode-question
They should be visible as enc0 and enc1.
For MPG encoders to be usable the initialisation line in hal has to be set to mode 1 or 2 (not sure) but i do set it to mode 2 always as it also gets the 4 analogue inputs besides 2 MPG.
forum.linuxcnc.org/24-hal-components/385...e-7i76-mode-question
They should be visible as enc0 and enc1.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
26 Mar 2021 10:30 #203684
by bevins
I have those, I am talking about the encoders for plasmac. those encoders are for pins 16,17 18,19 I think.
Replied by bevins on topic (Solved) 7i76 can only get one encoder
7i76 has only one normal encoder and 2 MPG encoders.
For MPG encoders to be usable the initialisation line in hal has to be set to mode 1 or 2 (not sure) but i do set it to mode 2 always as it also gets the 4 analogue inputs besides 2 MPG.
forum.linuxcnc.org/24-hal-components/385...e-7i76-mode-question
They should be visible as enc0 and enc1.
I have those, I am talking about the encoders for plasmac. those encoders are for pins 16,17 18,19 I think.
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
26 Mar 2021 10:35 #203685
by bevins
Replied by bevins on topic (Solved) 7i76 can only get one encoder
Attachments:
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19487
- Thank you received: 6535
26 Mar 2021 10:42 #203686
by tommylight
Replied by tommylight on topic (Solved) 7i76 can only get one encoder
Ok, you need the 2 encoder inputs for the THCAD so that requires the "PL" in the firmware name, not DPLL (dpll is timings function on a phase locked loop), pretty sure PCW made one.
The following user(s) said Thank You: bevins
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
26 Mar 2021 10:48 #203687
by bevins
There is only dpl in the 7i92.zip firmware..... Thats not the correct one?
Replied by bevins on topic (Solved) 7i76 can only get one encoder
Ok, you need the 2 encoder inputs for the THCAD so that requires the "PL" in the firmware name, not DPLL (dpll is timings function on a phase locked loop), pretty sure PCW made one.
There is only dpl in the 7i92.zip firmware..... Thats not the correct one?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19487
- Thank you received: 6535
26 Mar 2021 10:51 #203688
by tommylight
Replied by tommylight on topic (Solved) 7i76 can only get one encoder
From your screenshot pretty sure it is not as the inputs should be shown as input A only, 3 of them.
The following user(s) said Thank You: bevins
Please Log in or Create an account to join the conversation.
- bevins
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
26 Mar 2021 11:06 #203690
by bevins
I found firmware file that works now the encoder01 shows up.
Now on to ohmic hal file errors.
Replied by bevins on topic (Solved) 7i76 can only get one encoder
From your screenshot pretty sure it is not as the inputs should be shown as input A only, 3 of them.
I found firmware file that works now the encoder01 shows up.
Now on to ohmic hal file errors.
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
26 Mar 2021 12:59 #203703
by BigJohnT
Replied by BigJohnT on topic (Solved) 7i76 can only get one encoder
Which firmware was it?
JT
JT
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds