Search the web
Sign In
New User? Sign Up
geckodrive
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
spindle curent sensing module,interfacebale with mach   Message List  
Reply | Forward Message #19240 of 19813 |
Re: [geckodrive] Re: spindle curent sensing module,interfacebale with mach

jeetendra_g10 wrote:

>i will definitely get there,(using emc2 for all my systems),but my funding is
in phases. I have to get things running and financially productive,even if its a
vbscript on mach,for the monthly plugins that i will have to make for weird
machines on weird coordinate systems.
>i looked desperately for a way of using python to make quick scripts,found none
for emc2,but mach has low complexity road to reach the stage where you can
quickly write your scripts,for ad-hoc machines,without needing guru-hood .
>
>
Hmmm. How hard did you look for python code? :)

Here's what you need to do to be able to control EMC2 from python:

import emc
import hal

Done. :)

An example of a script that loads and runs a g-code file, then stops the
machine, is here:
<http://emergent.unpy.net/index.cgi/01167419757>
From the comments in the program:
"jdi: Just do it

This program can be used as an emc "DISPLAY". It resets estop, turns the
machine on, loads and runs the ngc file (which must be given as a positional
argument), printing the sequence number and location once per second. When
it's done it punches the ESTOP button and exits emc."

There's a program you can use in scripts called "axis-remote" that lets
you load, reload, and clear G-code programs, or run MDI commands or
cause AXIS to quit.

>so,if right now i cannot afford the learning curve of emc2 from a developers
perspective,emc2 is a natural match for the things the factories need
here,without excluding mach.
>(bench presses roller feeder,sheet roller feeders for die cutting machines,mig
welding,plasma cutting,cnc routing,cnc granite machining,air less painting,glass
engraving...for the factory where i now work,as an example)
>
>
Yep, learning curves and the need for immediate return are the things
that keep a lot of people back.

>as can be seen,only 40% of the machines actually use contouring in the sense of
x,y,z.The others can be motorised by stepper or servos,via plc control,or emc2
on a single board pc)
>
>
On the machines where G-code and contouring aren't really necessary, you
can use a "bare HAL" setup. This is just the realtime kernel with the
hardware drivers and whatever you need to drive your motors. I made a
custom HAL-only system that talked to a Modbus PLC (in userspace,
non-realtime) to receive settings and commands, and had a 10 KHz control
loop running some pulse generation software (not for steppers, power
supply waveforms). This was a headless system which I would only access
via remote login over ethernet. I designed some hardware (16-bit analog
I/O cards to connect to a Mesa FPGA card), and wrote some custom VHDL
code for the FPGA. I wrote several custom HAL modules, plus some of the
existing ones, to make a system that did exactly what was necessary for
that application, which of course had nothing to do with EMC2 or
machining. This is the level you may get to if it's necessary. You
won't be able to do that with Mach/Windows.

See you
- Steve




Wed Jul 15, 2009 6:03 pm

swpadnos
Offline Offline
Send Email Send Email

Forward
Message #19240 of 19813 |
Expand Messages Author Sort by Date

hi all, does anyone now of an electronic module that can give me analog output 0-10v ,proportional to spindle loading current? can i expect a 3 phase motor to...
jeetendra_g10
Offline Send Email
Jul 14, 2009
1:43 pm

jeetendra, Motor loading IS NOT proportional to motor current. Read this site for more info: ...
cncnovice
Offline Send Email
Jul 14, 2009
2:19 pm

... No, the current of an induction motor is not at all proportional to load. The current remains nearly the same, but the phase angle between the current and...
Jon Elson
jmelson2
Offline Send Email
Jul 14, 2009
3:56 pm

many thanks Jon and John for the help. the links and info helped me a lot. I am suspecting the loading controls will be useful for cnc marble grinding. i...
jeetendra_g10
Offline Send Email
Jul 15, 2009
1:57 pm

... You really should take another look at EMC2. I'll send you another disc with the latest if you need it :) Once you get the load signal into the PC (there...
Stephen Wille Padnos
swpadnos
Offline Send Email
Jul 15, 2009
2:16 pm

thanks steve, the offer is most welcome. my only rant with emc2 is i could not become an active developper of emc2,after a few months of reading around,and...
jeetendra_g10
Offline Send Email
Jul 15, 2009
2:40 pm

... Yes, there's a lot of code and a lot of documentation. Even in the areas that have sufficient documentation, it can be hard to find what you want (due to...
Stephen Wille Padnos
swpadnos
Offline Send Email
Jul 15, 2009
3:01 pm

i will definitely get there,(using emc2 for all my systems),but my funding is in phases. I have to get things running and financially productive,even if its a...
jeetendra_g10
Offline Send Email
Jul 15, 2009
5:48 pm

... Hmmm. How hard did you look for python code? :) Here's what you need to do to be able to control EMC2 from python: import emc import hal Done. :) An...
Stephen Wille Padnos
swpadnos
Offline Send Email
Jul 15, 2009
6:05 pm

thanks steve, i downloaded emc8.04 yesterday. will tinker with it this week....
jeetendra_g10
Offline Send Email
Jul 16, 2009
2:14 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help