First steps linuxcnc 7i76E
- kor
- Offline
- Senior Member
- Posts: 52
- Thank you received: 0
I installed linux Mint 18.1 the preempt kernel 4.9.4-RT2 with this great tutorial: How To Linux Mint 18.1 PREEMPT .
I followed the tutorial for the linuxcnc aswell.
The manual of the Mesa 7i76E is pretty confusing to me, but fortunatly I found this great work:
7i76E connection sheet
where I also printed the labels for the connectors. (to make my live easier eventually)
Now I attached the 24V power supply to the TB1 connector pin1 gnd pin4 24V (counted from top side starting with 1)
And I got no error so far.
I also attached the same 24V power to TB3 connector pin 2 (GND) and 3 (24V)
when I power the card the two yellow(-orange) LEDs light up after some blinking which indicate everything runs OK. (CR8 Field power and CR13 logic power)
The W3 jumper was changed to the up position, in order to change from the standard IP Address to the 10.10.10.10 address. (which hasn't been tested since I have not jet connected the ethernet cable.)
But now I am lost. Everything I could find so far is fairly non step by step. thats why I am asking for help. I hope This can eventually help someone else to get this card up and running. To the point where at least one stepper runs one input and one output is connected.
From the things I read so far one has to start the PNCConf wizard next. I can only start linuxcnc which has some sample configurations but nothing I can modify, I think that is for simulation of Gcode. I found a picture somewhere (don't remember) where a cnc menu in the linux start menu is present showing the pncconf.
Sry for my beginner questions but I am fairly new to linux and it is not as easy as it sometimes appears.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10739
- Thank you received: 3543
Edit the generated hal file to change the IP address to 10.10.10.10 address as the wrong IP will be inserted.
Save the hal file and open the config using Linuxcnc. You should be able to jog each axis. From the menus, you will be able to open halshow.. The menu might say "Show Hal configuration" or something similar. find the 7i76e in the tree structure and get to know the pin names. You can even connect a wire to +24 volts and touch it to an input and watch it change state in halshow.
From here, I recommend editing the hal and ini files in a text editor.
When I started, I sorted out my estop, a red light when in estop (easy) followed by the home and limit switches for one axis and then played around the ini settings to get that axis running at and set the maximum speed and default velocity for jogging. You have plenty of inputs so use maximum and minimum limits and a home switch for each axis. Shared home and limit switches are OK, but in my experience seperate switches is much nicer. Use the homing offsets to move the axis so the home switch is no longer triggered after homing.
I found the homing configuration documentation to be very well written so I persevered until I got all of the homing etc working..
Please Log in or Create an account to join the conversation.
- kor
- Offline
- Senior Member
- Posts: 52
- Thank you received: 0
The only executable I was able to start so far was /home/linuxcnc-dev/scripts/linuxcnc
which gives me a one page wizard with some sample confs for simulations.
Please Log in or Create an account to join the conversation.
- kor
- Offline
- Senior Member
- Posts: 52
- Thank you received: 0
finally I thought I could start linux cnc but I got the following error message:
modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.6.0: can't initialize iptables table 'filter': Table does not exist
any ideas?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
- Posts: 17905
- Thank you received: 4774
I believe its fixed with LinuxCNC master, not sure what the fix is for 2.7.x and Mint18.x
Please Log in or Create an account to join the conversation.
- kor
- Offline
- Senior Member
- Posts: 52
- Thank you received: 0
Well at least one switch and I made a stepper turn. only in the pncconf wizard.
in linuxcnc I get an error: stepgen maxvel is to big. for current step timings.
I am fairly certain I have to do those things in pncconf but it is not really clear to me what all the stuff means.
I set for the testing the driver to full steps and 5mm/rev 50mm/min as max speed 4mm/s² as ramp. so there should not be any problems. with those settings I get 50revs per minute in the motor tuning from pnc. without a problem.
Later my goal is 5 microsteps and 1000mm/min max velocity. which should be 1000steps/rev and 200rev/min this should be 200kHz and a step resolution of 0,005mm.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
- Posts: 10739
- Thank you received: 3543
What stepper drivers are you using? Some are better than others.
Sounds like you need to give some thought to these settings (mine are very, very short but they work for my stepper driver). Try 4x the figures I am using and then bring them back by trial and error.
DIRSETUP = 500
DIRHOLD = 500
STEPLEN = 1500
STEPSPACE = 1500
Sounds like when all of the above timings are multiplied out, your max speed cannot be achieved. Thats odd, as you are not pushing the limits anywhere.
Also your acceleration is very conservative. Depending on your drivers, you can probably get 50mm/s/s ( I think I've run 110mm/s/s OK with a 3:1 reduction drive from a NEMA 23 to a 5mm ball screw.)
You should easily reach your target speeds and velocities as you forgot to convert minutes to seconds so you will only be at 3.33 kHz. I'm running at 20x microstepping and about 90 kHz. The 7i76e can manage 10 MhZ if your stepper controller can handle it. As a guide I can get around 700 rpm out of my steppers.
Please Log in or Create an account to join the conversation.
- kor
- Offline
- Senior Member
- Posts: 52
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- kor
- Offline
- Senior Member
- Posts: 52
- Thank you received: 0
Manual: cnc4you.co.uk/resources/Servo%20Stepper%...20UK%202%20HSS86.pdf
first I was able to turn them slowly in the pncconf with 50 to 100 revs per min. (for testing porpuses I still have full steps.
but now they don't move at all. even if I am using value which worked previously.
So I just dont have any clue what is going on.
So I decided to just finish this setup even if the motor is not running. when I start linux cnc I get 2 error msgs:
unexpected realtime delay at task 0 with period 100 000.
and hm2/hm2_7i76E0 error finish read! iter=7
I really need some help I just got no clue whatsoever what to try next.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
- Posts: 17905
- Thank you received: 4774
Standard servo thread period would be 10 times that (1000000 ns)
Please Log in or Create an account to join the conversation.