7i80 and 7i77

More
06 Oct 2014 03:39 - 06 Oct 2014 08:14 #51810 by PCW
Replied by PCW on topic 7i80 and 7i77
Note that the above script for installing master and building the uspace linuxcnc variant
installs a RIP version so you need to follow the README file in linuxcnc-dev:

to run the software go back to the top level directory (linuxcnc-dev in my case), and issue:
. scripts/rip-environment
linuxcnc

Here is where hm2_eth is : (assuming the script ran properly)
ls ~/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/hm2_eth.c
/home/pcw/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/hm2_eth.c


The Ethernet FPGA cards have built in firmware like the 5I25 so don't need or want a firmware name on the loadrt command line

something like:
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config=" num_encoders=1 num_pwmgens=0 num_stepgens=5"
Last edit: 06 Oct 2014 08:14 by PCW.
The following user(s) said Thank You: uli12us

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

More
08 Oct 2014 20:18 #51895 by uli12us
Replied by uli12us on topic 7i80 and 7i77
Ok, It seems the Program runs now. For a short test of the 7i76E, I need the stepconf program and before I must enter the loadrt hostmot_2 and after that the loadrt hm2-eth.. Now linuxcnc and I can edit the files with either stepconf or the other for servothreads. Is it right?

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

More
08 Oct 2014 23:06 #51902 by PCW
Replied by PCW on topic 7i80 and 7i77
Stepconf is for parallel port configuration, for Mesa cards, pncconf is used
pncconf does not support the Ethernet FPGA cards yet but you can do this:

For a 7I76e config run pncconf and select a 5i25/7i76 combination
do whatever configuration you like and when you are done edit the hal file that pncconf
creates, changing the loadrt hm2_pci line and globally replacing "5i25" with "7i76e"
You will also have to remove the loadrt probe_parport line

for a very simple 7I76E sample file you can try this freeby.mesanet.com/7i76es1.zip
This is basically the hm2-stepper demo file modified for PID feedback and a few line changed to
support Ethernet

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

More
11 Oct 2014 21:40 #51965 by uli12us
Replied by uli12us on topic 7i80 and 7i77
I have now tried at least 3 days to edit a specimen file from the linuxcnc folders. If I try to search the file in PNCconf I can't see any file in the files window. If I copy and paste one of the files, they should be in the folder, I can see any file in there. But if I choose a file.ini the program found a lot of errors.
In my self made (but incorrect because I don't know what I must enter in the boxes from connector2 and 3) file, there is a additional file with the filending pncconf. How can I make such a file from the specimens.

At the moment I want only to run the 7i76E with a single Servo and a single Steppermotor, only to see if and how it runs. After that I want to connect the second board and the serial IO board because the other 2 boards have not as much connectors as I need.

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

More
11 Oct 2014 23:16 - 11 Oct 2014 23:17 #51966 by PCW
Replied by PCW on topic 7i80 and 7i77
as a quick start, try:

download freeby.mesanet.com/7i76es1.zip

cp 7i76es1.zip ~/linuxcnc/configs
cd ~/linuxcnc/configs
unzip 7i76es1.zip

setup RIP environment
launch linuxcnc
(it should report version 2.7 pre)

select 7i76es1

report findings


Before you start, you need a working, unused Ethernet port
and you need to at the minimum set up that port for manual config IPV4
with an appropriate IP address and netmask

(you can test if its working by pinging the 7I76E)

If you read the hm2_eth man page, it has instructions to setup linux so that
linuxcnc has exclusive access to the real time Ethernet port, but this is not needed for a quick test
Last edit: 11 Oct 2014 23:17 by PCW.

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

More
12 Oct 2014 05:17 - 12 Oct 2014 05:18 #51972 by uli12us
Replied by uli12us on topic 7i80 and 7i77
Thats the messages from the program
LINUXCNC - 2.7.0~pre0
Machine configuration directory is '/home/uli/linuxcnc/configs'
Machine configuration file is '7i76es1.ini'
Starting LinuxCNC...
emc/iotask/ioControl.cc 768: can't load tool table.
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: ERROR: can't connect: Network is unreachable
RTNET layer not ready
hm2_eth: ERROR: can't close socket: Transport endpoint is not connected
hm2_eth: rtapi_app_main: -101
hm2-pidstepper.hal:42: /home/uli/linuxcnc-dev/bin/rtapi_app exited without becoming ready
hm2-pidstepper.hal:42: insmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  
You can find more information in the log:
/home/uli/linuxcnc_debug.txt
 and
/home/uli/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' 
and in the terminal
uli@uli:~/linuxcnc-dev$ 
and thats from linuxcnc_print.txt
RUN_IN_PLACE=yesLINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/uli/linuxcnc-dev/bin
LINUXCNC_TCL_DIR=/home/uli/linuxcnc-dev/tcl
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/home/uli/linuxcnc-dev/rtlib
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/home/uli/linuxcnc-dev/src/objects
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
INIFILE=/home/uli/linuxcnc/configs/7i76es1.ini
PARAMETER_FILE=hm2-stepper.var
TASK=milltask
HALUI=
DISPLAY=axis
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Killing task linuxcncsvr, PID=4161
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Last edit: 12 Oct 2014 05:18 by uli12us.

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

More
12 Oct 2014 08:51 #51974 by PCW
Replied by PCW on topic 7i80 and 7i77
Thats all to be expected if the network connection is not setup
you need to setup the Ethernet connection that connects to the 7i76E before
attempting to run linuxcnc


in other words if you cannot ping the card, you wont get any further

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

More
13 Oct 2014 05:38 #51985 by uli12us
Replied by uli12us on topic 7i80 and 7i77
I have tried to disable the IPv6 Connection and add the Mac Adress to the hm2_eth. Without any success.
Pibg said Network is unreachable, but I have no problem with the Internet connection, that runs with normal speed.

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

More
13 Oct 2014 07:29 - 13 Oct 2014 07:35 #51988 by PCW
Replied by PCW on topic 7i80 and 7i77
Looks like you have not setup a static ip address network connection to the 7I76e

Note that for real time access, the 7I76E must be the only device on that particular network

If you are not using the 192.168.1.x IP address range you can leave the 7I76E at its default
192.168.1.121 address and setup the IPV4 settings for dedicated (to real time) Ethermet MAC
to "manual" with a 192.168.1.1 static IP address and 255.255.255.0 netmask

If you _are_ using the 192.168.1.x range for your normal Internet connection you should set the
7I76E's EEPROM IP address to something else (10.10.10.10 suggested) and setup the dedicated link
with a static IP address of 10.10.10.1 (for example)
Last edit: 13 Oct 2014 07:35 by PCW.

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

More
13 Oct 2014 21:35 - 13 Oct 2014 21:37 #52028 by uli12us
Replied by uli12us on topic 7i80 and 7i77
Now I'm a little bit ahead. After half a day browsing through several Linux Sites I could make it that I have a static linux adress,
for the moment only in the terminal, but thats not so bad, because I often need an Internet connection on the new computer.
With the static adress, thats not really good.

But now Linuxnc can't find the Mac-adress of the board, or if I write the adress it don't know the parameter.
uli@uli:~/linuxcnc-dev$ linuxcnc
LINUXCNC - 2.7.0~pre0
Machine configuration directory is '/home/uli/linuxcnc/configs'
Machine configuration file is '7i76es1.ini'
Starting LinuxCNC...
emc/iotask/ioControl.cc 768: can't load tool table.
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: WARNING: Unable to restrict other access to the hm2-eth device.
This means that other software using the same network interface can violate
realtime guarantees.  See hm2_eth(9) for more information.
hm2_eth: ERROR: Could not retrieve mac address
RTNET layer not ready
ioctl SIOCDARP: No such device or address
hm2_eth: rtapi_app_main: -111
hm2-pidstepper.hal:42: /home/uli/linuxcnc-dev/bin/rtapi_app exited without becoming ready
hm2-pidstepper.hal:42: insmod failed, returned -1
Shutting down and cleaning up LinuxCNC...
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/uli/linuxcnc_debug.txt
and
    /home/uli/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

That's the result of ping
uli@uli:~$ ping -c10 192.168.1.121
PING 192.168.1.121 (192.168.1.121) 56(84) bytes of data.
64 bytes from 192.168.1.121: icmp_req=1 ttl=64 time=0.046 ms
64 bytes from 192.168.1.121: icmp_req=2 ttl=64 time=0.027 ms
64 bytes from 192.168.1.121: icmp_req=3 ttl=64 time=0.029 ms
64 bytes from 192.168.1.121: icmp_req=4 ttl=64 time=0.025 ms
64 bytes from 192.168.1.121: icmp_req=5 ttl=64 time=0.022 ms
64 bytes from 192.168.1.121: icmp_req=6 ttl=64 time=0.029 ms
64 bytes from 192.168.1.121: icmp_req=7 ttl=64 time=0.023 ms
64 bytes from 192.168.1.121: icmp_req=8 ttl=64 time=0.026 ms
64 bytes from 192.168.1.121: icmp_req=9 ttl=64 time=0.022 ms
64 bytes from 192.168.1.121: icmp_req=10 ttl=64 time=0.022 ms

--- 192.168.1.121 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 8996ms
rtt min/avg/max/mdev = 0.022/0.027/0.046/0.007 ms
Last edit: 13 Oct 2014 21:37 by uli12us.

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

Moderators: PCWjmelson
Time to create page: 0.151 seconds
Powered by Kunena Forum