I cant get my controller to run smooth with the emc software
pastulio: so you are driving CW/CCW and CLOCK, while pulling GATE low?
And i was woundering if anybody could help me or if someone had a working controller that i could use 2 test with
pastulio: EMC1 or 2
EMC 1 i think
From a BDI?
at first yes.. but that worked like crap... so i compiled an old Gentoo an got i working
but the controller don't do what i ask it to
Could you describe what it does?
did you patch realtime to the Gentoo ?
The Y Axis only run CCW and NOT CW at anytime
Alex: I did do that
i think it's my controller...
pastulio: I thought so, but wanted to make sure
do you have a signal generator available?
to test the drive?
try hooking it up to the CLK
I wondered about that with the way they handle the direction signal.
It has to be on in order to make it reverse.
rayh: pastulio says it doesn't work at any time...
what controller did you use Alex???
I did use Gecko's
but those are more expensive
and I used some I did myself
okay can you give me a link?
[00:12:23] <alex_joni> http://www.geckodrives.com/
but it really should work with your drive too
i got to thinking that i could be a problem in my INI but I cant find it
Do you use Uni or Bi polar steppers?
i just testet with a bipolar stepper and that was able to run CW... why???
you said you have a pulse generator
I was talking about a HW one
try hooking it up to the drive
to the CLK input
and run it at some HZ
and see what happens with the motor
2 sec got to move...
* alex_joni is back in half an hour
pastulio: that's what I would do
hook it up to signal generator
then manually connect the DIR pin to 0V and to 5V and see what happens
hallo when i connect dir to = the stepper stops and when i connect it to 5 the stepper does not change just run
got to go talk to you all later
paul_c: Does the dpkg problem mean we don't have a BDI-3xx?
rayh: Not quite
It means I need to hack some python to fix it
Oh! That again.
Is dpkg a problem for emc or for the whole install?
* alex_joni is back
the dpkg roblem is only an issue with a single package
Oh! That is a biggie for us. 2.6 or any kernel package.
gotta love irc - Have a possible solution from #debian
OK, something strange is going on here. I am using sim.ini with 3 axes. My Python program thinks that the A axis is incrementing very quickly, by more than a million (degrees?) per minute.
>>> status.poll(); status.actual_position
(2.0870000000000002, 1.538, -1.2010000000000001, 2446310.0, 0.0, 0.0)
>>> status.poll(); status.actual_position
(2.0870000000000002, 1.958, -1.2010000000000001, 2630922.0, 0.0, 0.0)
anybody know what might be going on? xemc only displays 3 axes, and I don't have tkemc or keystick available.
Looks like a random number from the A axis
it's an always-increasing integer, though
Possibly the PID loop picked up a false number from somewhere
jepler: If you've got yemc it will display six.
I believe that the guys at fest found that a small number in input and output scale will produce errors in combination with pid.
jepler: Can I impose on you for some python scripting help ?
hm, I had an [AXIS_3] section in my sim.ini. after I removed it, the problem seems to be gone.
Simple duffer's level question: How do I create, open, and write a string to a file ?
Well, the basic "open a file and write a string" is:
f = open("somefile", "w")
f.write("this is the contents\n")
presumably, if the file doesn't exist, it will be created ?
right. The second arg to open is just like in C's fopen()
"w" truncates the file if it exists, otherwise it creates it, I think.
The normal way to "make strings" in Python is with %-substitution, which is similar to C's printf()-family of functions:
plat = "linux_2_4_20"; frontend
f.write("DISPLAY = /usr/lib/emc/%s/bin/%s" % (plat, frontend))
er, frontend = "xemc" or something like that
of course, it doesn't work to specify a full path to DISPLAY, but it's not like I'm complaining or anything
f = open("%s/etc/foo/list.txt", % (path), "w")
No comma before the %
f = open("%s/etc/foo/list.txt" % path, "w")
% is just the regular 'modulo' operator, as in 'i = (i+1) % max_i'
or in this case f = open(path + "/etc/foo/list.txt", "w")
I hate phones....
* alex_joni agrees
I have a new model that's attached to the wall with wires and it works SO well compared to my old phone.
* paul_c goes to cut the phone line.
when is the next BDI release?
when I get it finished
I know that... I was curious what you think a probable timespan that would be
Target date was the end of the month....
maybe this year :-?
* alex_joni wonders if it would make sense to learn about deb...
basic deb installing/removal is fairly easy.
well I was wondering if I could be of some assistance
Most of it involves building & testing images
hmm... I could do testing...
is there a deb repository (or how that's called) from which I could apt-get ?
03Zathras 07BDI build system * 10Babylon Cluster/anaconda.py: File changed. New revision:1.3
No repository accessable from outside yet.
who is Zathras?
"Zathras warned Zathras, but Zathras never listened to Zathras. Zathras was quiet one in family. SO! What can Zathras be doing for you?"
Zathras tends to the great machine on Epsilon
on Epsilon III
alex_joni been using google.
yeah.. I came up with: http://lists.cs.columbia.edu/pipermail/b5jms/1997-July/002762.html
(after a while...)
03Zathras 07BDI build system * 10Babylon Cluster/anaconda.py: File changed. New revision:1.4
* alex_joni goes home
Ooo... A new face
(afternoon here :)
In the USA ?
I figured I should try out this IRC thing, before I really have any important questions or answers
Yes - Vermont.
Actually, I'm not sure if I ever got added to the EMC developers group - I suppose that would be a good idea (I'm swpadnos on SourceForge)
not listed as a developer
Nope - I just checked as well.
What areas interest you?
New drivers and optimization. Also possibly some network interface related stuff. Also, I would like to have a pendant on my machine, which will likely be a USB game controller of some kind, so I'd write drivers for input devices.
I'm pretty good at bugfixing as well, but it's often not as interesting :)
SWPadnos: what kind of machine do you have?
A Bridgeport series 1
you're currently using emc?
well - "Currently" is a bit premature :) I'm still retrofitting the machine, and I will be using EMC to control it.
I hope so
what do you want to be able to do from a USB device?
Well - manual jog, spindle control (possibly spindle speed if I get creative with a spare motor), pause, resume, etc.
You do C then ?
Yes - big time :)
Is there any provision for starting more user programs than the "DISPLAY" app?
In fact, I've been writing C and assembly code for embedded systems and Linux based test systems for the past 10 years
in the xxx.run file, I mean
Good question - I can't answer that (yet), since I haven't taken a thorough look through the EMC code.
Only one user interface per foo.run session
If you want to do custom hardware instead of a joypad, it should be possible to hook a 4x4 scan matrix to a FT232BM-based chip in bit-bang mode
It may be possible to do the USB control with a simple X keyboard input driver. THe EMC front end would already have input focus, and many USB devices look like keyboards.
that's true too
SWPadnos: check https://sourceforge.net/project/memberlist.php?group_id=6744
I have a Belkin Nostromo n52 that just cries out to be a machine controller. :)
Excellent - thanks!
that's quite the device
heh - yup
Oh - the other thing that could be both interesting and useful would be to change the G-code parser so that restarting midway through a file would be faster - not rescanning from the beginning.
Built to conquer your enemy, the Nostromo SpeedPad n52 ...
I also thought it would be fun to use a force feedback joystick of some sort, to provide a "real" feel. (though that's pie in the sky right now)
you could start by just making a rumble pack fire when you break a tool
jepler: when the spindle speed suddenly goes up?
heh heh :) fire phasers three times :)
when the load on the table servos goes down :)
so can someone tell me what the meaning of the different message types is? NML_TEXT / NML_DISPLAY / NML_ERROR ?
SWPadnos: We would encourage new code to be released under GPL in the emc2 tree, and reserve emc(1) for bug fixes.
GPL al lthe way
in which case, you do want to work in emc2
jepler: NML_TEXT & NML_ERROR are different message paths
do they have some relationship between the info / warning / error icon in a GUI message window, for instance?
do they relat to severity ?
I'd need to double check that....
but error messages are passed via NML_MESSAGE
and are queued
the other channels are not.
the message "command (EMC_AXIS_JOG) cannot be executed until the machine is out of E-stop and turned on" comes as an OPERATOR_ERROR as far as I can tell
that's the message I'm most familiar with
is OPERATOR_ERROR derived from NML_ERROR ?
I'd have to check
emc.hh:class EMC_OPERATOR_ERROR : public RCS_CMD_MSG
and RCS_CMD_MSG ?
OK, I just read the comments above EMC_OPERATOR_xxx and it's a bit clearer to me
* paul_c wished he had his source code notes up.
EMC_OPERATOR_TEXT is informational, and EMC_OPERATOR_DISPLAY says it is a "URL or filename of a document to display"
Can't remember if I made any notes in the emc2_source_notes about the NML classes...
why when I hit ESC does it sometimes move to some location instead of stopping?
* asdfqwega would like to know, too
I've had it do that in some .ngc programs I wrote
this time, I *think* it moved to the last place it had a canned cycle!
G82 F4.0 R0.040000 Z-0.006000 P0.03 X-1.200000 Y1.200000
it moved to -1.2 1.2 .04
worse, it moves there in a straight line, not going up to the safety height first
I think that I had something similar
this has cost me a tool
let me see if I can reproduce it in a short program
Are you using M02 or M30 to end the program?
That's something else I was doing at the time...I only use M02, now
I can't make it happen...
nope, I can't make it happen with a simple program, but when I run a complex one it does it often
hey, hey, it happens to me
running sim.run, I hit escape very shortly after I started running my program. It went to some z height and an exact x,y specified later in the program
but a different z
the ngc program is http://unpy.net/cgi-bin/viewcvs.cgi/*checkout*/rs274py/examples/elm320.ngc?rev=1.1
it hasn't happened on any of a bunch of the programs in the emc source tree I tried
but I don't see canned cycles in any of 'em
03Zathras 07BDI build system * 10Babylon Cluster/comps.xml: File changed. New revision:1.7
03Zathras 07BDI build system * 10Babylon Cluster/comps.xml: File changed. New revision:1.8
03Zathras 07BDI build system * 10Babylon Cluster/anaconda.py: File changed. New revision:1.5
* paul_c had a python bug....... and fixed it.
yay, I got my software to run on bdi. boo, it was a lot of work.
I just found a National Instruments PCI-DIO-32HS among some old electronics...
Would anyone know if I could use it with linux and/or EMC?
I tryed what you said, but that did some realy strange thinks
* alex_joni is back
seems that pastulio is gone again...
you said you had some strange problems?
what kind of problems?
paul_c: how are things going?
I connected the signal generator but the stepper stil only runs on way no matter what i do
does any of you speak danish cause that would make alot easyer
not really... german?
did you set the signal generator at a low rate? it may not run on high speed without accel...
I speak German but i can't write it
Sounds like a fault with the Dir input
so no matter what you do it runs in the same direction?
the L297 has different ways to operate
what mode did you select? (using jumpers JP1 from Steppermotordriver.pdf)
I did both... but i just found out that with a bi-polar stepper the problem is not there
got 2 go talk to you later
bi-polar could be the problem
the drive needs to output inverse voltages to drive it in reverse
but the L297 should be able to do that...
I think he means it *did* work (go either direction) with bi-polar, *did not* work with unipolar (go only one direction)
Whilst I'm willing to spend time diagnosing emc related problems
hardware is outside my remit
I got my software running under bdi46 last night
I had to install these packages to build and run: python-opengl python-tk python-dev xlibmesa-dev freeglut-dev
I think that to run it would be only python-opengl python-tk freeglut
Added to the list.
* paul_c needs help with these package lists.