7i95 - How to finish?

More
5 years 4 months ago #213087 by JackW327
I'm not sure what to do to finish this 7i95 config. I can ping it. Mesaflash talks to it. It's at 10.10.10.10 and I don't need to change it.

I've got the current 2.9 dev version installed of Linuxcnc. I ran Pncconf and selected the 7i96. Then I went into the [my-machine].hal file and just did a search & replace for 7i96 for 7i95 as a start. I then ran Linuxcnc from the desktop icon created by Pncconf. It works I guess. The watchdog LED on the board turns off. I appear to have packet traffic by the LED on the RJ45. I assume at this time the ports are wrong. 

I see the instructions to make something in one of the threads, here . I may have missed it but I'm not sure what that is? Is this still current advice? Is it a hostmot2 for the 7i95? Something else? I assume it's not Linuxcnc itself.

Really, really, sorry.I think what throws me off about this entire process is that everything is all over the place. It's very difficult to get a view of what needs to be done in a direct A to B manner. I don't usually have so much trouble with these things, but, here I am. 

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

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 4 months ago #213089 by BeagleBrainz
Replied by BeagleBrainz on topic 7i95 - How to finish?
Once you install Linuxcnc all the drivers are there for the Mesa cards.
Pcnconf will load all the modules you require.
Sometimes some fine tuning is required, but mostly things “just work”.
If you start your Linuxcnc config and doesn’t exit due to an error the config is good.
All that should be required is to hook up your stepper/servo drivers, and any other hardware and off you go.
What do you mean by “finish your config” ?
Apart from how the steppers connect there are that many variations that it’s hard to have an A to B reference. Some users have limit and home switches, some don’t. Some have spindle control and some don’t and there is a ton of ways to hook a spindle up. Some users hook up a pendant and this can go many many ways.
Then there’s Estop switches, switches you can hook up to work with the GUI.
And there is also several guis you can use.
So what is your end game ?
Just do one bit at a time, say add your external estop, then decide what to do next.
Keep backups of your Hal & ini files just in case things go pear shaped.
If need be comment the files so you know what you were thinking 6 months later.
Another problem we have is many ask questions, but very few do a write up after having got their answers. The community needs help, especially from those that having a first go. That way we all benefit.

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

More
5 years 4 months ago #213090 by JackW327
Replied by JackW327 on topic 7i95 - How to finish?
I don't actually know what I mean by 'finish the config" unfortunately. There are several loose ends that don't seem to be tied off.

The 7i95 does not show up in Pncconf so this is all a hack. I do see code addressing it under hostmot2 on github.

Was the .hal file all I had to tweak? (BTW Linuxcnc did error out before I did that)

Then there is / was a good bit of advice in the thread I referenced above I don't understand very well. The mesa files referenced at one point in the thread are not there anymore ...

I really don't know what config files are used and/or where they all are. So it's hard for me to know what to check.

Well, I guess this week I'll hook up a gecko, a test motor & encoder & see what breaks.

Any advice would be helpful. Happy to post back what I've done here once I get there.

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

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 4 months ago - 5 years 4 months ago #213099 by BeagleBrainz
Replied by BeagleBrainz on topic 7i95 - How to finish?
your config files are

/home/yourusername/linuxcnc/configs/nameofyourconfig/

If YOU don't know what you mean by your question, it's one that is going to be hard to answer.

You're on the 2.9 (master) branch so you should be good to go (if you installed this via the package manager there shouldn't be any need to build from source).

Ok let's address the errors you got first before going any further.
Can you start up Linuxcnc with your config and when you get your error please read the error log, you may not understand too much, but it does give instructions on where to go next.
Reading the docs, yes reading the docs, is a good start.
If you don't understand advice how can you conclude that it is good advice, good advice is advice you understand.
If you don't understand something start asking a question about something specific you don't understand. Unless we know what you don't understand it's really really hard to help.
Last edit: 5 years 4 months ago by BeagleBrainz.

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

More
5 years 4 months ago - 5 years 4 months ago #213204 by JackW327
Replied by JackW327 on topic 7i95 - How to finish?
Just trying to be honest and open with everyone about where I'm at. I could fake it but that does not help anyone. I do appreciate the tips. 

I may have answered my own question. I captured the below from the CLI startup. This looks like Linuxcnc is talking to the board and loading the correct config. I checked the pins reported with the manual and they seem to match. TB6 is not there, but, I think I would need to define some inputs for that to show up. 

Is it a reasonable conclusion that this means I'm probably good to go?

CLI Input:

Code:
linuxcnc /home/jdelaney/linuxcnc/configs/Rosie-01/Rosie-01.ini


Output:

Code:
LINUXCNC - 2.9.0-pre0-4068-gdd36475ed Machine configuration directory is '/home/jdelaney/linuxcnc/configs/Rosie-01' Machine configuration file is 'Rosie-01.ini' Starting LinuxCNC... Found file(REL): ./Rosie-01.hal Note: Using POSIX realtime hm2: loading Mesa HostMot2 driver version 0.15 hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2 hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:15:00:73 hm2_eth: discovered 7I95 hm2/hm2_7i95.0: Low Level init 0.15 hm2/hm2_7i95.0: Smart Serial Firmware Version 43 hm2/hm2_7i95.0: 58 I/O Pins used: hm2/hm2_7i95.0:     IO Pin 000 (TB3-02/TB3-03): StepGen #0, pin Step (Output) hm2/hm2_7i95.0:     IO Pin 001 (TB3-04/TB3-05): StepGen #0, pin Direction (Output) hm2/hm2_7i95.0:     IO Pin 002 (TB3-08/TB3-09): StepGen #1, pin Step (Output) hm2/hm2_7i95.0:     IO Pin 003 (TB3-10/TB3-11): StepGen #1, pin Direction (Output) hm2/hm2_7i95.0:     IO Pin 004 (TB3-14/TB3-15): StepGen #2, pin Step (Output) hm2/hm2_7i95.0:     IO Pin 005 (TB3-16/TB3-17): StepGen #2, pin Direction (Output) hm2/hm2_7i95.0:     IO Pin 006 (TB3-20/TB3-21): StepGen #3, pin Step (Output) hm2/hm2_7i95.0:     IO Pin 007 (TB3-22/TB3-23): StepGen #3, pin Direction (Output) hm2/hm2_7i95.0:     IO Pin 008 (TB4-02/TB4-03): StepGen #4, pin Step (Output) hm2/hm2_7i95.0:     IO Pin 009 (TB4-04/TB4-05): StepGen #4, pin Direction (Output) hm2/hm2_7i95.0:     IO Pin 010 (TB4-08/TB4-09): StepGen #5, pin Step (Output) hm2/hm2_7i95.0:     IO Pin 011 (TB4-10/TB4-11): StepGen #5, pin Direction (Output) hm2/hm2_7i95.0:     IO Pin 012 (TB4-14/TB4-15): IOPort hm2/hm2_7i95.0:     IO Pin 013 (TB4-16/TB4-17): IOPort hm2/hm2_7i95.0:     IO Pin 014 (TB3-16/TB3-17): IOPort hm2/hm2_7i95.0:     IO Pin 015 (TB4-20/TB4-21): IOPort hm2/hm2_7i95.0:     IO Pin 016 (TB4-22/TB4-23): IOPort hm2/hm2_7i95.0:     IO Pin 017 (TB4-22/TB4-23): IOPort hm2/hm2_7i95.0:     IO Pin 018 (TB1-01/TB1-09): Muxed Encoder #0, pin Muxed A (Input) hm2/hm2_7i95.0:     IO Pin 019 (TB1-04/TB1-12): Muxed Encoder #0, pin Muxed B (Input) hm2/hm2_7i95.0:     IO Pin 020 (TB1-07/TB1-15): Muxed Encoder #0, pin Muxed Index (Input) hm2/hm2_7i95.0:     IO Pin 021 (TB1-17/TB2-01): Muxed Encoder #1, pin Muxed A (Input) hm2/hm2_7i95.0:     IO Pin 022 (TB1-20/TB2-04): Muxed Encoder #1, pin Muxed B (Input) hm2/hm2_7i95.0:     IO Pin 023 (TB1-23/TB2-07): Muxed Encoder #1, pin Muxed Index (Input) hm2/hm2_7i95.0:     IO Pin 024 (TB2-09/TB2-17): Muxed Encoder #2, pin Muxed A (Input) hm2/hm2_7i95.0:     IO Pin 025 (TB2-12/TB2-20): Muxed Encoder #2, pin Muxed B (Input) hm2/hm2_7i95.0:     IO Pin 026 (TB2-15/TB2-23): Muxed Encoder #2, pin Muxed Index (Input) hm2/hm2_7i95.0:     IO Pin 027 (Internal EncMux): Muxed Encoder Select #0, pin Mux Select 0 (Output) hm2/hm2_7i95.0:     IO Pin 028 (Internal InMux0): InMux Input Mux #0, pin addr0 (Output) hm2/hm2_7i95.0:     IO Pin 029 (Internal InMux1): InMux Input Mux #0, pin addr1 (Output) hm2/hm2_7i95.0:     IO Pin 030 (Internal InMux2): InMux Input Mux #0, pin addr2 (Output) hm2/hm2_7i95.0:     IO Pin 031 (Internal InMux3): InMux Input Mux #0, pin addr3 (Output) hm2/hm2_7i95.0:     IO Pin 032 (Internal InMux4): InMux Input Mux #0, pin addr4 (Output) hm2/hm2_7i95.0:     IO Pin 033 (Internal InMuxData): InMux Input Mux #0, pin muxdata (Input) hm2/hm2_7i95.0:     IO Pin 034 (TB5-13/TB5-14): SSR #0, pin Out-00 (Output) hm2/hm2_7i95.0:     IO Pin 035 (TB5-15/TB5-16): SSR #0, pin Out-01 (Output) hm2/hm2_7i95.0:     IO Pin 036 (TB5-17/TB5-18): SSR #0, pin Out-02 (Output) hm2/hm2_7i95.0:     IO Pin 037 (TB5-19/TB5-20): SSR #0, pin Out-03 (Output) hm2/hm2_7i95.0:     IO Pin 038 (TB5-21/TB5-22): SSR #0, pin Out-04 (Output) hm2/hm2_7i95.0:     IO Pin 039 (TB5-23/TB5-24): SSR #0, pin Out-05 (Output) hm2/hm2_7i95.0:     IO Pin 040 (internal): SSR #0, pin AC Ref (internal) (Output) hm2/hm2_7i95.0:     IO Pin 041 (P1-01/DB25-01): IOPort hm2/hm2_7i95.0:     IO Pin 042 (P1-02/DB25-14): IOPort hm2/hm2_7i95.0:     IO Pin 043 (P1-03/DB25-02): IOPort hm2/hm2_7i95.0:     IO Pin 044 (P1-04/DB25-15): IOPort hm2/hm2_7i95.0:     IO Pin 045 (P1-05/DB25-03): IOPort hm2/hm2_7i95.0:     IO Pin 046 (P1-06/DB25-16): IOPort hm2/hm2_7i95.0:     IO Pin 047 (P1-07/DB25-04): IOPort hm2/hm2_7i95.0:     IO Pin 048 (P1-08/DB25-17): IOPort hm2/hm2_7i95.0:     IO Pin 049 (P1-09/DB25-05): IOPort hm2/hm2_7i95.0:     IO Pin 050 (P1-11/DB25-06): IOPort hm2/hm2_7i95.0:     IO Pin 051 (P1-13/DB25-07): IOPort hm2/hm2_7i95.0:     IO Pin 052 (P1-15/DB25-08): IOPort hm2/hm2_7i95.0:     IO Pin 053 (P1-17/DB25-09): IOPort hm2/hm2_7i95.0:     IO Pin 054 (P1-19/DB25-10): IOPort hm2/hm2_7i95.0:     IO Pin 055 (P1-21/DB25-11): IOPort hm2/hm2_7i95.0:     IO Pin 056 (P1-23/DB25-12): IOPort hm2/hm2_7i95.0:     IO Pin 057 (P1-25/DB25-13): IOPort hm2/hm2_7i95.0: registered Found file(REL): ./custom.hal note: MAXV     max: 1.000 units/sec 60.000 units/min note: LJOG     max: 1.000 units/sec 60.000 units/min note: LJOG default: 0.250 units/sec 15.000 units/min note: jog_order='XYZ' note: jog_invert=set()
​​​​​​​

In  ~/linuxcnc/configs/Rosie-01.pncconf there are loads of lines for pins. They don't seem to match the 7i95 board. They might match a 7i96. I am assuming if the board can be queried that the result over rides this file. Anyone know if that's correct?

I'll see what I can do from here.

Best,
John
Last edit: 5 years 4 months ago by JackW327. Reason: Formatting errors

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

  • BeagleBrainz
  • New Member
  • New Member
More
5 years 4 months ago #213205 by BeagleBrainz
Replied by BeagleBrainz on topic 7i95 - How to finish?
The thread you initially referenced, later in the thread has some info regarding the pins.
forum.linuxcnc.org/27-driver-boards/3789...7i95?start=10#151528

If run your config, this assuming you are using axis, you can goto Machine ---> Show HAL Configuration and browse thru the headings on the left to see what pins are available.

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

Moderators: PCW, jmelson
Time to create page: 0.298 seconds
Powered by Kunena Forum