7i80 and 7i77
tried showpin:
franco@knanolcnc:~$ halcmd showpin
RTAPI: ERROR: could not open shared memory (errno=2)
Segmentation fault
anyway after start lcnc from terminal i get
hm2_eth: discovered 7I80DB-25
hm2/hm2_7i80.0: Smart Serial Firmware Version 43
hm2/hm2_7i80.0: Smart Serial Firmware Version 43
hm2/hm2_7i80.0: 68 I/O Pins used:
hm2/hm2_7i80.0: IO Pin 000 (J2-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 001 (J2-14): StepGen #0, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 002 (J2-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 003 (J2-15): StepGen #1, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 004 (J2-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 005 (J2-16): StepGen #2, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 006 (J2-04): StepGen #3, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 007 (J2-17): StepGen #3, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 008 (J2-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 009 (J2-06): StepGen #4, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 010 (J2-07): IOPort
hm2/hm2_7i80.0: IO Pin 011 (J2-08): IOPort
hm2/hm2_7i80.0: IO Pin 012 (J2-09): IOPort
hm2/hm2_7i80.0: IO Pin 013 (J2-10): IOPort
hm2/hm2_7i80.0: IO Pin 014 (J2-11): Muxed Encoder #6, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 015 (J2-12): Muxed Encoder #6, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 016 (J2-13): Muxed Encoder #6, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 017 (J3-01): StepGen #5, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 018 (J3-14): StepGen #5, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 019 (J3-02): StepGen #6, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 020 (J3-15): StepGen #6, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 021 (J3-03): StepGen #7, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 022 (J3-16): StepGen #7, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 023 (J3-04): StepGen #8, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 024 (J3-17): StepGen #8, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 025 (J3-05): StepGen #9, pin Direction (Output)
hm2/hm2_7i80.0: IO Pin 026 (J3-06): StepGen #9, pin Step (Output)
hm2/hm2_7i80.0: IO Pin 027 (J3-07): IOPort
hm2/hm2_7i80.0: IO Pin 028 (J3-08): IOPort
hm2/hm2_7i80.0: IO Pin 029 (J3-09): IOPort
hm2/hm2_7i80.0: IO Pin 030 (J3-10): IOPort
hm2/hm2_7i80.0: IO Pin 031 (J3-11): Muxed Encoder #7, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 032 (J3-12): Muxed Encoder #7, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 033 (J3-13): Muxed Encoder #7, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 034 (J4-01): IOPort
hm2/hm2_7i80.0: IO Pin 035 (J4-14): IOPort
hm2/hm2_7i80.0: IO Pin 036 (J4-02): IOPort
hm2/hm2_7i80.0: IO Pin 037 (J4-15): IOPort
hm2/hm2_7i80.0: IO Pin 038 (J4-03): IOPort
hm2/hm2_7i80.0: IO Pin 039 (J4-16): IOPort
hm2/hm2_7i80.0: IO Pin 040 (J4-04): IOPort
hm2/hm2_7i80.0: IO Pin 041 (J4-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i80.0: IO Pin 042 (J4-05): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 043 (J4-06): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 044 (J4-07): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 045 (J4-08): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 046 (J4-09): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 047 (J4-10): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 048 (J4-11): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 049 (J4-12): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 050 (J4-13): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 051 (J5-01): IOPort
hm2/hm2_7i80.0: IO Pin 052 (J5-14): IOPort
hm2/hm2_7i80.0: IO Pin 053 (J5-02): IOPort
hm2/hm2_7i80.0: IO Pin 054 (J5-15): IOPort
hm2/hm2_7i80.0: IO Pin 055 (J5-03): IOPort
hm2/hm2_7i80.0: IO Pin 056 (J5-16): IOPort
hm2/hm2_7i80.0: IO Pin 057 (J5-04): IOPort
hm2/hm2_7i80.0: IO Pin 058 (J5-17): Muxed Encoder Select #6, pin Mux Select 0 (Output)
hm2/hm2_7i80.0: IO Pin 059 (J5-05): Muxed Encoder #3, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 060 (J5-06): Muxed Encoder #3, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 061 (J5-07): Muxed Encoder #3, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 062 (J5-08): Muxed Encoder #4, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 063 (J5-09): Muxed Encoder #4, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 064 (J5-10): Muxed Encoder #4, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 065 (J5-11): Muxed Encoder #5, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 066 (J5-12): Muxed Encoder #5, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 067 (J5-13): Muxed Encoder #5, pin Muxed Index (Input)
hm2/hm2_7i80.0: registered
7i80DB is connected in the first db25 (J2), I thought same as you yesterday due to the name of the .bit file, but when I tried on the 4th (J5) gave me a long list of errors so went back to J2
if i have to map them then, shoul i get the info here ?
linuxcnc.org/docs/html/man/man9/sserial.9.html
if that's the case, can you give me an example... ?
maybe a simple one just to map any of 7i77's TB7 or TB8 physical outputs 0..15
ps: don't hesitate to ask for any other info ie screenshots with halshows / halscopes..
thnks !
Please Log in or Create an account to join the conversation.
tried showpin:
franco@knanolcnc:~$ halcmd showpin
RTAPI: ERROR: could not open shared memory (errno=2)
It's "halcmd show pin" and you have to run the command when LinuxCNC is loaded and active.
hm2/hm2_7i80.0: IO Pin 000 (J2-01): StepGen #0, pin Direction (Output)
...
hm2/hm2_7i80.0: IO Pin 017 (J3-01): StepGen #5, pin Direction (Output)
...
hm2/hm2_7i80.0: IO Pin 041 (J4-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
...
hm2/hm2_7i80.0: IO Pin 058 (J5-17): Muxed Encoder Select #6, pin Mux Select 0 (Output)
So it is quite clear that 7i76 connectors are J2 and J3 and 7i77 are on J4 and J5.
The errors probably indicated that things were nearly working, rather than not working at all.I thought same as you yesterday due to the name of the .bit file, but when I tried on the 4th (J5) gave me a long list of errors so went back to J2
if that's the case, can you give me an example... ?
It might be easiest to tell pncconf that you have a 5i25/7i77 combo then change the [HOSTMOT2]BOARD string in the INI file, and see what breaks (then fix the errors one by one with search/replace in a text editor in the HAL file)
The basic layout of the INI and HAL will be the same. In fact the only thing that needs to change in the INI file will be config strings and board names in the [HOSTMOT2] section. And the HAL file pin names need to match the actual board name, but I think that pncconf pin names _mainly_ get read-in from the INI file.
Please Log in or Create an account to join the conversation.
If you just want something thats close to working with a pncconf config
I would chose 7i80db_25_7i77x4.bit and connect the 7I77 to J2
Please Log in or Create an account to join the conversation.
then, went back to J4
this is selection from list of errors
...
hm2/hm2_7i80.0: IO Pin 066 (J5-12): Muxed Encoder #5, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 067 (J5-13): Muxed Encoder #5, pin Muxed Index (Input)
hm2/hm2_7i80.0: registered
hm2/hm2_7i80.0: Smart serial card hm2_7i80.0.7i77.1.1 error = (15) Communication Not Ready
hm2/hm2_7i80.0: Smart serial card hm2_7i80.0.7i77.1.1 error = (14) No Remote ID
hm2/hm2_7i80.0: Smart serial card hm2_7i80.0.7i77.1.1 error = (13) Communication error
hm2/hm2_7i80.0: Smart serial card hm2_7i80.0.7i77.1.1 error = (8) Remote fault
....
hm2/hm2_7i80.0: Smart serial card hm2_7i80.0.7i77.1.1 error = (3) Timeout
hm2/hm2_7i80.0: Smart Serial Comms Error: There have been more than 1 errors in 10 thread executions at least 200 times. See other error messages for details.
hm2/hm2_7i80.0: ***Smart Serial Port 0 will be stopped***
hm2/hm2_7i80.0: Warning: sserial remote device 7i77 channel 1 has old firmware that should be updated
i don't have much clear the sserial stuff besides the basics
to figure out how to solve this or continue (check version / update sserial firmware)
should i connect fieldpower, check out any led, or something else ?
ps1: first time i tried to flash the card i tried (with no sucess I thought) with the
ps2: i could't get control over the 7i80DB's CRs (nor got info what they mean, altough I read somewhere that perhaps were under control of ethernet firmware...) - but this is ancecdotic for now
ps3: ok understood the 5i25 strategy with pncconf (i started that yesterday too but got kinda overwhelmed... so tried to reduce axis, (ie single axis config) but found no options, so maybe i will try with lathe config to start with).
many thanks for your help !
Please Log in or Create an account to join the conversation.
yesterday I tried that too for a while trying to load the .bin with the command
loadrt hm2_eth config="firmware=/home/franco/7i80db_25_7i77x4.bit num_encoders=3 num_pwmgens=2 num_3pwmgens=1 num_stepgens=2 num_leds=4 sserial_port_0=000000" board_ip=192.168.1.121
but did't succeed..
It was too late to remember the problem nor flash anything else but my own brain
Anyway I guess the different behaviour on J4 means the is probably doing what it should.
If i cant solve the issues of my last post with the actual .bin I'll try this one
tnks !
Please Log in or Create an account to join the conversation.
hm2/hm2_7i80.0: Smart serial card hm2_7i80.0.7i77.1.1 error = (15) Communication Not Ready
...
should i connect fieldpower, check out any led, or something else ?
It seems quite possible that the 7i77 isn't powered enough to communicate, so I would certainly try field power first.
Please Log in or Create an account to join the conversation.
loadrt hm2_eth config="firmware=/home/franco/7i80db_25_7i77x4.bit num_encoders=3 num_pwmgens=2 num_3pwmgens=1 num_stepgens=2 num_leds=4 sserial_port_0=000000" board_ip=192.168.1.121
but did't succeed..
I would not expect this to succeed since you cannot specify 7I80 firmware on the command line
( A 7I77 only config would not have stepgens so would error-out for that reason also )
7I80 firmware is flashed into the card with the mesaflash utility
something like
mesaflash --device 7I80 --addr 192.168.1.121 --write 7i80db_25_7i77x2.bit
mesaflash --device 7I80 --addr 192.168.1.121 --reload
Please Log in or Create an account to join the conversation.
I'll do my homework best i can..
hopefully come back with good news
many thanks you guys !
Please Log in or Create an account to join the conversation.
(I'm already aware of the proc)
For the record let me tell you that when I first tried to flash the 7i80db_25_7i76x2_7i77x2.bit I got errors
then I realized the existence of 7i80db_25_7i76x2_7i77x2D.bit (note the "D" at the end) and that one flashed ok
later guessed that the "D" probably had to do with 7i80"D"B ...
Now, to flash 7i80db_25_7i77x4.bit I thought I would need something like 7i80db_25_7i77x4D.bit, but coludn't find that file
any idea what the "D" stands for ?
anyway I accept the suggestion but when i decided for the 7i76 / 7i77 combined firmware, I was thinking in the true possibility of purchasing 7i76 to handle some steppers and so... too
Since it seems to be a considerable work to configure all this, I wonder if it won't be wise to give a try with the 7i80db_25_7i76x2_7i77x2D.bit
To avoid problems with steppers stuff in the meantime (ie while maintaining 7i80db_25_7i76x2_7i77x2D.bit and only using 1 7i77),
I tried a simple config disabling stepgens and the like with
loadrt hm2_eth config=" num_encoders=1 num_pwmgens=1 num_3pwmgens=1 num_stepgens=0 num_leds=4 sserial_port_0=000000" board_ip=192.168.1.121
then run ok
no errors
7i77 hooked in J4 and no fieldpower (yet)
and got encoder stuff reported in J4
...
hm2/hm2_7i80.0: IO Pin 040 (J4-04): IOPort
hm2/hm2_7i80.0: IO Pin 041 (J4-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i80.0: IO Pin 042 (J4-05): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i80.0: IO Pin 043 (J4-06): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i80.0: IO Pin 044 (J4-07): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i80.0: IO Pin 045 (J4-08): IOPort
hm2/hm2_7i80.0: IO Pin 046 (J4-09): IOPort
...
and blinking signal activity in pins 41 43 45 46 47 48
Inline image 1
(no fieldpower yet)
so what do you think ?
how should i continue ?
Please Log in or Create an account to join the conversation.
The HAL and iNI files will look just like a "normal" 7i77 config, just with some pin names slightly different.
Please Log in or Create an account to join the conversation.