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.
 
Home Forum Configuring LinuxCNC ClassicLadder controlling emco tool changer

Welcome, Guest
Username: Password: Remember me

TOPIC: controlling emco tool changer

controlling emco tool changer 14 Feb 2012 17:42 #17674

  • chuck1024
  • chuck1024's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 2
I need some advice on how to control an EMCO tool changer on a PC turn 55.
The turret uses a DC motor to rotate forward and then rotates backwards and parks against a prawl.
The motor is controled with a simple relay. Close the relay and the turret rotates. Release the relay and power is reversed to the motor and it rotates backwards against the prawl.

THe turret provides a sync and strobe signal from two photo interrupters. The sync pulse indicates tool 1 and the strobe pulses as the turret passes each tool location.

ClassicLadderExamples shows a similar implemetion using a stepper motor to rotate the turret but most of it is greek to me.

I think the sync pulse could be used to preset a counter to 1 and the strobe pulse could be used to increment the counter like the example.

Some where buried in there is an output command to close the motor relay and another output command to release the relay.

Can somebody get me started with the high points?

thanks

chuck
The administrator has disabled public write access.

Re:controlling emco tool changer 15 Feb 2012 00:29 #17678

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 761
  • Thank you received: 35
  • Karma: 53
the denford orac toolchanger does exactly that , the possible only difference is that the position feedback is from 3 photo interruptors
so the coding may be different , the modified iocontrol file reads the tool position directly from the opto's .
The administrator has disabled public write access.

Re:controlling emco tool changer 15 Feb 2012 02:28 #17680

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1418
  • Thank you received: 114
  • Karma: 130
Hi

The component is accessible via this thread
www.linuxcnc.org/index.php/english/compo...ew&catid=47&id=15396
the modified iocontrol file reads the tool position directly from the opto's .
The io binary modification is only on cncbashers machine, I had to hack ioControl.cc to simulate a toolchange for whatever tool was current at start up, so as to update the current tool in Axis when it initialised.

This is not in the contributed version, as it needs to be maintained as the code changes with each version of LinuxCNC.

The component is written in a pretty simple style, have a look through and see if you can follow it.
The main difference as cncbasher says would be replacing the truth table for evaluating tool position, with a mechanism to detect tool 1 sensor and then count off the indexing pulses until reaching the required tool.

If you need more help you can PM me and I will see what I can do to get you going

regards
Last Edit: 15 Feb 2012 02:29 by ArcEye.
The administrator has disabled public write access.

Re:controlling emco tool changer 15 Feb 2012 13:03 #17689

  • chuck1024
  • chuck1024's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 2
Thanks a bunch!
I will study it for a few days and see what I can accomplish.
chuck
The administrator has disabled public write access.

Re:controlling emco tool changer 17 Feb 2012 08:25 #17763

  • chuck1024
  • chuck1024's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 2
I think I may have made a mess. I was trying to compile my emco.comp file.

I get this error:
$ comp emco.comp
The program 'comp' can be found in the following packages:
* nmh
* mailutils-mh
Try: sudo apt-get install <selected package>
bash: comp: command not found

So I did this:
$ sudo apt-get install nmh
[sudo] password for chuck:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-xml python-numarray
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libdb4.5 liblockfile1
Suggested packages:
exmh mh-e mh-book
Recommended packages:
mail-transport-agent metamail
The following NEW packages will be installed:
libdb4.5 liblockfile1 nmh
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 2653kB of archives.
After this operation, 7041kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 us.archive.ubuntu.com hardy/universe libdb4.5 4.5.20-11 [529kB]
Get:2 us.archive.ubuntu.com hardy/main liblockfile1 1.06.2 [14.8kB]
Get:3 us.archive.ubuntu.com hardy/universe nmh 1.2-3 [2108kB]
Fetched 2653kB in 43s (60.4kB/s)
Selecting previously deselected package libdb4.5.
(Reading database ... 103064 files and directories currently installed.)
Unpacking libdb4.5 (from .../libdb4.5_4.5.20-11_i386.deb) ...
Selecting previously deselected package liblockfile1.
Unpacking liblockfile1 (from .../liblockfile1_1.06.2_i386.deb) ...
Selecting previously deselected package nmh.
Unpacking nmh (from .../archives/nmh_1.2-3_i386.deb) ...
Setting up libdb4.5 (4.5.20-11) ...
Setting up liblockfile1 (1.06.2) ...
Setting up nmh (1.2-3) ...

After reading the man page on nmp, I'm pretty sure that is not what I need.
How do I uninstall it and how to I make comp work?

cs
The administrator has disabled public write access.

Re:controlling emco tool changer 17 Feb 2012 08:36 #17764

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5082
  • Thank you received: 102
  • Karma: 136
The program comp is installed with emc2-dev. You can just add that to the synaptic package manager or iirc from a terminal say

sudo apt-get build-dep emc2

The other stuff you can find it in the synaptic package manager and remove it there.

Crap, the documents say nothing about where comp is...

John
Last Edit: 17 Feb 2012 08:38 by BigJohnT.
The administrator has disabled public write access.
Time to create page: 2.557 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.