what is the maximum cocurrent connections I can get out of CIFS ? from my EMC machine to my win servers? and vice versa?
I think you are in the wrong EMC place
is somebody there who is familar with the axis python code ?
maximilian_h: sure there is
the real question would be if they are around ;P
got another question
but it's always best to just ask what you want to do, and you'll get an answer eventually
well around Timisoara, maybe ?
I'd look at the Machine menu touch-off code, plus the places where the HAL pins aer updated
and mix the two
let me load the the file in emacs, one moment please
oh - I don't know the code, I'm only thinking of where some code already exists to get a valid offset from the current position, plus a place where data is output to HAL
was there a question?
* alex_joni feels like he missed something
i added a function to the interpreter
heh - last night
i wanted to use that function to set my offset (which we talked about last week)
and the rs274x does not talk to hal
but axis does
and the interface to axis in gcodemodule.cc is not that hard to add to
so i'd like to put some code into axis to set the hal param Xoffset and Yoffset
but axis.py is big and i don't yet understand its structure
so i wanted to ask if somebody could point me to the right locations
might be easier to hack halui
it's also a user interface for emc2, but only using HAL pins
advantage: simpler code to understand
can i set the offsets in hal from halui by using gocde ? E.g. i added my own G54.1 to set the Xoffset to -100 and the Yoffset to 2. I took the values of -100 from the interpreter .var file
you'd need to add them to the motion controller if you want to do it in Gcode, and that's probably the best way anyway
otherwise the offsets and the Gcode may mot be synchronized
the interpreter is usually far ahead of the motion controller
there will be no other motion when i set my offsets
so i don't need the motion controller
hmm.. otoh offsets don't reach the motion controller
yes you do
you may program the machine to move a lot, then stop, then do the offset thing
but the Gcode for the offset setting will be interpreted long before the motion has actually stopped
i applied the offsets directly in hal with the comp module offset like miges_work show me to
I have created a hal pin that get True when the offset has been applied and the machine has reached the position i want it to have
maximilian_h: maybe what you really want is set some analog values
you can use Mxx to output the values to hal
say M101 P100.0 Q50.75
then have M101 do: halcmd setp foo.pin1 $1
yes, i have set them like that this weekend
halcmd setp foo.pin2 $2
using a custom M1xx command
and now i'd like to use a custom gcode. Because it will not be me who will operate the machine and the old controller used G54, G55, etc for this
it would be easiest then to change the interp
when it gets to G54,G55 to call the appropriate custom M1xx command
i have already added a function to the interpreter to process my G54.1 G55.1 G56.1 etc. But the interpreter has no hal connection
[12:18:15] <alex_joni> http://git.linuxcnc.org/gitweb?p=emc2.git;a=blob;f=src/emc/rs274ngc/interp_convert.cc;h=75d4ac261306ae09bfef353f7d7b5bd84e3c8959;hb=HEAD#l2801
maximilian_h: right, and adding it will be a LOT of pain
just change your G54.1, G55.1 implementation to call USER_DEFINED_FUNCTION[index-..]
what is USER_DEFINED_FUNCTION ?
the call to M1xx
the capital letters are calls from canon
that's another layer you would have to change
it works like this: interp->canon->task queue->task->motion queue->motion controller
yes, and i wanted to avoid going the way interp->canon->task queue->task->motion queue->motion controller
so you just call the right USER_DEFINED_FUNCTION and you're done
because the application of my offsets is never together with any other motion, your comment about it being some analog value in hal is right
good i'll try coding it with USER_DEFINED_FUNCTION
that way you can still use M1xx calls
for troubleshooting or such
which is not bad for testing
another question, unrelated
well.. if you have the curiosity, I can tell you a bit about the long path, but I don't think it's usefull
are there any ubuntu .deb build scripts ?
just run debuild in the top emc2 dir, and you'll get a deb package
the scripts for building packages are in emc2/debian/
you probably want to use 'dch' first to change the version number, and add some comments with your changes
yes, i spend 1 hour using the stock version wondering why my changes did not work, kind of silly
but probably not a good idea to have a different version accessible from the menu
say you run dch, and call your version emc2-2.3.9-maxi
when you install it, it will replace the installed emc2
i can see debuild, is this a separate package that i should install with apt ?
with "top emc2 dir" you mean the extracted tar ball ?
then i'll try that now
thanks again to you Alex
there might be other packages you'll need, but I'm sure you'll sort it out :P
and if not.. we're around
and to you too SWPadnos
cradek_ is now known as cradek
tomp is now known as tom3p
What if I need turning then facing of the shaft. Do I need to manually change the tool for facing, edit the .tbl file and add offsets before I start facing? I mean those simple machines of a low-range price.
turning and facing are easy to do with the same tool.
cradek: Ok, then turning, facing, back-facing?
the very common triangle inserts are fine for that
doing back facing probably needs a tool change
cradek: oh... I only can imagine such a tool, I haven't seen them yet.
cradek: after the tool change, shoulfd I close the EMC2 program and then run it again to re-read this .tbl file?
no, you put both tools in the tool table. that's the whole point of the tool table.
cradek: I mean those bolted tables for tools. Each time you change one tool, all tools can be unintentionally moved.
if you can not remove and reinstall a tool in the same place, the tool table is not very useful. you can just touch off the tool when you mount it.
(Or techonlogies have been developed a bit...)
What does the "touch off" routines accomplish?
hey guys, if i have my accelleration set too low, am i more likely to get following errors?
less I would have thought
what is your setup?
compaq p3 1.4ghz server with 640mb of ram, mesa 5i20 i/o board, mesa 7i42 breakout board, leadshine m880a stepper drivers, and superior electric nema 43 1350oz/in motors on a shizuoka an-s mill
what version of emc?
Nah, your extortion setup.... EMC2 == Extorting Money from Children Too
however i am trying to figure out if my firmware is updated correctly
for the 5i20
jymm: lol, you're the one, dude!
This thing is driving me nuts
when do you get the following error - when you try to move the axis?
do you have your hal and ini files posted some where? like pastebin.ca?
lemme see if i can find them
are they based on the hm2-stepper sample config files?
jepler: was the firmware for mesa a different package - or if he updates to the latest emc - will he get the latest firmware?
skunkworks: it is a separate package, but the update manager should do both unless you uncheck one
i it's http://pastebin.com/m334233de
i have messed with the ferror since then, but it was giving me errors even with it at 1.0 an .01
-setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.maxaccel [AXIS_0]STEPGEN_MAXACCEL
+setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.maxaccel 0
find each "maxaccel" line in your hal file and change the third word to 0
this change was made in the sample configs for version 2.3.2 but can't be automatically made in your configuration file
there should be one maxaccel line for each axis your machine has
ok thanks, i was wondering if i should change that or not
does it matter how man spaces are between maxaccel and the 0?
at least one space
hmm, but I think this is not the full solution to your problem
your MAX_VELOCITY is set to 10, and your SCALE is 8000 or 4000
so you need to have steps at a rate of 80kHz for the faster axis
opps, that has been changed since the pastebin
but you've specified STEPLEN and STEPSPACE as 40000..
crap thats older than i thought, lemme post up a newer one
that means you can take one step per 80000ns, which is only 12.5kHz
oh, did you already fix the problem I'm talking about now?
[16:52:24] <dan1mal> http://pastebin.com/d425b98cc
there's my current ini
the hal is the same as what i had posted earlier though
yeah, that's fine now. You could do step rates up to about 250kHz and you're asking for 16kHz.
hmm i got an error when i added the zeros
hm2-stepper.hal:92: setp requires 2 arguments, 3 given 19087
well that is really special
what text editor did you use?
and it really says that? "3 given 19087"?
but there's nothing on the line after "0"?
oh, I think I miscommunicated
setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.maxaccel 0
you want the line to look like this, the mention of [AXIS_0]STEPGEN_MAXACCEL is what you're removing/changing
it sounds like maybe you put setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.maxaccel 0 [AXIS_0]STEPGEN_MAXACCEL
which isn't right, and could cause the error you reported (except I dunno where "19087" came from..)
bbl, it's lunchtime here
cool, thanks for the help!
works much better now
i owe ya one
no following errors
one? try more like a case
haha yes, a keg
Nah, that'll just put too much hair on jepler's chest and face.
na, with the amount of beer i drink, i thnk i proved that theory wrong
man i cant believe how well this thing works now.
night and day
it's midnight here :)
it's 10:13am here
looks like 125ipm is all my motors can handle
they start stalling over that
.200" per rev
still way better than it was\
depends on friction
ea, the x axis is deffinately a bit touchier
more weight an drag
dont run too close to the limit
yea, i'm going to play with it a bit
try slowing down the accel
at least i'm not getting the following errors anymore
hey guys quick question, so if my maxvel is set at 3.0 (180ipm), and i jog at 120ipm, i dont get any following errors, but if i put the maxvel at 1.834 (120ipm), i keep getting following errors. What am i missing here?
I cant run my motors over 120ipm or they stall
120IPM is 2.0, not 1.834
sorr, your right
so what was 1.834?
i mean 110ipm
Why do they stall, anyway, why don't they default to their max vel?
"keep getting" when you do what?
i dont know, but they lock up and humm, but i dont get a following error
when i jog
in manual mode
dan1mal, you would have to post your hal and ini files, it sounds like you still have a configuration problem, and are probably at the physical limit for your motors
dan1mal: do they make a sorta "lock up sound" that tapers off?
yea, i think i'm deffinately at the limit for the motors, which i'm trying to back off, but when i lower the maxvel, then i get following errors
you need to post your hal and ini files, and tell us which line numbers (in those files) you are changing when you make changes
they stop deaad, and it makes a constant slightly higher pitched sound then when theyre moving
ok give me a sec
dan1mal: contonously? or for a moment?
[19:23:09] <jymm> http://codepad.org
when it locks up, it stays locked untill the computer thinks its in position
[19:26:25] <dan1mal> http://pastebin.ca/1532882
ive been messing with the maxvel and maxaccel
i had it working great earlier
until i slowed down the maxvel
then it started giving me errors again
You DID keep backup copies of the file, right =)
blah.ini1, blah.ini2, etc
hint hint nudge nudge
i do have a copy saved but i dont save after every change because i remember what it was... i only changed one thing
well, 3, but all 3 axises are the same #
i can go back to where i had it when it worked great earlier, but i'm just curious why it actually runs worse with a slower maxvel
The G10 L1 routine reloads the .tbl file after it is being read from the HDD, right?
Just a suggestion is all. revision control is da bomb
yea i hear ya
*It definitely helps, thanks dude."
If you're sorta lazy, gDocs has revision control too, and there is a FUSE to it as well.
hmm, interesting, thanks
dan1mal, you need to determine accel and vel limits separately
also serves as a nice offsite backup too
you may need to set the stepgen max velocity to a number higher than the traj limit, which you can do by adding an ini item (sometimes called STEPGEN_MAXVEL) and changing the HAL file to use that instead of MAX_VELOCITY
if you set them the same, then the stepgen can never "catch up" to the trajectory planner on full speed moves
that makes sense
setting stepgen max accel to 0 basically disables stepgen acceleration limits, which is fine (since the commands are already accel limited by the trajectory planner)
SWPadnos, when i changed it to zero, i stopped getting following errors until i slowed down the max velocity
SWPadnos: How should be the accel. value calculated, anyway?
using the motor's capabilities, and gear's (or pulley's) rations?
if you can find all the relevant specifications and physical properties, then you could try to model a machine that way
otherwise, with steppers you just use the torwue and gear ratios, and divide by some number
which I don't know
set the accel low enough that the motors don't stall
how don't you know it? :0
but not much lower :-)
or just not to use it, setting it as 0, right?
I bet it's different for every machine / designer combination
SWPadnos: but what if I have no info and only know the motors, and calculayed the ratio
it's likely that you would still have to experiment
hmm so i set the traj max vel to 1.6666 and the maxvels to 1.834, but it's giving me a joint error still
uh... it's wise
it runs fine at 120imp, as long as it isnt 100% of the max velocit
dan1mal: why not 1.2 as maximal velocity? There're two places at the .ini file for this value. I had a joint error in ~/configs/sim/axis.ini, using maxvel value for axes only, not changing the DEFAULT MAXVEL or something
dan1mal: it uses the default 1.2 value, see the beginnin of the .ini file
it actually works well at any below that multiplied by 1.2 velocity value.
1.2 in the traj?
not sure if i follow
line 44 of axis.ini "MAX_LINEAR_VELOCITY = 1.2" should exceed any of the lines 131, 140, 162, or 183 of the file
i have a 5i20.ini
this way, you will not have a joint error. I have that error using EMC2 in a simulator mode. Test files in a simulator mode. Simply copy and rename the axis.ini file.
dan1mal: i didn't have it...
SWPadnos: Is it true, "line 44 of axis.ini "MAX_LINEAR_VELOCITY = 1.2" should exceed any of the lines 131, 140, 162, or 183 of the file"
SWPadnos: well, almost that
the TRAJ section limits overall speed, which is the vector sum of the axes used for a particular move
so if all the axes can move at the same speed, the overall limit is sqrt(3) times that
overall = SQRT(v1**2+v2**2+v3**2)
a square root of the sum of squares
which is why it's sqrt(3) if they can all move at the same speed
(V_overall)**2 = v1**2+v2**2+v3**2
and line 44? Should it exceed those of eaCH AXIS?
dan1mal: any advance yet?
Line 44 of axis.ini is in the "# Sections for display options", it do what?
i was reading a little... so would it make sense to set my max_velocity faster in the ini file for each axis so it actually runs well, then put in a maxvel parameter in the hal?
i think SWPadnos mentioned this
is it kind of a hack way of fixing it, or is it kosher?
dan1mal: I think .ini files are more settings-friendly, and should be edited before .hal-files
you can also add another value to each AXIS_n section in the ini, and use that instead of MAX_VELOCITY
MAX_VELOCITYis used by the trajectory planner
SWPadnos: and # Sections for display options, does it influence anything at all?
add STEPGEN_MAX_VEL to each section, and change the lines in the
ok, well each axis has a max-velocity #
... HAL file to use that instead
lines 93, 128, and 163
(in the pastebin)
SWPadnos, how does stepgen_max_vel differ from the max_velocity line that is in each axis in the ini?
it goes like this: physical limit > stepgen limit > velocity limit
lines 345, 376, and 408
from the Bible ;)?
add another line
like 345 and a half
"... And as he told, "just work stupid machine!"
STEPGEN_MAXVEL = (something less than line 345)
[20:16:24] <skunkworks> http://www.cnczone.com/forums/showthread.php?t=81624
cool, but I can't get to the source
some yahoo thing
oh "CNC Toolkit is a CAM plugin/script for 3DS MAX,Design Max, GMAX and Autodesk VIZ."
I thought it was a standalone thing - I don't have any of those products
heh - sounds like maybe it could be incorperated into heekscad/cam maybe
ugh i gotta go to lunch with a customer, ill be back in a while
adios, thanks for the help guys
cradek: you can download GMAX, freebie ( dunno if i had to join the yahoo grop or not )
I feel soiled if I log into yahoo
archivist: Yeah, it's not like what it used to be
I think gmax is the wrong flavor of os for cradek :)
tomp is now known as tom3p
I thought I remember gmax being a windows only program. Am I wrong?
You said OS, I've never heard of gmax
oh. - I guess I wasn't that clear. ;)
I still have no cluea what 'gmax' is
[21:44:01] <skunkworks> http://en.wikipedia.org/wiki/Gmax
I assume it's the software that is the first hit when you google 'gmax', but I know nothing about it
Eh, ppl are usign Blender for 3D stuff as it's open and does gl
yes closed src, windows only, and has a 5 axis cad output when used with CNCtoolkit. so its diff from Blender. http://www.turbosquid.com/gmax
yiou have to register and accept an non GPL license too. its different.