[Emc-users] What hardware to interface with these linear scales and rotary encoder?

2014-03-31 Thread Gregg Eshelman
Anilam System A-10 pinout pin 1: A chan (white) pin 2: NC pin3: COM (black) pin4: B chan (green) pin5: NC pin6: +5V (red) pin7: marker pulse (brown) pin8: NC Specs I've found is they're 10 micron, 0.0004 resolution, square wave TTL output. I have 1600 oz/in stepper motors on the mill. The Z

Re: [Emc-users] Improvised DC Motor Controll using Mesa 7i39?

2014-03-31 Thread andy pugh
On 31 March 2014 02:23, Florian Rist fr...@fs.tum.de wrote: The strange thing is, that the tiny DC motor feels to have more torque than the much bigger BLDCs. I think there is still something wrong with my setup. The BLDCs are 75W, 0.28Nm at 4.7A and I easily make them stall by turning a 20

Re: [Emc-users] What hardware to interface with these linear scales and rotary encoder?

2014-03-31 Thread Dave Cole
The scales should not be a problem. TTL encoder inputs are common on the Mesa boards. You will need to look up that BEI encoder to find the specs. TTL or differential line driver are common. I've been using the Mesa 7i43 with a 16 in 8 out I/O board ( 7i37TA) and either the servo (7i33TA) or

Re: [Emc-users] What hardware to interface with these linear scales and rotary encoder?

2014-03-31 Thread andy pugh
On 31 March 2014 07:02, Gregg Eshelman g_ala...@yahoo.com wrote: Specs I've found is they're 10 micron, 0.0004 resolution, square wave TTL output. That should work with any hardware, including the parallel port. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
Hey! After a couple days away I'm back at this. And immediately stalled! :) stdglue.py returns INTERP_ERROR and other constants that I just can't seem to locate! When I try to import emccanon from interpreter import * in my own handler code linuxcnc complains that neither of those modules

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Michael Haberler
Am 31.03.2014 um 16:03 schrieb Rod Fitzsimmons Frey rodf...@gmail.com: Hey! After a couple days away I'm back at this. And immediately stalled! :) stdglue.py returns INTERP_ERROR and other constants that I just can't seem to locate! When I try to import emccanon from interpreter

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
Thanks! .ini file: http://pastebin.com/VsnQFuzt .hal file: http://pastebin.com/RHEJYqJB hal file hook (hal_racktoolchange): http://pastebin.com/njTUZAqS tool change python code: http://pastebin.com/1EZy0Pur Console output: http://pastebin.com/jNHZbxAE On Mon, Mar 31, 2014 at 10:59 AM,

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Michael Haberler
Am 31.03.2014 um 17:15 schrieb Rod Fitzsimmons Frey rodf...@gmail.com: Thanks! .ini file: http://pastebin.com/VsnQFuzt .hal file: http://pastebin.com/RHEJYqJB hal file hook (hal_racktoolchange): http://pastebin.com/njTUZAqS tool change python code: http://pastebin.com/1EZy0Pur this is

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
Oh! But it works now! I can move the spindle where I want it, I can setp on the pins to release the tool, etc. M6T1 does exactly that with this code. I just can't signal to EMC that the tool has been changed, so on the *next* call to M6 it reports that the current tool is -1. But I readily

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
Wait! There's probably confusion because of my crappy naming. interpreter.execute doesn't rely on from interpreter import * interpreter is just the argument passed to toolchange. I thought it was an instance of an emc interpreter so that's what I called it. On Mon, Mar 31, 2014 at 11:39

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Billy Huddleston
I gave up trying to do remap via python and switched to O word. I have a complete simulate umbrella style tool changer working now. I would have rather done it in python, but, got it done with O word no problem. Thanks, Billy On 03/31/2014 11:41 AM, Rod Fitzsimmons Frey wrote: Wait!

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Niemand Sonst
Rod, it is easy to access hal pin from ngc code, if you enable features in your INI [RS274NGC] with FEATURES = 12 (enables INI and Hal reading) And the needed pins can be created in a python handler file. You might want to check gmoccapy and gmoccapy_tool_sensor.ini for an example, please see

[Emc-users] How to rotate an axis constantly at a given speed?

2014-03-31 Thread Florian Rist
Hi, after I managed to set-up a forth angular axis I realised that I need to be able to command this axis to rotate at a given speed while other motion commands in x, y, z are executed. Is there a way to do this without changing the configuration and setting up as a spindle? Maybe I could modify

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
Thanks, Niemand! I'll try that. Where should I look for documentation that would tell me features available in rs274ngc? I've looked through the source as best I can but don't know how you found that features=12 parameter. On Mon, Mar 31, 2014 at 11:50 AM, Niemand Sonst nie...@web.de wrote:

Re: [Emc-users] How to rotate an axis constantly at a given speed?

2014-03-31 Thread Dave Cole
What kind of motor? Dave On 3/31/2014 11:49 AM, Florian Rist wrote: Hi, after I managed to set-up a forth angular axis I realised that I need to be able to command this axis to rotate at a given speed while other motion commands in x, y, z are executed. Is there a way to do this without

Re: [Emc-users] How to rotate an axis constantly at a given speed?

2014-03-31 Thread Florian Rist
Hi Dave What kind of motor? A small DC motor with encode, now connected to a 7i39 and controlled via a 5i23. Currently the drive is set-up as a angular axis A. See the Improvised DC Motor Control using Mesa 7i39? Thread. Greetings Flo

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Niemand Sonst
Hallo Rod, my name is Norbert ;-) Have you taken a look to http://www.linuxcnc.org/docs/devel/html/remap/structure.html#_optional_interpreter_features_ini_file_configuration_a_id_sub_ini_features_a Special section 18. Norbert Am 31.03.2014 19:42, schrieb Rod Fitzsimmons Frey: Thanks,

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
Thank you, sorry about mistaking your name. :) Fooled by the From field in the email envelope. On Mon, Mar 31, 2014 at 2:12 PM, Niemand Sonst nie...@web.de wrote: Hallo Rod, my name is Norbert ;-) Have you taken a look to

Re: [Emc-users] How to rotate an axis constantly at a given speed?

2014-03-31 Thread andy pugh
On 31 March 2014 19:08, Florian Rist fr...@fs.tum.de wrote: A small DC motor with encode, now connected to a 7i39 and controlled via a 5i23. Currently the drive is set-up as a angular axis A. See the Improvised DC Motor Control using Mesa 7i39? Thread. I would suggest a second PID controller

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
I've looked at this and see where the bitmask, but it seems I can only read pins with the hal component, not set them? How can I turn on my power drawbar valve, trigger the blow valve, etc? I feel like I'm missing some obvious insight... this feeling of incompetence is very uncomfortable. On

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Niemand Sonst
Rod, that is easy, just use Gcode ;-) See : http://linuxcnc.org/docs/html/gcode/m-code.html#sec:M62-M65 Norbert Am 31.03.2014 21:22, schrieb Rod Fitzsimmons Frey: I've looked at this and see where the bitmask, but it seems I can only read pins with the hal component, not set them? How can

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Gene Heskett
On Monday 31 March 2014 15:40:56 Rod Fitzsimmons Frey did opine: I've looked at this and see where the bitmask, but it seems I can only read pins with the hal component, not set them? How can I turn on my power drawbar valve, trigger the blow valve, etc? I feel like I'm missing some

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread Rod Fitzsimmons Frey
Gene, I really appreciate the brain dump, and will go through it in detail. That said, I do have the 5i25 hooked to a 7i76. I moved from pncconf to vim about a week ago. I have all the pins mapped in my hal file and can turn things on and off on my machine (and see the spindle status pins) with

Re: [Emc-users] Remapping M6 - change_epilog not called.

2014-03-31 Thread andy pugh
On 31 March 2014 22:13, Rod Fitzsimmons Frey rodf...@gmail.com wrote: Everything's working great, I'm just getting hung up on communicating with them from the python remap code. Looks like the suggestion of mapping to M64 commands is the way to go, although it seems a bit unsatisfying. I was

Re: [Emc-users] What hardware to interface with these linear scales and rotary encoder?

2014-03-31 Thread Gregg Eshelman
On 3/31/2014 6:22 AM, andy pugh wrote: On 31 March 2014 07:02, Gregg Eshelman g_ala...@yahoo.com wrote: Specs I've found is they're 10 micron, 0.0004 resolution, square wave TTL output. That should work with any hardware, including the parallel port. Got a datasheet from BEI on the encoder.