NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

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
There are no translations available.

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 28 Май 2012 11:48 #20465

  • PCW
  • PCW's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 1717
  • Thank you received: 92
  • Karma: 116
A few observations:

1. Why are you not using the drive enable outputs of the 7I77? That is their intended purpose. They have the advantage that they are "floating" switches so can be used with active high and active low enables. They have the additional advantage that they can use a separate supply so you can use them with enable inputs that have a different voltage requirement than the field I/O (which is normally 12 or 24VDC)

2. HM2 encoder "Counter mode" which is an up/down count mode
as opposed to the normal reversable quadrature mode is not suitable
for MPGs so this should be set false
Last Edit: 28 Май 2012 11:58 by PCW.
The administrator has disabled public write access.

Re:7i77 testers wanted 28 Май 2012 12:03 #20466

  • maxvdh
  • maxvdh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 0
andypugh wrote:
maxvdh wrote:
net estop-out hm2_5i25.0.7i77.0.0.output-00
net xenable hm2_5i25.0.7i77.0.0.output-03

Well, these are half of it, defining signals and where they need to go to. What I don't see in the lines you have pasted is where the signals come from.
I would rather expect to see, for example
net estop-out halui.estop.is-activated
because estop-out is just a signal name, and it has no meaning to LinuxCNC. halui.estop.is-activated, however, is an output pin driven by LinuxCNC.
The same is true for xenable, I would expect it to be netted to axis.0.amp-enable-out

(Yes, i do know most of these pin names off by heart, but they are all listed in the docs for example:
www.linuxcnc.org/docview/html/gui/halui.html
www.linuxcnc.org/docview/html/man/man9/motion.9.html
Knowing where to look for each one is a bit more difficult)

Thanks a lot for the references. I wasn't aware that xenable wasn't a LinuxCNC function. That said, xenable is netted to axis.0.amp-enable-out later in the HAL file. Maybe I should take a look at that signal to see what it's doing.


andypugh wrote:
net jog-incr-a => jogincr.sel0
net jog-incr-b => jogincr.sel1
net jog-incr-c => jogincr.sel2
net jog-incr-d => jogincr.sel3

Here we have the reverse problem, I don't see where jog-incr-a etc are driven from. I would expect them to be wired to gpio and from there to the jog-speed selector switch.

I have no jog speed selector switch or buttons so that's probably the problem. I'd just like to be able to set a fixed jog speed for the joysticks I have and use the MPG in velocity mode.
The administrator has disabled public write access.

Re:7i77 testers wanted 28 Май 2012 12:06 #20467

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4244
  • Thank you received: 152
  • Karma: 130
PCW wrote:
1. Why are you not using the drive enable outputs of the 7I77? That is their intended purpose.
I suspect that the simple answer is "Because Chris has never seen one", but also because that is specific to the 7i77 and pncconf is generic.

It would be very nice if pncconf could interrogate the hardware rather than using predefined config files, but I have not figured out how to do that.
The administrator has disabled public write access.

Re:7i77 testers wanted 28 Май 2012 12:08 #20468

  • maxvdh
  • maxvdh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 0
PCW wrote:
A few observations:

1. Why are you not using the drive enable outputs of the 7I77? That is their intended purpose. They have the advantage that they are "floating" switches so can be used with active high and active low enables. They have the additional advantage that they can use a separate supply so you can use them with enable inputs that have a different voltage requirement than the field I/O (which is normally 12 or 24VDC)

2. HM2 encoder "Counter mode" which is an up/down count mode
as opposed to the normal reversable quadrature mode is not suitable
for MPGs so this should be set false

1. I am not using them because it was negligibly easier to use an x-enable function with the existing circuitry. If it's going to make things more complicated, I can easily switch to those drive enable pins. I'll give that a shot. Did you have any thoughts on the positive feedback phenomenon?

2. I'm sorry but how do you know it is in counter mode and how would I change that?

Thank you.
The administrator has disabled public write access.

Re:7i77 testers wanted 28 Май 2012 12:26 #20469

  • PCW
  • PCW's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 1717
  • Thank you received: 92
  • Karma: 116
If the existing enables work I would not bother at this point but it does add some design contraints that may be a problem later on (you need to have active high enables on your drives that will work with the common field voltage for all isolated I/O)

To fix a positive feedback problem (and assuming your encoders are counting in the proper directions, if the encoder count backwares, reversing the sign of the encoder scale (or swapping encoder leads) will fix the problem) you need to reverse the output. I _think_ this is done by changing the sign on the appropriate maxoutput variable (But Andy should be consulted on this as its not in the hm2 manual yet)

as far as counter mode goes, your example hal file had set counter mode true here:
setp hm2_5i25.0.encoder.05.counter-mode true
(which you do not want)
Last Edit: 28 Май 2012 12:37 by PCW. Reason: addition
The administrator has disabled public write access.

Re:7i77 testers wanted 28 Май 2012 12:37 #20470

  • maxvdh
  • maxvdh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 0
PCW wrote:
If the existing enables work I would not bother at this point but it does add some design contraints that may be a problem later on (you need to have active high enables on your drives that will work with the common field voltage for all isolated I/O)
The existing enables don't work. The relay that enables the axis drives do work with a field I/O level signal but the 7i77 isn't turning them on when it should.

PCW wrote:
to fix a positive feedback problem (and assuming your encoders are counting in the proper directions) you need to reverse the output. I _think_ this is done by changing the sign on the appropriate maxoutput variable (But Andy should be consulted on this as its not in the hm2 manual yet)

as far as counter mode goes, your example hal file had set counter mode true here:
setp hm2_5i25.0.encoder.05.counter-mode true
(which you do not want)

It appears that you're right about reversing the output. I physically reversed the connections on the amplfier input signal and I don't seem to be getting the positive feedback anymore. Scale may be the one that needs to get negated.

Thank you for the counter mode assistance.
The administrator has disabled public write access.
Moderators: cmorley
Time to create page: 1.145 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.