i like this stepconf feature,needed an invert command,built another config,pulled the invert command from the hal and put it in mine
anyone using the enable output from the mesa 5i20?
since it is active high, it's going to be a pita to use it to drive a relay
hey... how do I edit the wiki again?
[02:49:43] <SWPadnos> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?BasicSteps
The "updateing to 2.2" steps did not work for me... I had to use sudo to get gpg to work
it says "sudo apt-key add"
or some such
I hat to run sudo to get GPG to work
[02:53:35] <Ziegler> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?UpdatingTo2.2
you shouldn't need to do that
doesnt seem right to me either... but I had to on two different systems
I don't know what would cause you to need to do that
maybe you used sudo once, so now your key file(s) are owned by root??
had my scratching my head for about 45 minutes... and then I tried it just for the hell of it, and it finally worke
I dunno... should we diff it back then?
I don't know any other effects from doing that
like making you use sudo all the time ;)
If you all want me to put it back... I have no problem
I cant think what I would have done that made two different systems act the sam
dunno. like I said, I don't know enough to know if that's bad in some way
it's only my uninformed suspicion that you may have done something in the past to make some file gpg needs be owned by rot
(fresh ubuntu install)
on one system
well, I did say I'm uninformed ;)
Before I changed the wiki, I looked around (ie... searched google for a "sudo gpg")
and it turned up quite a few "examples"
gEDA stuff more thc http://imagebin.org/11680
new axis component http://imagebin.org/11681
new motion component http://imagebin.org/11682
gEDA stuff src for hal-motion-01.sym http://pastebin.com/dd95b51
src for hal-axis-01.sym http://pastebin.com/d3ec7bb30
src for sum2 http://pastebin.com/d5b58dd41
[04:45:38] <SkullWorks-PGAB> http://www.linuxcnc.org/content/view/11/10/lang,en/
- is kinda pooched up - seems none of the sections open to any content, only a title.
hey does gui graphical feedback round all lines to the nearest .01?
are you concerned that the preview plot and backplot don't exactly match?
oh, is this a mm machine or inch?
cuz something looks evenly spaced it should be half spaced
i cant just check the gcode cuz its all variables
corners or straight lines
its a depth thing
Jymmm, not too busy, but about to go to sleep
ill find out soon
it looks like its gonna go .005 too deep
ok. I was going to suggest that it's sampling rate, but that may not be it
is that view commanded coordinate just a servos thing?
it doesnt seem to do anything on my stepper machine
cyz that could work at the last minute to make sure it doesnt plunge to deep
i dunno anyway to check besides just letting it cut
well, turn off stepper driver, and then re-reference, but thats drama
ha wait fuck that, how will the program know the variable state after i restart it
cnc is hard
variables are probably more persistent than you might like
they may actually be stored between runs of EMC
if you add #6329 to the var file, and then use #6329 in your code, it will be saved across runs
fuckit its 5mils
lerman was talking about adding named var support to the var file as well, but I'm not sure if it's there yet
i can redesign the part, and really i dont need to
so ill find out =D
SkullWorks-PGAB: works ok here.. can you be more specific about what's wrong?
okay so it turns out i just swapped a pair of variables in a call
teh gcodes are fix0red now
Alex - the site appears to be working for me now, it just hat if you use any of the "Home About Download Documentation News Links Contact Admin" links the content only begins to be displayed below the Google site search box which is off the bottom of my screen. ( so if you don't scroll it appears nothing happened.)( before nothing did happen)
I choose to blame IE...
SkullWorks-PGAB: I think it's an IE bug not displaying the div
(if you have a too narrow browser window)
And the global revolt among ISPs to spoof torrent packet traffic, therefore clogging up the rest of the net for legitimate users.
if u say :P
yeah - over here the ISP's have started being real pricks in the last week, if they think you using torrents they keep sending your outbound packets back to you, kinda like a mini flood/DOS attack ( except the packets are all replicated data of packets you just sent.
has not affected me - I'm not a big torrent user, but I'm hearing lots of grumbles.
jepler: good morning
jepler: I know that.. I have no idea how to fix it though
jepler: your message to the list got cut off?
if i generate a netlist in gEDA will it be useful? I think it can become the 'net signalname comp-pin ... comp-pin' strings used by Hal.
on my site, to placate IE, I had to use a table for the three main columns
tomp: seems possible you could transform it into a series of halcmd 'net' commands..
jepler: you latest message to the emc-users list
alex_joni: this one? Subject: Re: [Emc-users] EMC 2.2.1 and G3
it looks fine to me
[14:11:57] <cradek> http://timeguy.com/cradek-files/emc/arcs.png
except for the advertising, of course
jepler: yeah, that one
it starts with "that it can be fixed in a future release."
no it doesn't
it does here
[14:13:41] <alex_joni> http://pastebin.ca/770663
[14:13:46] <jepler> http://pastebin.ca/770664
* alex_joni waits for the daily dispatch email
yeah, saw that
* cradek gently blames alex's setup
[14:41:53] <cradek> http://www.google.com/search?hl=en&client=firefox&rls=org.mozilla%3Aen-US%3Aunofficial&hs=NPa&q=%22If+you+can+trim+it+down+to+just+a+few+lines+of+g-code%22&btnG=Search
interesting. I wonder how pastebin gets indexed so fast.
and I wonder why it only indexed the one submitted by jeff
maybe because I set the expire time on my pastebin?
I still don't understand what happend to jeff's first line
(on my local setup)
I see you have a virus scanner that manipulates your mail...
it's definitely hard to guess what did it, you have no real information to go on
I changed the settings of the AV scanner
it now shouldn't change anything in the email, just scan them
tomp: do you do that gEDA stuff you posted last night?
does emc need PWM spindle control to do ridgid taping with a encoder? or can it be done with encoder only?
alSMT: you can do it with encoder only, if you can somehow command the forward/reverse moves
I have magnetic starters
like vfd and not magnetic starters?
I don't realy get what you mean by cammand fwd/rev moves wont the canned cycle do this?
can your machien drive the spindle in 2 directions?
then I guess it could work
but it depends on how fast your spindle stops
one problem I hade was reversing the spindle happens so fast that the interlock on the magnetic starter wouldn't drop out in time for the rev to take place
alSMT: the encoder needs an index pulse (z)
has anyone used the charge pump in 2.2.1 yet,mine doesnt appear to be working
do you have to use the data from the old charge pump?
[18:43:48] <jlmjvm> http://pastebin.ca/770956
what hardware is using the charge pump? pin 17
* skunkworks hasn't use it.
is the charge pump supposed to run in the base thread?
your line 41 command is wrong
you're making a new net with no inputs and the output hooked to parport 17
sorry was away for a min
this is what i got when i did stepconf
in that case, it appears you may have discovered a stepconf bug
you can fix it for now by choosing "include custom hal file" and adding a 'net' command to it to finish configuration of the charge pump pin
I think the command would be: net charge-pump <= charge-pump.out
lemmee try that
$ grep charge.pump *.hal
my-mill.hal:net estop-out charge-pump.enable <= iocontrol.0.user-enable-out
my-mill.hal:addf charge-pump base-thread
my-mill.hal:net charge-pump => parport.0.pin-01-out
hum, I just ran stepconf and got these lines
looks like I reproduced the problem :)(
so it wasnt just me for the first time ever,lol
thanks for spotting this; it'll be fixed in 2.2.2 when it's released
i added that line to my hal file but im still not getting a signal
how are you checking for the signal?
you could check it before with the old charge pump setup
can you pastebin the output of 'halcmd show sig charge-pump' while emc is running?
which function of your multimeter are you using to measure?
[19:33:29] <jlmjvm> http://pastebin.ca/771032
i could check voltage before with the old charge pump
was awile back,seems like it was a couple volts
sounds like it's good then
if you run that 'halcmd' several times in a row, or use halscope or halmeter, does charge-pump.out say TRUE sometimes?
always false,thats what i was just doing
is emc in "machine on" mode (F1 F2)
ok, what's this show? halcmd show sig estop-out
i noticed something yesterday,if i go to hal show configuration and try to watch any "signal" it gives an error
[19:39:30] <jlmjvm> http://pastebin.ca/771040
Can anyone help me please with classic ladder - I'm unable to save any changes I make to my clp file
jlmjvm: if your' in "machine on" mode, it's very surprising that iocontrol.0.user-enable-out is FALSE...
buckie555: use "save as" and select the clp
doesnt do it if you watch a pin
buckie555: are you using an old version of emc2? I think that is fixed
I do that and it creates a clp file but without any content
FYI I'm running 2.1.7
well its on,and doest change if i turn it off or on,but the gui is responding
buckie555: any errors on stderr/stdout?
I get something like this:
SAVE (null) -6
SAVE /users/cradek/emc2/configs/demo_sim_cl/demo_sim_cl.clp -3
and it seems to save
but, I'm running emc 2.2.1
buckie555: you're not running a sample config, are you?
yes I'm running demo_sim_cl why?
buckie555: I wasn't fully clear..
you're not running a sample config from /etc/emc2/sample-configs.. , are you?
because if you do, you can't write there..
No - a copy from my home dir
ok.. that's what I thought.. just wanted to make sure
I've checked the file permissions and everyone has write access
I can see the modified time of the file change but the content of the file doesn't change
I confirm it works for me in emc 2.2.1 (but I have to use "save as")
OK I've got a dev machine running kubuntu dapper and my VMC control machine running ubuntu dapper, both are running 2.1.7. If I bite the bullet and build the latest version from source can I just build on the dev platform and copy the binaries onto the other machine or will I need to build on the target machine as well. It would be a real pain as it's isolated from the network
if it's dapper, just take the emc2 deb (one file) and install it
Excuse my ignorance but if I build from the source does it create a deb file then?
yes, you can do that if you want
there are at least three ways to compile from source
I'm all ears
but, we build deb packages so we don't have to help everyone do it
lots of information on our wiki, let me find you the link, one sec
I appreciate that but aren't I right in thinking the latest debs available are for 2.1.7
no, 2.2.1 is released
see the front page of wiki.linuxcnc.org
sorry - my mistake. I must have missed that release. I'll upgrade asap
classicladder in 2.2 has a neat new feature: it shows the hal signal names instead of %Q9
I think it's worth the upgrade just for that!
that sounds very cool
actually it will show either, there's a checkbox to choose
would make more sense when learning
you still have to type %Q9 when you edit
but yes it's MUCH better for seeing what's happening in the system
thanks, I'll take a look. I've just spent the last few days trying to implement an automatic tool changer in hal alone. Everything was going well until I tried to use a signal for storing a state - essentially trying to make a simple state machine. Ended up with the this signal already has an output pin, etc, etc.
yeah there's sample-and-hold for that, I think, but ladder might be a better way
decided I'd better learn ladder after all
buckie555: there is a bit of ladder docs in 2.2
yeah it's called sample-hold.0
I'm not sure if 2.1 had that though
I've managed to get all the indexing working with regards to the correct tool drum position, which i thought was going to be the hard part
what kind of machining center is this?
we found that putting the old tool back where it came from was one of the hard parts
or keeping track of what's where, which is an even harder part
(not done yet :) )
and starting up in the right state
jepler:i have another box here that stays true, on or off
oh right, that's the impossible part
this is a cincinatti sabre 750 circa 1992
maybe tool number should just be a parameter
the tool drum sends a pulse each time it advances
or did we think of that and reject it?
eek. you need to keep track then, unless there's an index/home marker
buckie555: I hope there's some kind of index
When the machine starts up I use a routine to ensure that pocket no 1 is always the currently selected one and move on from there
then you could just spin it at startup until it indexes
there's no index unfortunately so all I do is make sure it's in the correct position during the machine homing cycle
jlmjvm: the halshow bug will also be fixed in the next release
how can you tell it's in the correct position?
jlmjvm: I am still puzzled about how your emc is getting to "MACHINE ON" but iocontrol.0.user-enable-out is FALSE ..
I'v added a pocket advance button to a pyvcp panel that selects the required pocket, therefore the correct pocket can be selected either from EMC or from a user request
and the other 1 stays true
jlmjvm: can you pastebin the .stepconf file?
ah, so the user "homes" the toolchanger, it's not automatic. that's a key point :)
jepler: he has external estop button
that enables ESTOP reset
in that case user-enable-out is useless
that's right but most of the time the machine will be switched off in the correct state, i.e. tool position 1
providing it starts in the right state it's just a case of keeping tracking of the pulses.
yep, and lots of noise filtering ;)
where is the .stepconf file located
jlmjvm: it should be in ~/emc2/configs
I used the counter component and a comp to ensure a wrap at 21 (it has 21 tools) then a sum to offset the count from 0-20 to 1-21
That part works perfectly
it's the sequencing of machine to z-align, drum to spindle, spindle orientation, etc that I was hoping to code in hal but it looks as though it's not possible
yeah. I had high hopes of adding a "modulo" function as part of modmath, but I never got around to it
how does it do spindle orient?
hmmm. maybe I did - can you index in both directions
[20:07:51] <jlmjvm> http://pastebin.ca/771091
At least not without a ridiculously complicated mux2 chain (I have 10 states throughout the tool change sequence)
yeah, for sequential stuff like that, ladder is definitely easier
The spindle orient is easy, the fanuc spindle drive has a PID position loop built in that aligns the spindle when you send an ioline high
that is too easy ;)
The tooldrum has got forward and reverse indexing but I've just implemented forward with wrapping so far to make it easy
buckie555: any pictures?
mind you if I'm going to use ladder I'll probably fix that
I've got some pictures of the machine with it's original control on but nothing with the EMC retrofit yet> I'm working on it all this week so will take some and post them later
sounds like an exciting project
I was planning on posting the config and photos on the wiki when complete
are you going to have rigid tapping?
it is exciting - yes the spindle has encoder feedback so I'm planning on implementing rigid tapping
It's been running perfectly under EMC control for the past month now albeit with manual toolchanges, I put off the auto toolchange work knowing it would be the hardest part - I wasn't wrong
what kind of drives does it have
Earlier on I put in some logic in the hal to ensure that the spindle cannot rotate when the powered drawbar is engaged, knowing that that would be a bad thing - don't ask me how I know that!
buckie555, take a look at the way the direction is chosen inthe demo_mazak config
there's a component that looks at the current position and the target position, and tells you when they match or which way to go to get there
It's all fanuc - a fanuc triple stack axis drive unit driving fanuc red cap brushless ac servos. the spindle drive is also fanuc driving a 15HP fanuc ac brushless spindle motor
and it does wraparound stuff too
what did you use to interface the drives?
Yes I did notice the component - I'll probably switch over to that at a later date but now that the tool drum is working I want to concentrate on getting the rest of it done
yep - makes sense. the nazak config has a lot of stuff you'll need, including using CL + updown to control the toolchanger
err - mazak
actually, it looks like updown can be used just as a modulo function
I'm using an m5i20 with 1 of their servo boards and 2 of their IO boards. The spindle is using the 4th axis of the servo board so I'm planning on using another 5i20 to control the 4th axis I've got in the works
although you already have the first 5i20, take a look at the 5i22 - it has 4 connectors but a 1.0 or 1.5Mgate FPGA
so the one card has about 2.5-3.5x the gates of two 5i20s combined
I'm over in the UK and got the machine with it's original siemens acramatic 850 (the standard not the sx!) for circa $4000
ive got a brushless ac machine center to do soon,the mesa seems to be the way to go
I may well do that as I have another retrofit, a 4 tonne cnc router ready for the off when I've finished this one
well, not very very soon, as we don't have a driver for the 5i22 yet, but if you're talking about the "next few months" timeframe, then maybe
It's a Wessel cnc pcb router but it weighs even more than the sabre - It's ridiculously over engineered.
no guarantees, this is a forward-looking statement, YMMV, etc. :)
sure - I understand
a 4 ton pcb router?
From what I've seen of EMC so far I can speak highly enough of it
err - thanks, or whatever ;)
Yes that machine is built around a huge iron casting with the rest of the structure large sections of steel
It's got 3 65,000 rpm air bearing water cooled spindles on it with automatic tool change
I bought it off a machine dealer over here that bought it about 5 years ago and never managed to shift it
In the end I talked him down to $600 for the lot
funny how 5 years of storage makes 4 tons affordable for the next guy
haha.. 5 years of storage is quite expensive
I was planning on cherry picking the goodies off it but when I started stripping it down I couldn't believe how substantial it was and thought I'd be better off turning it into a router
I couldn't hand over the money quick enough - it's got precision ground screws and linear scales all round, it's just funny
wow what a great deal
emc can revive a lot of nice old machinery.
It was - those two buys have really been great
It's funny before then I spent about $5000 building a aluminium framed cnc router from scratch. If I'd known then what I know now I would have just bought an old machine and retrofitted it
has anyone here ever used a breakout board from bob campbell designs
I persevered with Mach2/3 on that machine for ages then about 6 months ago switched over to EMC, never looked back and (touch wood) never crashed or tripped since
what kinda problems did you have with mach?
One of my axis drives kept tripping out - I'm pretty sure every now and then the pulse train would get interrupted and then catch up and exceed the drive's following limit
they were gecko s320 drives
heh - that's Windows realtime for you ...
also I got burnt a few times but several nasty bugs whereby a program would not resume quite in the right state and make a plunge move when it shouldn't or miss the next line, etc
lol,ive seen some crazy stuff before with mach
interesting - I didn't know there were any bugs in Mach
you'd never know just by reading the CCED and gecko lists
there were also a few things that were really frightening but I could never reproduce them
start running it for awhile
that's like when emc1 ran away.. for me
oh, I have my own experience where the entire system would get very very weird if I accidentally started Mach while Winamp was running
LOL - yes I think a lot of the people that praise it use it for hobby work. I started up a business that my father in law runs for me day to day and when you run it 10 hours a day 6 days a week you soon start noticing things
buckie555: that's a real common thing I think
anonimasu, how long ago with the ECM runaway? and what hardware?
if they get it working with the galil it has potential
err - EMC, not ECM - totally different ;)
SWPadnos: very long ago..
sure -1 year ago, 2, 5 ... ?
there's a bug report on sourceforge.. about at the same time
err about the same time
I can't fault art's dedication to the project - I just can't help but feel that windows not being realtime is never really wanting to play ball
yeah. he's done amazing things for that platform
but he's retiring :)
if you want to do realtime on windows you need a realtime thread..
like the commercial softplc's..
anonimasu: there are commercial products that do that
alex_joni: Yes, but for cnc work that's mandatory..
but that's a bit pricier than mach :D
arent they very exspensive
absolutely - The work he's done has pretty much helped an entire home/hobby cnc industry take flight
no.. they arent very expensive..
anonimasu: you think?
alex_joni: well, the developer licence might be pretty pricey..
the ones I saw were seldom < 2k$
oh.. that's not much )
try to sell that along with mach :D
I write real mission critical software in my day job for the likes of exxon mobil, trafficmaster, thales, etc. At thales working on mobile phon test sets we used to use venturecom rtx on windows
alex_joni: 2k eur for a developer licence..
probably a devel license is more
I think microsoft bought venturecom in the end - RTX seemed to work well for our needs at the time
I meant the individual license
alex_joni: they are much cheaper..
anonimasu: might be
but I'll still stick with emc, thank you very much :D
oh yeah, im remaking my bearing mounts..
I have a new idea..
when i saw my steppers run with encoders i was convinced
2 radial bearings and one axial thrust bearing that I can preload..
I dont think a duplex configuration of tapered roller bearings is optimal anymore..
thanks for all the help chaps - I've got to dash and carry on. I'll post some pics when the retrofits complete. Thanks once again.
alex_joni:if emc was hooked to a galil would it have to be realtime
emc is realtime
does anyone have any ideas about that bearing configuration?
let me rephrase,could a non rt linux gui drive a galil motion card
jlmjvm: probably so
the galil motion cards have their own motion planner and stuff..
atleast the ones I've looked at
reason i ask is i have a friend with several new mazak machine centers,they have xp with a 750 celeron and 256 ram,and i dont think its realtime
and these mills cost over 200k
jlmjvm: they have reltime motion cards I guess..
jlmjvm: or dedicated hardware for motion
some mills have 4 processors soley for motion
the robots I work with have a 1.4GHz cpu, 128-256 ram
and xp embedded + RT system
they do have dedicated hardware for the motion
* anonimasu nods
but there's a custom board for talking to servos (can)
and smart servos (that can do synched moves)
* anonimasu NODS
so nobody has any clue on my bearing ideas?=
jepler:you having any luck
jlmjvm: in the .stepconf file you sent me, none of the outputs were set to "charge pump" .. when I select a charge pump output in my own configuration it works to the extent that i can test it (no test equipment to actually look at the parport pin)
I did correct some of the other problems you saw for the next release, though (halshow etc)
ok,heres what i did,made a new config with stepconf that included the charge pump,put those lines in my hal file
is that why the stepconf doesnt show the charge pump output
yes, the .stepconf file won't include any changes you made to the .hal file after it was run, or any lines you put in your custom .hal file ..
we may be getting somewhere now,lemmee make a new 1
should my ext estop changes go in the custom.hal instead of the regular hal
or does that matter?
later on you'll want to re-run stepconf. If you do, it will overwrite the changes in joe.hal. It won't overwrite what you put in custom.hal.
hi -- anyone know anything about stepgen on 2.2.1 ??
Guest293: know what?
how to fix this error: emcTrajSetAxes failing: axes=3 axismask=f
any other errors there?
just several lines of the same thing
no other messages?
and bad return value from emcTrajSetAxes
AXES = 3
COORDINATES = X Y Z A
if you have a line like this, you'll get that error ^^
if you have 4 axes then you must set AXES = 4
thanks -- that looks like it is it :-)
new file,no change
on hal meter charge pump enable signal goes true and false with estop,but the charge pump output is toggling between true and false by itself
but if you estop the gui it goes false
sounds like the way it should :)
why cant i read any voltage on the pin
and shouldnt it stay true when on
the chargepump is a togle signal
it goes 0,1,0,1,0,1 etc
it doesnt output like the old charge pump?
what did the old one output?
seems like it was around 2 volts,i remember being able to check it with a meter
need a 15khz output
i checked dallurs configs but he still has the old style
15kHz output is 0,1,0,1,0,1 etc
jlmjvm: it's hard to say what your meter will say when there's a 15kHz square wave
you need a scope, or at least a logic probe, to see it
the charge-pump will give a square wave at a frequncy of BASE_PERIOD/2
(there's no facility to set the specific frequency)
seems like you could change it before
I don't think so
in stepconf, there's no facility to set the specific charge pump frequency
only if you create a different thread
it just toggles
and attach it there
there's freqgen (which may be a part of stepgen now) if you want a variable frequency output
im talking about 2.1
there is an example of what im talking about in the dallur configs
and im pretty sure you could change the output
no, he uses a 30000 BASE_PERIOD for te 15 KHz output frequency
actually, he's using siggen/freqgen, not charge_pump
and he's got a 30000 BASE_PERIOD :)
what device are you using, that the signal must be 15kHz?
the device I'm familar with (and saying "familiar" is a stretch, because all I've done is read the datasheet) is pdmx-121/pdmx-122 which requires "100Hz minimum" (no stated maximum frequency)
campbell breakout board
k,siggen/freqgen is waht i used to have,just like dallur
you can adapt those hal lines into your custom.hal file. In that case, you would specify the pin as "unused" in stepconf.
also when i add this line it doesnt work at all, net estop-ext => iocontrol.0.emc-enable-in
thats so my ext estop button works
#net estop-out <= iocontrol.0.user-enable-out
#net estop-out => iocontrol.0.emc-enable-in
net estop-ext => iocontrol.0.emc-enable-in
thats what i have
is it an error message, or just won't come out of estop?
thats what i have in my hal file
i commented out the original 2 lines and added the third so the ext estop would work
then the cp no longer works
but then you said that line "doesn't work at all" -- I was trying to clarify what the behavior was.
does it print an error message, or does it start up but not let you exit estop, or some other behavior?
no error,starts right up,but stays false with hal meter
does halcmd "show sig estop-ext" show that a parport pin is also connected to that signal?
estop-ext and pin 10 both go true and false with button in hal meter
but cp stays false
can you show sig for the charge-pump ?
jepler: isn't the charge-pump enabled from user-enable-out ?
jlmjvm: you did add this to your custom.hal, right?
+ print >>file, "net charge-pump <= charge-pump.out"
which signal or pin are you looking at in halscope?
21:20 < jepler> my-mill.hal:net estop-out charge-pump.enable <=
jepler: I think that's the issue..
but now we're back around to where we started
since he changes emc-enable-in from parport, the user-enable-out doesn't get properly set
instead of doing F1/F2, he only does external button, F2
print >>file, "net estop-out charge-pump.enable <= iocontrol.0.user-enable-out"
yeah, and that might be false
since he never pushed F1
so what pin should I be hooking to charge-pump.enable?
i changed it back and the charge pump enable,and output pins go true and false,but the signal for cp stays false
I think you did the right thing
jepler: people who split the estop-loopback can hook it to the right pin (in this case the parport pin)
so in jlmjvm's case is the right solution "unlinkp charge-pump.enable" "net estop-ext => charge-pump.enable" so that the charge pump enables based on the external estop button state?
put those 2 lines in custom hal?
never seen unlinkp yet
jepler: I think so
jlmjvm: unlinkp = unlink pin
jlmjvm: "unlinkp" disconnects charge-pump-enable from whatever it was connected to before, so that it can be connected to the new thing, the signal from the external estop button
alex_joni: why wouldn't anyone with an external estop signal want that?
cool,a new command
jepler: I think linking a parport pin to emc-enable-in is wrong
well.. it works, but it's an ungly hack
the right way to implement external estop is ladder unfortunately
and that's probably too much of a complication
we have a nice example of that
I didn't feel I could introduce ladder in stepconf and have a prayer of getting it right
jepler: I agree with you
thanks for the vote of confidence
didn't mean it like that
what I mean is that for advanced configs like ladder, you'll surely not fulfill everyones needs
I think a machine with external estop and chargepump is beyond the domain of stepconf (if only slightly)
the only thing I could think of, is write a component for external estop
I think we already have one iirc
yeah, and I have no idea what it does
right, because something in iocontrol makes a pulse, not a level
(I'd use ladder...)
yeah.. I know
and because users sometimes push external buttons which are momentary switches
that got the cp pins working in halmeter,but the cp signal in halmeter stays false
jlmjvm: not sure halmeter can see the cp signal
it's toggling quite fast
so you can see in halmeter that charge-pump.enable is becoming TRUE or FALSE according to the physical button, but you never see charge-pump.out toggling between TRUE and FALSE ?
(both tests done in halmeter)
alex_joni: I find that halmeter toggles between TRUE and FALSE on charge-pump.out, but slowly (e.g., a few times a second) not at 10kHz or whatever..
(not that you can see 10kHz on a CRT..)
LCD with 2usec gray-to-gray
jlmjvm: did you try the pin charge-pump.out ?
pins cp enable and cp out toggle with the estop button,signal cp stays false,halmeter for both
or the signal connected to it?
can you "halcmd show signal charge-pump" ?
in halmeter the PINS cp enable and cpout work with button,in halmeter SIGNAL the cp stays false
halcmd show sig charge-pump
<commandline>:0: Unknown 'show' type 'signal'
"sig" not "signal" (alex should have known better)
* alex_joni uses tab-complete a lot
Type Value Name (linked to)
bit FALSE charge-pump
jlmjvm: no wonder it stays false
it's not connected to charge-pump.out
right, that's the very first bug I fixed .. for now you have to work around it by adding the 'net' for it in your custom.hal file
net charge-pump <= charge-pump.out
now im getting 2.33 volts
on the pin
and the estop button stops it
and we only discovered how many bugs in stepconf along the way?
jlmjvm: wanna sign up as a beta tester?
you'll get the nicest things to test before anyoen else :P
i like stepconf,i think it has great potential
jlmjvm: I was partly kidding
oh but i wasnt,lol
jlmjvm: we still try to do our best to make it as bug free as possible
but sometimes we simply can't think of all scenarios possible
but beware when this stepconf stuff catches on there will be a lot of jlmjvms will be in here
you can be a beta tester, but you have to learn to compile the software yourself first
wow,that stopped me in my tracks,lol
I hope stepconf does help to dispel the notion that you have to be a rocket scientist to successfully configure emc
maybe it has to go through a few more releases first .. so be it
i think it has great potential
with great potential comes great voltage
besides the parts that didn't work right, are there some things that you think a lot of users will miss?
with low resistance comes great current!
with emc you can do so many things, but you can only fit a few of them into a "small" program like stepconf
(which still prompts for around 100 items, if I remember the count correctly)
for instance,i couldnt figure out the invert command for my spindle brake yesterday,so i did a stepconf and it gave me the command
jlmjvm, have you read the HAL tutorial in the documentation/
im sold on 2.2 already
* jepler just realized he's painted himself into a corner
ok, that's the place to start if you want to know how to configure EMC2
in the stepconf xml file, I wrote numbers (not names) for "pin usage" -- so I can't do something that "renumbers" the pins
stepconf is great, but it wouldn't help at all with the USC or a mesa card ...
SWPadnos: yeah I've been thinking about that
but it will help nubes and parport users greatly
but I don't have any solutions yet
for those, or for "non-standard" configs, there are just too many options to make a druid-like program to guide you through it
yeah, it's more or less halgui, but even easier to use ;)
i like the way its setup to enter the drive timings
heh -maybe the next step is to make a "pyconfigvcp" - something that driver writers can use to make config panels
back to the cp,is there any way to adjust the output
but I'm not volunteering
that would be cool
SWPadnos is the man for the job
you can enable it or disable it, that's the only adjustment
not for that job
jlmjvm: if you have to have a specific frequency, then stepconf will not do it.
the only thing I know about python is how it's spelled
jlmjvm: you would instead leave the output as "unused" in stepconf, and then add the lines to your .hal file to do the charge pump the same way you did it in 2.1
I think he had to change the BASE_PERIOD in 2.2 because of that RT deadline error
so the same as 2.1 wouldn't give the same frequency
k,will try this one first when the board gets in,if it doesnt work will go back to the old
what charge pump board are you getting?
im getting a breakout board from bob campbell designs
[22:49:53] <jlmjvm> http://www.campbelldesigns.com/breakout-board.php
some good stuff
used his combo board on a earlier machine,worked great since installed last year
I would like it.. if it wouldn't say "breakout board plus for Mach2 and Mach3"
he just hasnt had many emc people use it yet
dallur uses his boards
had a spindle come on last week when i powered machine on,said to myself,gotta get a charge pump on this 1
it's very unlikely that the circuit needs exactly 15.0000 KHz
plus gonna run the power enable contactor thru the estop button also
it's much more likely that there's some maximum time betwen pulses, and that's probably in the 5-10 KHz range
im crossing my fingers
or that mach outputs exactly 15kHz
the aord "about" is used several times in that paragraph
ok, it's used once at least
i bet it will work
you guys are just too good
good night all
see you Alex
ive only done 2 mills that had automatic spindle,1 got the campbell combo,usc in the other
guys im gonna get off here also,definately appreciate the help