Re: [Emc-users] tool changer question

2011-11-23 Thread Sam sokolik


 

 Date: Sun, 20 Nov 2011 16:18:09 -0800
 From: dengv...@charter.net
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] tool changer question
 
 On Mon, 14 Nov 2011 16:06:54 +0330
 Farzin Kamangar farzin.kaman...@gmail.com wrote:
 
  Hello, dear EMC users;
  Considering the tool changing process, is there a way to send
  some movement commands from PLC to CNC?
  I have entered the TOOL_CHANGE_POSITION and TOOL_CHANGE_QUILL_UP in
  the INI file and in the EMCIO section. This is fine and causes the
  tool go to the tool change
  position. Now I need to move an axis towards the tool changer, orient
  the spindle, open the tool collet, move the tool changer carrousel to
  the old tool position, put the old tool
  back in its position, move the carrousel to the new tool position,
  grab the tool, close the tool collet and go back to the cutting area
  to continue. I was wondering how these
  actions could be done without using subroutine calls in the Gcode?
  Please let me know if I am not clear enough. Thanks
  Farzin
 
 Some years ago a group of emcer's converted a Mazak V5 to emc. Lots of
 information is available in the wiki, logs, logic, etc but I cannot
 find an entry on the classicladder code (for tool change), etc. Maybe
 someone else can help here. 
 
 Dave
 
  --
  RSA(R) Conference 2012
  Save $700 by Nov 18
  Register now
  http://p.sf.net/sfu/rsa-sfdev2dev1
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
 
 
 --
 All the data continuously generated in your IT infrastructure 
 contains a definitive record of customers, application performance, 
 security threats, fraudulent activity, and more. Splunk takes this 
 data and makes sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-novd2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
  
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-23 Thread gene heskett
On Wednesday, November 23, 2011 02:45:44 PM Sam sokolik did opine:

You were going to write something, Sam?

  Date: Sun, 20 Nov 2011 16:18:09 -0800
  From: dengv...@charter.net
  To: emc-users@lists.sourceforge.net
  Subject: Re: [Emc-users] tool changer question
  
  On Mon, 14 Nov 2011 16:06:54 +0330
  
  Farzin Kamangar farzin.kaman...@gmail.com wrote:
   Hello, dear EMC users;
   Considering the tool changing process, is there a way to send
   some movement commands from PLC to CNC?
   I have entered the TOOL_CHANGE_POSITION and TOOL_CHANGE_QUILL_UP in
   the INI file and in the EMCIO section. This is fine and causes the
   tool go to the tool change
   position. Now I need to move an axis towards the tool changer,
   orient the spindle, open the tool collet, move the tool changer
   carrousel to the old tool position, put the old tool
   back in its position, move the carrousel to the new tool position,
   grab the tool, close the tool collet and go back to the cutting area
   to continue. I was wondering how these
   actions could be done without using subroutine calls in the Gcode?
   Please let me know if I am not clear enough. Thanks
   Farzin
  
  Some years ago a group of emcer's converted a Mazak V5 to emc. Lots of
  information is available in the wiki, logs, logic, etc but I cannot
  find an entry on the classicladder code (for tool change), etc. Maybe
  someone else can help here.
  
  Dave
  
   
   -- RSA(R) Conference 2012
   Save $700 by Nov 18
   Register now
   http://p.sf.net/sfu/rsa-sfdev2dev1
   ___
   Emc-users mailing list
   Emc-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/emc-users
  
  --
   All the data continuously generated in your IT infrastructure
  contains a definitive record of customers, application performance,
  security threats, fraudulent activity, and more. Splunk takes this
  data and makes sense of it. IT sense. And common sense.
  http://p.sf.net/sfu/splunk-novd2d
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
 
 
 -- All the data continuously generated in your IT infrastructure
 contains a definitive record of customers, application performance,
 security threats, fraudulent activity, and more. Splunk takes this
 data and makes sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-novd2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene
-- 
There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order.
-Ed Howdershelt (Author)
My web page: http://coyoteden.dyndns-free.com:85/gene
Whoever would lie usefully should lie seldom.

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-20 Thread dave
On Mon, 14 Nov 2011 16:06:54 +0330
Farzin Kamangar farzin.kaman...@gmail.com wrote:

 Hello, dear EMC users;
   Considering the tool changing process, is there a way to send
 some movement commands from PLC to CNC?
 I have entered the TOOL_CHANGE_POSITION and TOOL_CHANGE_QUILL_UP in
 the INI file and in the EMCIO section. This is fine and causes the
 tool go to the tool change
 position. Now I need to move an axis towards the tool changer, orient
 the spindle, open the tool collet, move the tool changer carrousel to
 the old tool position, put the old tool
 back in its position, move the carrousel to the new tool position,
 grab the tool, close the tool collet and go back to the cutting area
 to continue. I was wondering how these
 actions could be done without using subroutine calls in the Gcode?
 Please let me know if I am not clear enough. Thanks
 Farzin

Some years ago a group of emcer's converted a Mazak V5 to emc. Lots of
information is available in the wiki, logs, logic, etc but I cannot
find an entry on the classicladder code (for tool change), etc. Maybe
someone else can help here. 

Dave

 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-20 Thread Jon Elson
dave wrote:


 Some years ago a group of emcer's converted a Mazak V5 to emc. Lots of
 information is available in the wiki, logs, logic, etc but I cannot
 find an entry on the classicladder code (for tool change), etc. Maybe
 someone else can help here. 
   
Every EMC2 install should have the CL code in the configs/demo_mazak 
directory,
and it appears to have the gear shift, tool magazine, tool change, etc. 
code in the
file demo_mazak.clp

As I recall, this machine did not require the XYZ axes to do anything 
terribly
complicated for a tool change.  It moved XYZ to the home position, did a 
spindle
orient, and then executed the tool change process.

Jon

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] tool changer question

2011-11-14 Thread Farzin Kamangar
Hello, dear EMC users;
  Considering the tool changing process, is there a way to send some
movement commands from PLC to CNC?
I have entered the TOOL_CHANGE_POSITION and TOOL_CHANGE_QUILL_UP in the INI
file and in the EMCIO section. This is fine and causes the tool go to the
tool change
position. Now I need to move an axis towards the tool changer, orient the
spindle, open the tool collet, move the tool changer carrousel to the old
tool position, put the old tool
back in its position, move the carrousel to the new tool position, grab the
tool, close the tool collet and go back to the cutting area to continue. I
was wondering how these
actions could be done without using subroutine calls in the Gcode? Please
let me know if I am not clear enough. Thanks
Farzin
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-14 Thread gene heskett
On Monday, November 14, 2011 08:06:29 AM Farzin Kamangar did opine:

 Hello, dear EMC users;
   Considering the tool changing process, is there a way to send some
 movement commands from PLC to CNC?
 I have entered the TOOL_CHANGE_POSITION and TOOL_CHANGE_QUILL_UP in the
 INI file and in the EMCIO section. This is fine and causes the tool go
 to the tool change
 position. Now I need to move an axis towards the tool changer, orient
 the spindle, open the tool collet, move the tool changer carrousel to
 the old tool position, put the old tool
 back in its position, move the carrousel to the new tool position, grab
 the tool, close the tool collet and go back to the cutting area to
 continue. I was wondering how these
 actions could be done without using subroutine calls in the Gcode?
 Please let me know if I am not clear enough. Thanks
 Farzin

Farzin:  Subroutine calls are great ways to not have to re-invent the 
wheel, and since the code executes at many times the speed the machine can 
move, shrinking the line count in the GCode by orders of magnitude, I don't 
understand the reticence you have to their use.  I have used them to 
advantage, in one case 90 lines of GCode took about 35 hours to run on my 
admitted slow toy machine.  No tool changes involved in that instance, so I 
just left it running, lights out.

Can you elaborate on why you want to avoid using this valuable programming 
tool?

Cheers, Gene
-- 
There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order.
-Ed Howdershelt (Author)
My web page: http://coyoteden.dyndns-free.com:85/gene
If God had meant for us to be naked, we would have been born that way.

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-14 Thread Michael Haberler
Farzin,

an alternate route would be to use an M6 remapped to a o-word procedure, which 
is now in master.

For an example, see 
http://git.linuxcnc.org/gitweb?p=emc2.git;a=tree;f=configs/sim/remap/manual-toolchange-with-tool-length-switch;h=88bb75a5ddc14e33637975e7095cb5be978ec2aa;hb=0bf76007cb3a11c9218bb2cf03367313d77290a6
 .

Documentation on remapping is here: 
http://www.linuxcnc.org/docs/devel/html/remap/structure.html

-Michael


Am 14.11.2011 um 13:36 schrieb Farzin Kamangar:

 Hello, dear EMC users;
  Considering the tool changing process, is there a way to send some
 movement commands from PLC to CNC?
 I have entered the TOOL_CHANGE_POSITION and TOOL_CHANGE_QUILL_UP in the INI
 file and in the EMCIO section. This is fine and causes the tool go to the
 tool change
 position. Now I need to move an axis towards the tool changer, orient the
 spindle, open the tool collet, move the tool changer carrousel to the old
 tool position, put the old tool
 back in its position, move the carrousel to the new tool position, grab the
 tool, close the tool collet and go back to the cutting area to continue. I
 was wondering how these
 actions could be done without using subroutine calls in the Gcode? Please
 let me know if I am not clear enough. Thanks
 Farzin
 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-14 Thread Kirk Wallace
On Mon, 2011-11-14 at 16:06 +0330, Farzin Kamangar wrote:
... snip
 I was wondering how these actions could be done without using subroutine 
 calls in the Gcode? Please
 let me know if I am not clear enough.
... snip

I use HAL comps for my changers. My lathe has a simple one:
http://www.wallacecompany.com/cnc_lathe/HNC/emc2/turret.comp 

because I just need to turn bits on and off at the proper time.

My mill comp will be much more complicated but uses the same sort of
method of looping through and checking status, reacting, then setting
new status. Karl made a comp for his mill:
http://www.wallacecompany.com/machine_shop/Shizuoka/qdtoolchange.comp 

I move my carousel with pwmgen and limit3, but so far there is no way to
to move any axes other than with the .ini parameters you mentioned
before. I am very reluctant to use machine dependent code, such as for a
changer, in my g-code files.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-14 Thread Viesturs Lācis
2011/11/14 Farzin Kamangar farzin.kaman...@gmail.com:
 Hello, dear EMC users;
      Considering the tool changing process, is there a way to send some
 movement commands from PLC to CNC?

How about using PLC part of EMC2 - ClassicLadder? It seems to me that
this would perfectly fit Your intended idea. And it already is in
EMC2.

I also think that Michael's solution is worth to try - AFAIK exactly
this kind of toolchanging procedure was the initial purpose to do
that.

Viesturs

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] tool changer question

2011-11-14 Thread Kirk Wallace
On Mon, 2011-11-14 at 16:06 +0330, Farzin Kamangar wrote:
 Hello, dear EMC users;
   Considering the tool changing process, is there a way to send some
 movement commands from PLC to CNC?

I'm not familiar with PLC's but they should at the very least have pins
that can set or clear bits. You can connect these pins to parallel port
pins. Different bits can be predetermined commands, positions or
movement. If the PLC has Modbus or some sort of serial port, this can be
used for non-realtime movements and commands. Modbus is common for
connecting VFD's. Search the wiki for Modbus and VFD.

 I have entered the TOOL_CHANGE_POSITION and TOOL_CHANGE_QUILL_UP in the INI
 file and in the EMCIO section. This is fine and causes the tool go to the
 tool change
 position. Now I need to move an axis towards the tool changer,

This is a problem.

  orient the
 spindle,

This most likely can be done with HAL components pwmgen, limit3 and
encoder.

  open the tool collet,

Simple parallel port bit pin?

  move the tool changer carrousel to the old
 tool position, put the old tool
 back in its position, move the carrousel to the new tool position,

pwmgen, limit3 and encoder again.

  grab the
 tool, close the tool collet and go back to the cutting area to continue. I
 was wondering how these
 actions could be done without using subroutine calls in the Gcode?
... snip

Custom comp or Classic Ladder.


-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users