Brother TC-225 Retrofit and Robot integration

More
02 Apr 2021 16:16 #204524 by timfaber
Yeah it is, version 3.4.0 which I've got.
github.com/LinuxCNC/mesaflash

So the card is operational?

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

More
02 Apr 2021 16:20 #204525 by timfaber
And I've read that there is no pncconf option for the 7i97 and that I've got to set it up from scratch. Could you point me in the direction of some sources of information on how to do that? (ie documentation, tutorial, github etc)

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

More
02 Apr 2021 16:39 #204528 by PCW

Yeah it is, version 3.4.0 which I've got.
github.com/LinuxCNC/mesaflash

So the card is operational?


Yes. Ill take a look at mesaflash, but you do need a recent copy (last few weeks)

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

More
02 Apr 2021 16:47 #204530 by timfaber
I'll get a recent copy, first have to figure out how to enable the wifi to use git

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

More
02 Apr 2021 16:51 #204531 by PCW

And I've read that there is no pncconf option for the 7i97 and that I've got to set it up from scratch. Could you point me in the direction of some sources of information on how to do that? (ie documentation, tutorial, github etc)


Here's a cooked pncconf config for the 7I97:

File Attachment:

File Name: basic7i97_...4-02.zip
File Size:4 KB
Attachments:

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

More
02 Apr 2021 16:53 #204532 by timfaber

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

More
04 Apr 2021 11:03 #204730 by timfaber
Tried to update mesaflash today by following the quickstart on the github page, got stuck at running make
timfaber@Brother:~/mesaflash$ make
Makefile:56: *** "pkg-config can't find libpci".  Stop.

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

More
04 Apr 2021 11:17 #204731 by andypugh
Did the "sudo apt install libpci-dev pkg-config build-essential" run without errors?

Maybe try "sudo apt-get install libpci-dev pkg-config build-essential" instead.

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

More
04 Apr 2021 11:18 #204732 by timfaber
Also tried to run the ini file provided by PCW, can i just try to run linuxcnc like this and what is going wrong?
Or am i suppose to create a config with pncconfig and then replace it with the files from PCW?
timfaber@Brother:~$ linuxcnc /home/timfaber/linuxcnc/configs/brother/basic7i97.ini
LINUXCNC - 2.8.1
Machine configuration directory is '/home/timfaber/linuxcnc/configs/brother'
Machine configuration file is 'basic7i97.ini'
Starting LinuxCNC...
emc/iotask/ioControl.cc 702: can't load tool table.
Found file(REL): ./basic7i97.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:17:00:0f
hm2_eth: discovered 7I97
hm2/hm2_7i97.0: Low Level init 0.15
hm2/hm2_7i97.0: Smart Serial Firmware Version 43
hm2/hm2_7i97.0: 51 I/O Pins used:
hm2/hm2_7i97.0:     IO Pin 000 (TB3-04): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0:     IO Pin 001 (TB3-08): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0:     IO Pin 002 (TB3-12): PWMGen #2, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0:     IO Pin 003 (TB3-16): PWMGen #3, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0:     IO Pin 004 (TB3-20): PWMGen #4, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0:     IO Pin 005 (AN_ENA4): PWMGen #4, pin Not-Enable (Output)
hm2/hm2_7i97.0:     IO Pin 006 (TB3-24): PWMGen #5, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0:     IO Pin 007 (AN_ENA5): PWMGen #5, pin Not-Enable (Output)
hm2/hm2_7i97.0:     IO Pin 008 (AN-ENA0..3): PWMGen #0, pin Not-Enable (Output)
hm2/hm2_7i97.0:     IO Pin 009 (TB1-01/TB1-09): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i97.0:     IO Pin 010 (TB1-04/TB1-12): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i97.0:     IO Pin 011 (TB1-07/TB1-15): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i97.0:     IO Pin 012 (TB1-17/TB2-01): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i97.0:     IO Pin 013 (TB1-20/TB2-04): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i97.0:     IO Pin 014 (TB1-23/TB2-07): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i97.0:     IO Pin 015 (TB2-09/TB2-17): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i97.0:     IO Pin 016 (TB2-12/TB2-20): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i97.0:     IO Pin 017 (TB2-15/TB2-23): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i97.0:     IO Pin 018 (Internal EncMux): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i97.0:     IO Pin 019 (TB5-13/TB5-14): SSR #0, pin Out-00 (Output)
hm2/hm2_7i97.0:     IO Pin 020 (TB5-15/TB5-16): SSR #0, pin Out-01 (Output)
hm2/hm2_7i97.0:     IO Pin 021 (TB5-17/TB5-18): SSR #0, pin Out-02 (Output)
hm2/hm2_7i97.0:     IO Pin 022 (TB5-19/TB5-20): SSR #0, pin Out-03 (Output)
hm2/hm2_7i97.0:     IO Pin 023 (TB5-21/TB5-22): SSR #0, pin Out-04 (Output)
hm2/hm2_7i97.0:     IO Pin 024 (TB5-23/TB5-24): SSR #0, pin Out-05 (Output)
hm2/hm2_7i97.0:     IO Pin 025 (Internal InMux0): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7i97.0:     IO Pin 026 (Internal InMux1): InMux Input Mux #0, pin addr0 (Output)
hm2/hm2_7i97.0:     IO Pin 027 (Internal InMux2): InMux Input Mux #0, pin addr1 (Output)
hm2/hm2_7i97.0:     IO Pin 028 (Internal InMux3): InMux Input Mux #0, pin addr2 (Output)
hm2/hm2_7i97.0:     IO Pin 029 (Internal InMuxData): InMux Input Mux #0, pin addr3 (Output)
hm2/hm2_7i97.0:     IO Pin 030 (TB4-15/TB4-16): InMux Input Mux #0, pin muxdata (Input)
hm2/hm2_7i97.0:     IO Pin 031 (TB4-17/TB4-18): IOPort
hm2/hm2_7i97.0:     IO Pin 032 (TB4-17/TB4-18): IOPort
hm2/hm2_7i97.0:     IO Pin 033 (P1-01): IOPort
hm2/hm2_7i97.0:     IO Pin 034 (P1-02): IOPort
hm2/hm2_7i97.0:     IO Pin 035 (P1-03): IOPort
hm2/hm2_7i97.0:     IO Pin 036 (P1-04): IOPort
hm2/hm2_7i97.0:     IO Pin 037 (P1-05): IOPort
hm2/hm2_7i97.0:     IO Pin 038 (P1-06): IOPort
hm2/hm2_7i97.0:     IO Pin 039 (P1-07): IOPort
hm2/hm2_7i97.0:     IO Pin 040 (P1-08): IOPort
hm2/hm2_7i97.0:     IO Pin 041 (P1-09): IOPort
hm2/hm2_7i97.0:     IO Pin 042 (P1-11): IOPort
hm2/hm2_7i97.0:     IO Pin 043 (P1-13): IOPort
hm2/hm2_7i97.0:     IO Pin 044 (P1-15): IOPort
hm2/hm2_7i97.0:     IO Pin 045 (P1-17): IOPort
hm2/hm2_7i97.0:     IO Pin 046 (P1-19): IOPort
hm2/hm2_7i97.0:     IO Pin 047 (P1-21): IOPort
hm2/hm2_7i97.0:     IO Pin 048 (P1-23): IOPort
hm2/hm2_7i97.0:     IO Pin 049 (P1-25): IOPort
hm2/hm2_7i97.0: registered
./basic7i97.hal:225: Unknown command '3600'
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Could not open command file 'shutdown.hal'
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/timfaber/linuxcnc_debug.txt
and
    /home/timfaber/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

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

More
04 Apr 2021 11:28 #204735 by timfaber

Did the "sudo apt install libpci-dev pkg-config build-essential" run without errors?

Maybe try "sudo apt-get install libpci-dev pkg-config build-essential" instead.


that did the trick, thanks for that!
Now mesa flash still wont recognize my 7i97 only if i use:
mesaflash --device ethernet --addr 10.10.10.10 --readhmid
Now i think this shouldn't stop me from continuing. Tried to make myself familiar with the hal and ini concept. if i understand correctly the hal file connects certain components with signals and the ini file has your parameters stored which the hal file references. Now are these two file in the most basic form all you need to run linuxcnc? and where can i see the connection from the hal file to my physical pins? In pncconf you can assign your pwmgen and encoders to the axis.

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

Moderators: cncbasher
Time to create page: 0.138 seconds
Powered by Kunena Forum