5i25 and 7i77 error on starting Linuxcnc after pnc

More
03 Dec 2014 10:06 #53629 by billnixon
I'm trying to setup a Mesa 5i25 with a 7i77. I'm new to Linuxcnc, but I have been reading the manuals and this forum.

After going through the PnC config, the configuration will not start and throws an error. Under the debug section it says:
Test_3.hal: 51: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0-scalemax' not found.

I could sure use some help.

I attached the dmesg log.
Attachments:

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

More
03 Dec 2014 11:21 #53632 by PCW
That sounds like either the 7I77 is not connected to the 5I25s P3 or the 7I77 has no 5V
(CR1 yellow LED on top left of 7I77 is 5V indicator)

If the 7I77 is using 5V power from the FPGA card you need:

7I77 W5 LEFT
5I25 W2 UP
TB1 unconnected

If the 7I77 is using externally supplied 5V you need:

7I77 W5 RIGHT
5I25 W2 DOWN
and External 5V supply to TB1

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

More
03 Dec 2014 21:06 #53636 by billnixon
Thank you for the help.

I am using externally applied 5v to TB1 and the jumpers are as you listed.
7I77 W5 RIGHT
5I25 W2 DOWN

CR1 is lit.

Other LEDs on 7i77:
CR3 on
CR15 is on (green)
CR16 is on (red)
no others are lit.

I am applying 13 V to TB2
terminal 1 (the bottom one) +13VDC
terminal 8 gnd of 13 VDC
W1 is left

Nothing else is connected to the 7i77 (other than the DB25 cable supplied by Mesa)

There are no LEDs lit on the 5i25.
The rest of the jumpers on 5i25 are in the default positions per the 5i25 manual from Mesa page 4.

In Pncconf, I was unclear where to assign the 3 encoders and the 3 PWMs for the servos. Should I put the encoders on the muxed encoders? I put the PWM Gens on Smart Serial 1 (TB5) on 0, 1, and 2. I was unclear why the top selection, (num 0), has 3 boxes, the others, (Num 1-4) have 2 boxes, with the last (num 5), having only 1. I'm wondering if I'm doing this wrong. Could my configuration cause the error? I'm sorry I'm such a newbie.

Thanks again.

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

More
03 Dec 2014 23:34 #53638 by PCW
OK so sounds like power is OK (you might check the 5V is within tolerance)
so it most likely a configuration issue. Also check that the 7I77 setup/operate
jumpers are both in operate mode (W4 and W12 in LEFT position)

You can check the hardware independently of linuxcnc/hal/ini files with halrun:

halrun
halcmd: loadrt hostmot2
halcmd: loadrt hm2_pci config= "num_encoders=6 sserial_port_0=000xxx"
show pin
show param

(you can scroll the terminal window back to see all the pins and parameters)
The following user(s) said Thank You: billnixon

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

More
04 Dec 2014 00:26 #53640 by billnixon
You helped me on 2 counts.

1) My power supply was not in specs (under load).

2) I had the 7i77 in setup mode.

The config opens in linuxcnc now.

I'm curious, in trying to show the pins and parameters in a terminal, what does the xxx represent? Also, since I selected 3 encoders, do I need to type in num_encoders=3 ?

I really appreciate your help,
Bill

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

More
04 Dec 2014 01:14 - 04 Dec 2014 01:16 #53645 by PCW
Yes, you can set the number of encoders from 0 to 12
(enabling more doesn't hurt anything except it wastes CPU time and will prevent
usage of the corresponding pins as GPIO outputs, say on the second connector )

The sserial config line sets the mode for the sserial devices
all devices support mode 0, some devices support other modes
an X disables the corresponding sserial channel

Note that the default 5I25 firmware config with a 7I77 is 7i77x2 which supports 2 7I77s and 6 sserial channels

so for example sserial_port_0=203xxx would

enable and set sserial channel 0 to mode 2 (this is 7I77s Field I/O channel)
enable and set sserial channel 1 to mode 0 (this is the 7I77s analog output channel)
enable and set sserial channel 2 to mode 3 (this is the 7I77s expansion sserial port)
and finally disable sserial channels 3,4,5 (second 7I77 sserial channels)
Last edit: 04 Dec 2014 01:16 by PCW.
The following user(s) said Thank You: billnixon

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

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