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.
 
Home Forum Configuring LinuxCNC HAL Examples Manual Pulse Generator Implementation

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Manual Pulse Generator Implementation

Manual Pulse Generator Implementation 02 Mag 2012 11:12 #19740

  • Goran0780
  • Goran0780's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
All,

I would like to take this opportunity to introduce myself. My name is Goran Djakovic. My interst in Controls has led me to start a project that will include me updating the user interface and some hardware componets for a three axis mill (CNC).

The projects scope is to update the software and some hardware components of a three axis CNC mill. I have been able to install Linux and emc2 software on my machine successfully. I have hardwired the PCI card (motenc-lite) to a manual pulse generator and connected the whole assembly back to the computer. This is where my problem starts.

When I turn the knob on my manual pulse generator, only the x-axis is controlled. In order to make the manual pulse generator work, it is my understanding that I have to make changes to the HAL file. I have spent some time now making changes to the HAL file by following examples that I have been able to obtain from other individuals work. The issue that keeps popping up is that the commands that are entered into the file or exiting in the HAL file before any additions are made fail due to the error pertaining to command not recognized or file location not correct. I have exhausted all possible options and attempts to make the manual pulse generator work.

My question to anyone that can help is, how can I incorporate the manual pulse generator into my software so that once the manual pulse generator knob is turned to set axis and speed, the speed and axis motion is reflected in an output signal and shown on the UI. I would like the HAL file to output the correct pulse to the rest of the system to initialize the motor to move the mill into the specified position?

Key Hardware Components:
Motenc Lite PCI card
Ace Manual Pulse Generator (with a knob)
Ubuntu 10.04 LTS software
EMC2 Software

If there are any further questions, feel free to contact me. I will make sure that I do my best to explain or clarify any misunderstandings.

Thank you very much for all of your help in advance.

Sincerely,
Goran Djakovic
The administrator has disabled public write access.

Re:Manual Pulse Generator Implementation 02 Mag 2012 11:17 #19741

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4244
  • Thank you received: 152
  • Karma: 130
Goran0780 wrote:
My question to anyone that can help is, how can I incorporate the manual pulse generator into my software so that once the manual pulse generator knob is turned to set axis and speed, the speed and axis motion is reflected in an output signal and shown on the UI.

Does this help at all?
linuxcnc.org/index.php/english/component...=19620&limit=6#19620
The administrator has disabled public write access.

Re:Manual Pulse Generator Implementation 02 Mag 2012 12:39 #19742

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5080
  • Thank you received: 102
  • Karma: 136
Interestingly enough the manual has an example of connecting a MPG to LinuxCNC does this help?

linuxcnc.org/docview/html/examples/mpg.html

John
The administrator has disabled public write access.

Re:Manual Pulse Generator Implementation 02 Mag 2012 13:03 #19744

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4244
  • Thank you received: 152
  • Karma: 130
andypugh wrote:Thinking about it, that is for analogue-input jogging.

For MPG jogging you use the axis.N.jog-enable and axis.N.jog-counts pins.

Assuming that the MPG is connected to motenc.0.encoder.00

net jog-all motenc.0.encoder.00.counts => axis.N.jog-counts
net x-jog-enable motenc.0.in.00 => axis.N.jog-enable
net y-jog-enable motenc.0.in.01 => axis.N.jog-enable
net z-jog-enable motenc.0.in.02 => axis.N.jog-enable

Or similar.
If you don't have physical axis-select switches then you can use the ones from the gui: halui.joint.0.is-selected for the X axis, for example.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.964 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.