NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me

TOPIC: 7i77 testers wanted

Re:7i77 testers wanted 10 May 2012 17:27 #19990

  • cmorley
  • cmorley's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1518
  • Thank you received: 41
  • Karma: 89
You will get a following error if the motor and encoder are not connected/working corectly or the PID is not tuned etc.
The administrator has disabled public write access.

Re:7i77 testers wanted 10 May 2012 17:40 #19991

  • ishman
  • ishman's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 82
  • Karma: 0
cmorley wrote:
You will get a following error if the motor and encoder are not connected/working corectly or the PID is not tuned etc.
I was assuming the same. I will try to hook this configuration tomorrow. Thanks.
The administrator has disabled public write access.

Re:7i77 testers wanted 11 May 2012 06:35 #20004

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4243
  • Thank you received: 152
  • Karma: 130
The Smart Serial devices (like the 7i77, and the various things you can plug into it) are a bit awkward to write pre-configured configs for.

I am afraid that you are going to have to get a bit familiar with the HAL command-line interface.

As a start, with Linuxcnc not running, open a terminal window and type

halrun

You will see the command prompt change, showing that you are in halcmd, not in the shell.

loadrt hostmot2

This will load the base Mesa card driver

loadrt hm2_pci

This will load the driver for PCI cards, like the 5i25, query its capabilities and (by default) enable every function on the card, and on the attached sub-cards.

show pin

will give you a list of all the HAL pins that you can use which are related to the card. This is a much smaller list than you will see when LinuxCNC is running, as it is only the Mesa hardware pins.

show param

Will list all the parameters.

You can even start the card up, and make things happen, if you want.

loadrt threads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
addf hm2_5i25.0.pet-watchdog thread1

start

Actually, I am not sure if it is pet_watchdog or pet-watchdog. You can find out with

show funct

Then you can toggle individual output bits with, for example

setp hm2_5i25.0.7i77.0.digitalout-00 1
setp hm2_5i25.0.7i77.0.digitalout-00 0

Again, I am guessing the actual pin names, but you made a list earlier, didn't you?

Documentation: linuxcnc.org/docview/html/man/man1/halrun.1.html
The administrator has disabled public write access.

Re:7i77 testers wanted 11 May 2012 07:03 #20010

  • ishman
  • ishman's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 82
  • Karma: 0
I am stunned with such a detailed reply from you andypugh! Thanks.
Again, I am guessing the actual pin names, but you made a list earlier, didn't you?
I have already wired everything according to the configuration I made with pncconf and files supplied for testing here. Let's see tomorrow what's going to happen ? And I appreciate that I got the programming idea from you as well. So it may take some more time if it doesn't work tomorrow. But it should work I think.

Just one thing is confusing with the hal files created with the pncconf that at loadrt config section there is num_encoders=4 num_pwmgens=0 while I commanded to make configuration for 4 pwm. Is it usual ?
The administrator has disabled public write access.

Re:7i77 testers wanted 12 May 2012 00:35 #20027

  • ishman
  • ishman's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 82
  • Karma: 0
Tried to run with machine attached. But same problem "joint 2 following error"
The administrator has disabled public write access.

Re:7i77 testers wanted 12 May 2012 07:55 #20034

  • ishman
  • ishman's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 82
  • Karma: 0
Maybe it's my wiring mistake because I couldn't manage to lit the servo enable light with my wiring during openloop test or with LinuxCNC. Further I burnt one of my drive's circuit because I tried to gave drives internal servo enable power during test. I thought it might help. I don't know where was the problem. But servo was not enabled through 7i77 I am sure.
The administrator has disabled public write access.
Moderators: cmorley
Time to create page: 1.400 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.