Re: [Emc-users] touchy question

2010-04-18 Thread Jeff Epler
The 100 value is hardcoded in emc/motion/command.c.  FWIW I disagree
with the comments and think that the value should probably come all the
way from NML, not from HAL.  But either  way, you can get what you want by
changing the hard-coded 100 to a different value.

1500 case EMCMOT_SPINDLE_INCREASE:
1501 rtapi_print_msg(RTAPI_MSG_DBG, SPINDLE_INCREASE);
1502 if (emcmotStatus-spindle.speed  0) {
1503 emcmotStatus-spindle.speed += 100; //FIXME - make the 
step a HAL parameter
1504 } else if (emcmotStatus-spindle.speed  0) {
1505 emcmotStatus-spindle.speed -= 100;
1506 }
1507 break;
1508 
1509 case EMCMOT_SPINDLE_DECREASE:
1510 rtapi_print_msg(RTAPI_MSG_DBG, SPINDLE_DECREASE);
1511 if (emcmotStatus-spindle.speed  100) {
1512 emcmotStatus-spindle.speed -= 100; //FIXME - make the 
step a HAL parameter
1513 } else if (emcmotStatus-spindle.speed  -100) {
1514 emcmotStatus-spindle.speed += 100;
1515 }
1516 break;

Jeff

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] touchy question

2010-04-18 Thread Alex Joni
I'd say I disagree with the whole idea of SPINDLE_INCREASE/DECREASE
We should just take it out and let the GUIs add/subtract a value and 
send that as the new speed preset. That way users can have it as an 
option, or whatever.

Regards,
Alex

On 4/18/2010 9:50 AM, Jeff Epler wrote:
 The 100 value is hardcoded in emc/motion/command.c.  FWIW I disagree
 with the comments and think that the value should probably come all the
 way from NML, not from HAL.  But either  way, you can get what you want by
 changing the hard-coded 100 to a different value.

 1500 case EMCMOT_SPINDLE_INCREASE:
 1501 rtapi_print_msg(RTAPI_MSG_DBG, SPINDLE_INCREASE);
 1502 if (emcmotStatus-spindle.speed  0) {
 1503 emcmotStatus-spindle.speed += 100; //FIXME - make the 
 step a HAL parameter
 1504 } else if (emcmotStatus-spindle.speed  0) {
 1505 emcmotStatus-spindle.speed -= 100;
 1506 }
 1507 break;
 1508
 1509 case EMCMOT_SPINDLE_DECREASE:
 1510 rtapi_print_msg(RTAPI_MSG_DBG, SPINDLE_DECREASE);
 1511 if (emcmotStatus-spindle.speed  100) {
 1512 emcmotStatus-spindle.speed -= 100; //FIXME - make the 
 step a HAL parameter
 1513 } else if (emcmotStatus-spindle.speed  -100) {
 1514 emcmotStatus-spindle.speed += 100;
 1515 }
 1516 break;

 Jeff

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] electric current overwrite

2010-04-18 Thread a

Hi
I want to ask about electric current that turns AC servomotor in EMC2.
I think EMC2 works like that: Tool move with lowest electric current. When
tool is encounter resistance from work part etc. EMC2 increase electric
current to overcome that resistance. Increase electric current translates
into increase of torque from AC servomotor.
Can I control that electric current?
How is possible to put overwrite 0% to 100% that electric current?
If I set overwrite to 100% than system behaves as it is. If I set
overwrite to 0% than system does not move. If I set overwrite to 10% than
smallest resistance to tool will stop machine. When resistance reduced
than machine move to execute next bock of code.

Can it be M code (machine code)? M80 47. (etc)
Means 47% electric current overwrite.

Thanks
Aram




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Touchy -- changing the nc_files suffic from .ngc to .tap?

2010-04-18 Thread John Guenther
Hi Dave,

I got the 2.4.0~pre packages from here
http://emc2-buildbot.colorado.edu/~buildmaster/dists/hardy/
and followed the information provided by Sebastian Kuzminsky on 19 Mar
2010.  Unfortunately I do not have enough space on the EMC2 computer to
install the source so for now I will use what I have.  This is the
machine that is slated to go into the shop to run my mill.  

Thanks again for all of your help.

John Guenther
'Ye Olde Pen Maker'
Sterling, Virginia


On Sat, 2010-04-17 at 23:21 -0400, Dave wrote:
 John,
 
 That doesn't sound like the correct location of touchy files for an EMC2 
 installation.
 
 There are at least two different ways to install EMC2.   You can 
 install it as a regularly installed program similar to how other 
 programs are installed, or you can install them as a run-in-place 
 application which means that they run within a specified directory.
 
 (Someone jump in here if I am wrong about something.. )
 
 In order to get the development master version of EMC2 which is the 
 2.5_pre version ( as of a couple of days ago at least ... ), you need to 
 use Git to download the EMC2 source code and install the software, 
 preferably as a run in place installation which will keep everything in 
 one specified directory.
 
 http://wiki.linuxcnc.org/emcinfo.pl?Installing_EMC2#Getting_the_source_with_git
 
 Line 2.2
 
 The Wiki has good instructions on how to do this.   After you install 
 Git, you run the Git Clone command to pull the Git repository off the 
 EMC2 server and put an cloned copy of it on your hard drive in the 
 specified user directory..  emc2-dev  per the instructions..
 Note that after you do the Git Clone, the master version 2.5_pre is 
 already exposed in your emc2-dev directory.No need to change 
 branches etc.Compile it according to the instructions.  Make sure to 
 set the environment also..Note that this is the current development 
 master and it can have bugs in it..   more so typically than the 
 released versions like 2.3.5.But 2.3.5 does not have Touchy in it.
 
 Dave
 
 On 4/17/2010 9:11 PM, John Guenther wrote:
  I just checked and I was correct for the 2.4.0~pre version all of the
  touchy files located in /usr/lib/python2.5/site-packages/touchy are .pyc
  files.
 
  Where do I find 2.5_pre to load it on my emc2 computer?
 
  Thanks
 
  John Guenther
 
 
  On Sat, 2010-04-17 at 16:27 -0400, John Guenther wrote:
 
  Dave,
 
  Thanks, I will recheck it, I have not touched that machine for two
  weeks, been out of town.  I will try to look at it tonight.
 
  John
 
 
  On Sat, 2010-04-17 at 13:59 -0400, Dave wrote:
   
  Hi John,
 
the touchy python scripts all had a .pyc extension
 
  Are you sure about that??
 
  I have 2.5_pre loaded and I searched and all that is on this version is
  touchy.py, no touchy.pyc file.
 
  If you have .pyc files only in 2.4_pre, you could do another git clone
  to a different directory.   The git clone will default to the master
  checkout, which I believe is still the 2.5_pre version.Just search
  through the newly created directory for touchy.py and it should pop
  right up.
 
  I've been learning Python, and so far I really like it... consistent,
  powerful, and compact.Neat freaks must love this language with the
  required indentation etc..
 
  There is a lot of Python info on the web, but I checked a book out of
  the local library that is really good.Learning Python, written by
  Mark Lutz.  It is a well organized book.   Sometimes books just work
  better for me when looking for some small detail that I am missing
 
  Dave
 
 
 
  On 4/17/2010 7:01 AM, John Guenther wrote:
 
  You are correct, however when I installed 2.4~pre the touchy python
  scripts all had a .pyc extension which as I understand it means they
  have been compiled.  I am new to python and have not learned as much of
  it as I would like to.
 
  John Guenther
  'Ye Olde Pen Maker'
  Sterling, Virginia
 
 
  On Mon, 2010-03-29 at 11:32 -0500, Dave wrote:
 
   
  Why are you trying to compile it?  Python will run the file in
  interpreter mode just fine usually.
 
  Dave
 
  On 3/28/2010 6:14 PM, John Guenther wrote:
 
 
  Sebastian,
 
  I found where to change the .ngc suffix to .tap in the filechooser.py
  file however I am not familiar enough with python to be able to
  recompile it into filechooser.pyc.  How do I do that?
 
  Thanks for all of your help.
 
  John Guenther
  'Ye Olde Pen Maker'
  Sterling, Virginia
 
 
  --
  Download Intel#174; Parallel Studio Eval
  Try the new software tools for yourself. Speed compiling, find bugs
  proactively, and fine-tune applications for parallel performance.
  See why Intel Parallel Studio got high marks during beta.
  http://p.sf.net/sfu/intel-sw-dev
  ___
  Emc-users mailing list
  

[Emc-users] Another touchy question?

2010-04-18 Thread John Guenther

Now for another touchy question.  The file emc_interface.py appears to
be the link between touchy and emc2.  What or where is the emc side of
this link?  I am thinking of experimenting with either another new user
interface which is more in line with my simple CNC machines.  I would
like to know how to make other functions available that are not
currently included in emc_interface.py.

Thanks for your help.

-- 
John Guenther
'Ye Olde Pen Maker'
Sterling, Virginia  


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] electric current overwrite

2010-04-18 Thread Ray Henry

A servo system like you are using runs torque (amps) up or down
depending upon how big the difference between commanded and actual
position is.  That delta is computed in the EMC but is implemented by
the motor drive.  The tuning of your motor drive is a critical part of
what you want.

The second part of this is related to the EMC.  In the EMC and most
other motion control systems I've encountered you normally tune PID and
Feed forwards to produce the desired motor characteristics including
torque.  After that tuning is done properly you can adjust commanded
position to control motor torque.  But that tuning is a static or
constant sort of thing.  Some systems watch spindle load and will change
tools when the load reaches a certain critical point.

My thinking is that you'd need to add in some feed override so that you
get good cutting, reduce chatter, or meet a machinist's feel for the
cut.  EMC, through HAL has adaptive feedrate control that could be
hooked up to say a summed or weighted average of following error for the
relevant axes.  Such a system might do what I imagine that you are
asking.

Rayh


On Sun, 2010-04-18 at 02:00 -0600, a...@conceptmachinery.com wrote:
 Hi
 I want to ask about electric current that turns AC servomotor in EMC2.
 I think EMC2 works like that: Tool move with lowest electric current. When
 tool is encounter resistance from work part etc. EMC2 increase electric
 current to overcome that resistance. Increase electric current translates
 into increase of torque from AC servomotor.
 Can I control that electric current?
 How is possible to put overwrite 0% to 100% that electric current?
 If I set overwrite to 100% than system behaves as it is. If I set
 overwrite to 0% than system does not move. If I set overwrite to 10% than
 smallest resistance to tool will stop machine. When resistance reduced
 than machine move to execute next bock of code.
 
 Can it be M code (machine code)? M80 47. (etc)
 Means 47% electric current overwrite.
 
 Thanks
 Aram
 
 
 
 
 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Another touchy question?

2010-04-18 Thread Dave
The Axis interface is also written in Python..  do a search for 
axis.py and I think it will pop up.

There is a lot of Axis related code.  Browse through it, and you may 
find what you are looking for.

If you want more direct access to the developers, you should sign up for 
the EMC IRC.I use Chatzilla as a IRC client, with Firefox.  
Chatzilla is a Firefox plug in.You want to get on the Freenode 
system, and join the #emc channel.

Responses are sometimes immediate, other times delayed..  Depends on who 
is watching the channel at the time..

It is a pretty lively group with a worldwide audience..   :-)

Dave
(Dave911 on the IRC)


On 4/18/2010 7:11 AM, John Guenther wrote:
 Now for another touchy question.  The file emc_interface.py appears to
 be the link between touchy and emc2.  What or where is the emc side of
 this link?  I am thinking of experimenting with either another new user
 interface which is more in line with my simple CNC machines.  I would
 like to know how to make other functions available that are not
 currently included in emc_interface.py.

 Thanks for your help.




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Another touchy question?

2010-04-18 Thread John Guenther
Thanks Dave.  I will check out the 'Axis' interface code and I will get
setup for the EMC IRC.

John Guenther
'Ye Olde Pen Maker'
Sterling, Virginia


On Sun, 2010-04-18 at 11:36 -0400, Dave wrote:
 The Axis interface is also written in Python..  do a search for 
 axis.py and I think it will pop up.
 
 There is a lot of Axis related code.  Browse through it, and you may 
 find what you are looking for.
 
 If you want more direct access to the developers, you should sign up for 
 the EMC IRC.I use Chatzilla as a IRC client, with Firefox.  
 Chatzilla is a Firefox plug in.You want to get on the Freenode 
 system, and join the #emc channel.
 
 Responses are sometimes immediate, other times delayed..  Depends on who 
 is watching the channel at the time..
 
 It is a pretty lively group with a worldwide audience..   :-)
 
 Dave
 (Dave911 on the IRC)
 
 
 On 4/18/2010 7:11 AM, John Guenther wrote:
  Now for another touchy question.  The file emc_interface.py appears to
  be the link between touchy and emc2.  What or where is the emc side of
  this link?  I am thinking of experimenting with either another new user
  interface which is more in line with my simple CNC machines.  I would
  like to know how to make other functions available that are not
  currently included in emc_interface.py.
 
  Thanks for your help.
 
 
 
 
 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] touchy question

2010-04-18 Thread Jan de Kruyf
Lots of machines have a rotary knob that goes from 50% to 150% of spindle
speed. In my experience that works out rather well in practice.

Jan


On Sun, Apr 18, 2010 at 9:42 AM, Alex Joni alex.j...@robcon.ro wrote:

 I'd say I disagree with the whole idea of SPINDLE_INCREASE/DECREASE
 We should just take it out and let the GUIs add/subtract a value and
 send that as the new speed preset. That way users can have it as an
 option, or whatever.

 Regards,
 Alex

 On 4/18/2010 9:50 AM, Jeff Epler wrote:
  The 100 value is hardcoded in emc/motion/command.c.  FWIW I disagree
  with the comments and think that the value should probably come all the
  way from NML, not from HAL.  But either  way, you can get what you want
 by
  changing the hard-coded 100 to a different value.
 
  1500 case EMCMOT_SPINDLE_INCREASE:
  1501 rtapi_print_msg(RTAPI_MSG_DBG, SPINDLE_INCREASE);
  1502 if (emcmotStatus-spindle.speed  0) {
  1503 emcmotStatus-spindle.speed += 100; //FIXME - make
 the step a HAL parameter
  1504 } else if (emcmotStatus-spindle.speed  0) {
  1505 emcmotStatus-spindle.speed -= 100;
  1506 }
  1507 break;
  1508
  1509 case EMCMOT_SPINDLE_DECREASE:
  1510 rtapi_print_msg(RTAPI_MSG_DBG, SPINDLE_DECREASE);
  1511 if (emcmotStatus-spindle.speed  100) {
  1512 emcmotStatus-spindle.speed -= 100; //FIXME - make
 the step a HAL parameter
  1513 } else if (emcmotStatus-spindle.speed  -100) {
  1514 emcmotStatus-spindle.speed += 100;
  1515 }
  1516 break;
 
  Jeff
 
 
 --
  Download Intel#174; Parallel Studio Eval
  Try the new software tools for yourself. Speed compiling, find bugs
  proactively, and fine-tune applications for parallel performance.
  See why Intel Parallel Studio got high marks during beta.
  http://p.sf.net/sfu/intel-sw-dev
  ___
  Emc-users mailing list
  Emc-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/emc-users
 
 

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] electric current overwrite

2010-04-18 Thread a
Hi Ray.
I am thinking about CNC machine that can safe way interact with human
(people).
That machine must be one with which person can wrestle with without danger
to get injure. for example massage ( CNC programmable)machine.
That is why i want to use M80 47 code (M80 electric current overwrite, for
47% from maximum level). I think also need M85 code that show for how long
overwrite - like 1 -4 minute until machine go into Alarm mode.

With code M80 and M85 in place person/human can be safe way deal with CNC
programmable machine.
Today many medical thing will be given to robots (CNC driven machine) and
it will be important part of overall economy.

thanks
Aram



 A servo system like you are using runs torque (amps) up or down
 depending upon how big the difference between commanded and actual
 position is.  That delta is computed in the EMC but is implemented by
 the motor drive.  The tuning of your motor drive is a critical part of
 what you want.

 The second part of this is related to the EMC.  In the EMC and most
 other motion control systems I've encountered you normally tune PID and
 Feed forwards to produce the desired motor characteristics including
 torque.  After that tuning is done properly you can adjust commanded
 position to control motor torque.  But that tuning is a static or
 constant sort of thing.  Some systems watch spindle load and will change
 tools when the load reaches a certain critical point.

 My thinking is that you'd need to add in some feed override so that you
 get good cutting, reduce chatter, or meet a machinist's feel for the
 cut.  EMC, through HAL has adaptive feedrate control that could be
 hooked up to say a summed or weighted average of following error for the
 relevant axes.  Such a system might do what I imagine that you are
 asking.

 Rayh


 On Sun, 2010-04-18 at 02:00 -0600, a...@conceptmachinery.com wrote:
 Hi
 I want to ask about electric current that turns AC servomotor in EMC2.
 I think EMC2 works like that: Tool move with lowest electric current.
 When
 tool is encounter resistance from work part etc. EMC2 increase electric
 current to overcome that resistance. Increase electric current
 translates
 into increase of torque from AC servomotor.
 Can I control that electric current?
 How is possible to put overwrite 0% to 100% that electric current?
 If I set overwrite to 100% than system behaves as it is. If I set
 overwrite to 0% than system does not move. If I set overwrite to 10%
 than
 smallest resistance to tool will stop machine. When resistance reduced
 than machine move to execute next bock of code.

 Can it be M code (machine code)? M80 47. (etc)
 Means 47% electric current overwrite.

 Thanks
 Aram




 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] electric current overwrite

2010-04-18 Thread a
 Hi Ray.
 I am thinking about CNC machine that can safe way interact with human
 (people).
 That machine must be one with which person can wrestle with without danger
 to get injure. for example massage ( CNC programmable)machine.
 That is why i want to use M80 47 code (M80 electric current overwrite, for
 47% from maximum level). I think also need M85 code that show for how long
 overwrite - like 1 -4 minute until machine go into Alarm mode.

 With code M80 and M85 in place person/human can be safe way deal with CNC
 programmable machine.
I forgot about M90 - to program how accurate machine shout be. for example
M90 1.500 means that if machine in + /- 1.5 from target place it is OK ,
and go to the next block. For massage machine accuracy +/- 1.5 will be
good enough, i think


 Today many medical thing will be given to robots (CNC driven machine) and
 it will be important part of overall economy.

 thanks
 Aram



 A servo system like you are using runs torque (amps) up or down
 depending upon how big the difference between commanded and actual
 position is.  That delta is computed in the EMC but is implemented by
 the motor drive.  The tuning of your motor drive is a critical part of
 what you want.

 The second part of this is related to the EMC.  In the EMC and most
 other motion control systems I've encountered you normally tune PID and
 Feed forwards to produce the desired motor characteristics including
 torque.  After that tuning is done properly you can adjust commanded
 position to control motor torque.  But that tuning is a static or
 constant sort of thing.  Some systems watch spindle load and will change
 tools when the load reaches a certain critical point.

 My thinking is that you'd need to add in some feed override so that you
 get good cutting, reduce chatter, or meet a machinist's feel for the
 cut.  EMC, through HAL has adaptive feedrate control that could be
 hooked up to say a summed or weighted average of following error for the
 relevant axes.  Such a system might do what I imagine that you are
 asking.

 Rayh


 On Sun, 2010-04-18 at 02:00 -0600, a...@conceptmachinery.com wrote:
 Hi
 I want to ask about electric current that turns AC servomotor in EMC2.
 I think EMC2 works like that: Tool move with lowest electric current.
 When
 tool is encounter resistance from work part etc. EMC2 increase electric
 current to overcome that resistance. Increase electric current
 translates
 into increase of torque from AC servomotor.
 Can I control that electric current?
 How is possible to put overwrite 0% to 100% that electric current?
 If I set overwrite to 100% than system behaves as it is. If I set
 overwrite to 0% than system does not move. If I set overwrite to 10%
 than
 smallest resistance to tool will stop machine. When resistance reduced
 than machine move to execute next bock of code.

 Can it be M code (machine code)? M80 47. (etc)
 Means 47% electric current overwrite.

 Thanks
 Aram




 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net

Re: [Emc-users] electric current overwrite

2010-04-18 Thread Dave
Aram,

I think what you are talking about is a torque limit,  which generally 
translates into a current limit on a servo drive.

Internally, many or most servo drives have a current loop, then a 
position loop outside of the current loop, and finally a velocity loop 
on the outside of that.EMC2 usually ties into the servo drive at 
the velocity loop level via the the plus or minus 10 volt interface.

A torque limit would usually be implemented at the drive level since the 
CNC system does not directly control the servo motor torque.   I've 
implemented torque limits on brushless servo drives via a separate +/- 
10 volt input to the servo drive which changed the max current that the 
drive could output, to implement a torque limit.

I'm sure that EMC2 is flexible enough that you could implement an Mcode 
to output a certain analog value that could be used to limit the torque 
at the drive level, but it would not be anything standard for EMC2.

Dave




On 4/18/2010 3:09 PM, a...@conceptmachinery.com wrote:
 Hi Ray.
 I am thinking about CNC machine that can safe way interact with human
 (people).
 That machine must be one with which person can wrestle with without danger
 to get injure. for example massage ( CNC programmable)machine.
 That is why i want to use M80 47 code (M80 electric current overwrite, for
 47% from maximum level). I think also need M85 code that show for how long
 overwrite - like 1 -4 minute until machine go into Alarm mode.

 With code M80 and M85 in place person/human can be safe way deal with CNC
 programmable machine.
  
 I forgot about M90 - to program how accurate machine shout be. for example
 M90 1.500 means that if machine in + /- 1.5 from target place it is OK ,
 and go to the next block. For massage machine accuracy +/- 1.5 will be
 good enough, i think



 Today many medical thing will be given to robots (CNC driven machine) and
 it will be important part of overall economy.

 thanks
 Aram


  
 A servo system like you are using runs torque (amps) up or down
 depending upon how big the difference between commanded and actual
 position is.  That delta is computed in the EMC but is implemented by
 the motor drive.  The tuning of your motor drive is a critical part of
 what you want.

 The second part of this is related to the EMC.  In the EMC and most
 other motion control systems I've encountered you normally tune PID and
 Feed forwards to produce the desired motor characteristics including
 torque.  After that tuning is done properly you can adjust commanded
 position to control motor torque.  But that tuning is a static or
 constant sort of thing.  Some systems watch spindle load and will change
 tools when the load reaches a certain critical point.

 My thinking is that you'd need to add in some feed override so that you
 get good cutting, reduce chatter, or meet a machinist's feel for the
 cut.  EMC, through HAL has adaptive feedrate control that could be
 hooked up to say a summed or weighted average of following error for the
 relevant axes.  Such a system might do what I imagine that you are
 asking.

 Rayh


 On Sun, 2010-04-18 at 02:00 -0600, a...@conceptmachinery.com wrote:

 Hi
 I want to ask about electric current that turns AC servomotor in EMC2.
 I think EMC2 works like that: Tool move with lowest electric current.
 When
 tool is encounter resistance from work part etc. EMC2 increase electric
 current to overcome that resistance. Increase electric current
 translates
 into increase of torque from AC servomotor.
 Can I control that electric current?
 How is possible to put overwrite 0% to 100% that electric current?
 If I set overwrite to 100% than system behaves as it is. If I set
 overwrite to 0% than system does not move. If I set overwrite to 10%
 than
 smallest resistance to tool will stop machine. When resistance reduced
 than machine move to execute next bock of code.

 Can it be M code (machine code)? M80 47. (etc)
 Means 47% electric current overwrite.

 Thanks
 Aram




 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
  

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Emc-users mailing list