#emc | Logs for 2009-08-31

Back
[01:07:46] <ntosme2> hey guys, I've been using EMC for a while but I'd really like to use EMC on my desktop, how feasable is an arm-based EMC install?
[01:08:25] <ntosme2> I would then just use X forwarding for control
[01:08:48] <ntosme2> has this been done?
[01:25:12] <fenn> x forwarding yes, arm no
[01:37:18] <KimK> Hi all. I'd like to send (copy?) the value of a ClassicLadder (CL) counter to a CL word value so I can send it out to a PyVCP display. The wiki has a little on CL, but I haven't seen anything on this. I think I'll be OK once I get it to the CL word, but how to get from the CL counter to the CL word?
[01:37:45] <cradek> use an assignment block, and just wire it straight across the ladder so it always runs
[01:38:44] <KimK> OK, I'll try it, BRB
[01:38:46] <cradek> so your assignment will be something like %QW0=%C0.V
[01:39:01] <cradek> %C0.V is the value of the counter C0
[01:39:11] <cradek> %QW0 is a CL s32 out
[01:39:55] <KimK> OK, will do. And as it happens, I am using C0, lol
[01:41:11] <cradek> KimK: http://timeguy.com/cradek-files/emc/assignment.png
[01:41:29] <cradek> I just happen to have exactly that in my ladder (for the same reason even)
[01:42:07] <ntosme2> is there any support in EMC for GPIO rather than parallel?
[01:42:33] <cradek> EMC2 supports many kinds of I/O hardware other than the parallel port
[01:42:52] <ntosme2> ah
[01:43:16] <cradek> ntosme2: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?EMC2_Supported_Hardware
[01:43:19] <ntosme2> cradek: that doesn't seem very evident from the wiki
[01:43:25] <cradek> ntosme2: ^^
[01:43:36] <ntosme2> thanks
[03:07:03] <KimK> cradek: still up?
[03:19:36] <KimK> cradek: Your advice worked, but I'm having trouble with the "net foo classicladder.0.s32out-10 => pyvcp.display" part, it says "...s32out-10 does not exist". BTW, in the wiki at http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?action=browse&diff=1&id=ClassicLadder in part "4. The realtime module exports HAL pins", there's a conflict: s32in.00 vs. s32out-00 . I'd fix it myself, but at this point...
[03:19:37] <KimK> ...I'm not sure which version is correct. I'll keep after it though. The assignment worked though, I can see the counter value in CL Vars.
[03:21:00] <KimK> you'll probably find this later, goodnight and thanks for your help. I'll be around for awhile yet.
[03:34:21] <tomp> tomp is now known as tom3p
[04:54:57] <cradek> KimK: don't you mean s32out-00 instead of s32out-10?
[04:55:27] <cradek> the default number of s32outs is 10, so they are numbered 00 to 09, so -10 will not exist unless you specify numS32out=11 or more
[04:57:47] <cradek> goodnight
[06:26:37] <Jymm> Greenlee hydraulic punch... http://www.harborfreight.com/cpi/ctaf/displayitem.taf?Itemnumber=96718
[07:03:30] <roh> hm. how could one 'delay execution of gcode' will a value is in a defined range?
[08:08:24] <micges_work> clip9: around:
[08:08:26] <micges_work> ?
[09:27:31] <piasdom> g'mornin all
[09:37:05] <Valen1> Valen1 is now known as Valen
[09:53:27] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[10:13:42] <Valen> Basic Flying Rules: Try to stay in the middle of the air. Do not go near the edges of it. The edges of the air can be recognized by the appearance of ground, buildings, sea, trees and interstellar space. It is much more difficult to fly there.
[10:22:46] <skunkworks> helicopters fly by beating the air into submission.
[10:22:58] <anonimasu> :]
[13:39:48] <Jymm> alex_joni: Thught you might like this... http://www.youritronics.com/witricity-makes-wireless-electricity-possible/
[13:46:47] <MarkusBec> MarkusBec is now known as MarkusBec_away
[15:09:20] <mikegg_> if I wrote some software in C/C++, how difficult would it be to 'connect' it to a HAL pin?
[15:09:49] <mikegg_> would it be easier to just add my code to EMC2 and re-compile
[15:09:53] <mikegg_> ?
[15:17:31] <BJT-Work> what are you wanting to do?
[15:19:43] <BJT-Work> mikegg_: http://www.linuxcnc.org/docview/html//gcode_main.html#sec:M100-to-M199:
[15:20:37] <mikegg_> I want to do some signal processing and then tell EMC2 that the tool has made contact with work...to detect height
[15:21:05] <cradek> sounds like you need to write a realtime hal component
[15:21:28] <BJT-Work> http://www.linuxcnc.org/docview/html//hal_comp.html
[15:22:45] <mikegg_> ah, excellent. I think you are right
[15:27:32] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[15:45:15] <KimK> cradek: Hi, thanks again for your help. I'm still battling the "...does not exist", but making progress. Yes, you were right, I meant s32out-0 (I spec'd 10 in and 10 out, now trying 5 in and 5 out). I can see the W5 counter changing in CL, and can see the s32out-00 existing but not changing in Hal Config. Any suggestions?
[15:45:57] <cradek> what's your assignment expression?
[15:47:19] <KimK> I think it's %W5=0.V
[15:47:40] <KimK> Oops, I hit some kind of Chatzilla color code?
[15:47:58] <cradek> ugh
[15:48:21] <KimK> Retry: I think it's % W5 = % C0.V
[15:48:31] <KimK> I added some spaces
[15:49:05] <cradek> if you're wanting to assign to classicladder.0.s32out-05, the expression is %QW5=%C0.V
[15:49:13] <cradek> note %QW5, not %W5
[15:49:16] <MarkusBec> MarkusBec is now known as MarkusBec_away
[15:49:31] <cradek> %W is an internal s32 value, just like %B is an internal bit value
[15:50:17] <KimK> Maybe it is, I'll go to the machine (10 ft away) and check
[15:54:03] <KimK> No, you're right again, 2 for 2. Thanks, I'll edit it and retry. I'll keep you posted. More in a bit.
[15:54:39] <cradek> yay
[15:55:04] <cradek> those % things are obscure and there's no summary of what they are
[15:56:07] <cradek> I find CL to be a very powerful part of HAL but also pretty darn hard to figure out how to use at first
[16:01:19] <skunkworks> cradek: how is jr? growing up>
[16:01:21] <skunkworks> ?
[16:01:41] <cradek> skunkworks: ballscrew problems...
[16:01:57] <cradek> other than that, everything is good
[16:08:52] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[16:10:05] <KimK> cradek: (Hi skunkworks) Yes, I'm confused by CL's "extra features" too, I was going to ask you where the float ins/outs fit into the scheme, but later, s32out-0 still does not exist. Back to Halconfig?
[16:14:25] <cradek> yes use halconfig or halcmd to see the exact names of the pins that exist
[16:14:39] <cradek> then you will notice that it's spelled s32out-00, not -0
[16:15:14] <cradek> I can't type anything right the first time so I'm constantly exploring with halcmd
[16:15:21] <cradek> like "halcmd show pin classicladder"
[16:16:03] <cradek> I'm not sure about floats - I think you can read/write the integer part of a float with CL. I'm not sure how that all works - I haven't needed it.
[16:16:08] <skunkworks> cradek: what kind of issue? no lube? or backlash?
[16:16:19] <cradek> skunkworks: crunchy
[16:16:40] <cradek> skunkworks: the balls are rough and beat-up (I took one of the nuts apart)
[16:16:52] <cradek> I will try to get to the other nut tonight - much harder
[16:17:34] <cradek> the nut has a ballscrew rebuilder's sticker on it
[16:17:41] <cradek> I think they screwed it up
[16:17:48] <cradek> none of the races are full
[16:18:10] <cradek> I'm not sure the big and small balls were alternating - I will watch carefully when I take the other nut apart
[16:21:48] <skunkworks> well - you are old hat to ballscrews now :)
[16:22:06] <cradek> yeah, I'm not scared of them
[16:22:17] <cradek> hope I can improve it
[16:26:10] <skunkworks> yeck
[17:02:45] <tomp> tomp is now known as tom3p
[17:06:52] <issy> #emc-devel
[17:09:03] <tom3p> i installed scite editor because it folds. but it wont print the folded version ( prints the whole file).
[17:09:09] <tom3p> i fold to reduce the visual clutter of code, to see the function explanations.
[17:09:10] <tom3p>  anyone know a folding editor that will print what you see?
[17:09:45] <kanzure> what else have you tried?
[17:12:33] <KimK> cradek: I'm not done yet, it appears. Now I have the reverse situation, lol. Now s32-00 exists (you're 3 for 3 on the -0/-00, still just =0 though), but now can't see %QW0 (or %W5) changing. (I replaced %W12 in "Vars" with %QW0, is that valid?) Any advice? How can I get back to seeing the counter(word) change? The counter itself is working OK in CL.
[17:35:39] <BJT-Work> :( snippets for gedit windows is not on the plugin list
[17:43:19] <KimK> cradek: OK, I guess it's working after all, in that I can see it in PyVCP. So I guess I don't have to see it in CL Vars. Thanks again for the help, I really appreciate it.
[18:11:14] <cradek> KimK: I think in Vars you can change one to %QW0 and then see it...?
[18:13:33] <cradek> I thought I had done that, anyway - can't really try it right now without a lot of ladderwriting
[18:32:09] <EbiDK> EbiDK is now known as EbiDK|AWAY
[18:37:52] <motioncontrol> good evening at all.a question about a component or fuction for control the normal funzionality of a encoder.in emc2 if i move a axis and the encoder count not return the axis is in following error, but if i not command a axis , but the encoder increment cout because the elettronic is fault emc2 have error or not? exist a component for control the funzionality the encoder? thanks
[18:40:44] <KimK> cradek: That's what I tried, I picked %W12 as I thought it unused/unneeded. But it (%QW0) stayed at 0. More next time, must close for now at this location. Much progress was made, thanks again for all your help. Bye for now.
[19:51:49] <clip9> micges: I saw you posted the bug on the tracker. Thanks.
[20:10:21] <micges> clip9: np
[20:34:09] <motioncontrol> good evening. i have a problem with example in hal manual for passthrough example. i have the problem when write halcmd loadusr passthrough . the error is passthrough", line 10
[20:34:09] <motioncontrol> SyntaxError: Non-ASCII character '\xe2' in file /home/francesco/Scrivania/emc2-2.3.0/scripts/passthrough on line 10, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
[20:34:09] <motioncontrol> . i read the info pep but i don't understand it.
[20:35:02] <motioncontrol> line 10 is : h[’out’] = h[’in’]
[20:35:30] <cradek> probably you got "smart" quotes instead of plain ascii quotes if you used copy/paste
[20:35:39] <cradek> just fix the quotes - change them to " or '
[20:38:29] <motioncontrol> cradek, ok thanks i have correct and fuction ok
[20:40:12] <motioncontrol> cradek, excuse for question.exist a component for control the correct fuction of encoder?
[20:40:29] <motioncontrol> or is incorporate in emc2
[20:45:15] <jepler> certain codes have dedicated encoder counting functionality (e.g., mesa cards with the hostmot2 driver), and emc has a component called "encoder" to treat any 2 or 3 general purpose input pins as a 2- or 3-channel encoder, as long as the pulse rate is low enough.
[20:50:15] <motioncontrol> jepler, ok for info. i have see on emc if i meccanical disconnect the encoder on axis, the emc have following error. but i don't prove the move the the encoder when i don't command move the axis.this because some time i have problem on elettronic encoder and the count increment automaticaly when encoder is meccanical stop.thanks for info
[20:53:05] <jepler> it sounds like you might be describing a physical/electrical problem, not a software problem. Improperly shielded or grounded encoder cables can give bogus counts.
[20:54:24] <motioncontrol> jepler, yes i thing the problem is the ground the encoder, tomorrow i ceck it.
[20:54:34] <cradek> you get following error whenever the commanded and feedback position are excessively different
[20:55:20] <cradek> emc cannot detect any error in your wiring other than with this test
[20:55:54] <jepler> cradek: if I understand motioncontrol correctly, he says that his encoder continues to increment even when mechanically stopped
[20:56:15] <cradek> ok
[20:56:38] <jepler> it's based on that understanding that I made my answer
[20:56:58] <cradek> sounds like that will make the axis move
[20:57:21] <cradek> my answer was just that you cannot fix it in software
[20:59:03] <motioncontrol> cradek, yes i thing the problem is hardware , because when the encoder is stop , the conut increase. excuse for my english.
[20:59:17] <cradek> I agree
[20:59:45] <motioncontrol> my question is curiosity for software implementation on emc2.
[21:01:10] <acemi> motioncontrol: I seen a similar problem. a vacuum motor cable which is very close to encoder cable, caused this
[21:01:33] <cradek> motioncontrol: emc2 can not detect this kind of problem
[21:01:40] <jepler> the software encoder implementation is src/hal/components/encoder.c and the hostmot2 fpga encoder implementation is src/hal/drivers/mesa-hostmot2/firmware/src/qcountersf.vhd
[21:03:31] <jepler> cradek: it would be interesting if emc tracked the number of impossible encoder state transitions, like 00 -> 11; this could give an indicator of inadequate count rate and/or severe input noise
[21:05:03] <motioncontrol> acemi, tomorrow i ceck the groud the encoder , but the question is for secure maschine implementation.in digital cnc when the encoder not fuction , have the safety integrated system for stop the axis immediately.on the analog system i thing the case is different.
[21:06:31] <jepler> bbl
[21:08:15] <motioncontrol> acemi, normaly on analog axis if i turn the encoder and the axis is enable, the axis move fast and stop when the position command is differeze tolleranze at feedback.on digital the axis not move, stop immediately
[21:09:52] <motioncontrol> jepler, the error in count like 00 -> 11 can is select?
[21:14:53] <motioncontrol> jepler, more interesting the code in fpga. if the count rate is no correct , the system stop axis?
[21:20:02] <motioncontrol> jepler, the eror in fpga is :ifcountermode = '0' and (
[21:20:03] <motioncontrol> (quada2 = '0' and quada1 = '1' and quadb2 = '0' and quadb1 = '1') or -- any time both a,b change at same time
[21:20:03] <motioncontrol> (quada2 = '1' and quada1 = '0' and quadb2 = '1' and quadb1 = '0') or -- indicates a quadrature count error
[21:20:03] <motioncontrol> (quada2 = '0' and quada1 = '1' and quadb2 = '1' and quadb1 = '0') or
[21:20:03] <motioncontrol> (quada2 = '1' and quada1 = '0' and quadb2 = '0' and quadb1 = '1')) then
[21:20:05] <motioncontrol> quaderror <= '1';
[21:20:07] <motioncontrol> end if; when quaderror <=1 emc2 stop the axis?
[21:21:38] <micges> motioncontrol: if you paste more that 3 lines, use www.pastebin.ca please
[21:22:08] <micges> an paste here link
[21:22:19] <motioncontrol> micges, excuse
[21:23:37] <ilya> motioncontrol: Use " / " to separate lines, if there are about five lines in total.
[21:23:55] <acemi> if quada1 != quada2 and quadb1 != quadb2 then
[21:24:39] <ilya> what is it?
[21:25:14] <ilya> What does equal to " != " in programming, by the way?
[21:25:19] <motioncontrol> ilya, yes the question is more interest and i don't have remember the pastebin.excuse
[21:25:43] <acemi> != means 'not equal'
[21:25:48] <Jymm> '!=' is 'not equal'
[21:26:02] <Jymm> '==' is 'equal'
[21:26:13] <motioncontrol> acemi, yes i thing it the error , but this error create in fpga generate the stop axis in emc2?
[21:26:21] <Jymm> '=' is 'assignment'
[21:28:47] <motioncontrol> acemi, on my maschine i have a hardware problem the axis move for fast for some time, because i have a problem on encoder electronic or ground of it.
[21:29:53] <ilya> OK, heh. Jymm I wanted to ask you if you have ever seen www.ocw.mit.edu--OcwWeb--web--courses--courses/index.htm to arrange that resume using /official names for courses for students/
[21:29:54] <motioncontrol> acemi, and i thing is necessary more small tollerance controll the axis is stop but enable
[21:30:13] <ilya> www.ocw.mit.edu/OcwWeb/web/courses/courses/index.htm
[21:31:00] <ilya> Their Open CourseWare is awesome. A.W.E.S.O.M.E.O.
[21:31:18] <acemi> I think it's better to solve the encoder problem than to try to catch the problem
[21:33:46] <motioncontrol> acemi, yes tomorrow i see it , but i thing for emc2: the fpga is fast and ceck the encoder , the fpga will send the encoder status pin and stop the axis first the tolleranze position command = feedback.
[21:38:55] <PCW> motioncontrol: you might set the quadrature filter to about twice your highest count rate
[21:38:56] <PCW> this can eliminate a lot of noise. This was discussed (by Leslie Newall sp? and I) on the
[21:38:58] <PCW> EMC users list a couple of months ago
[21:41:20] <motioncontrol> PCW, my curiosity is if the fpga count error stop the axis when true?
[21:42:30] <PCW> The quadrature error bit is currently unused by the driver
[21:43:33] <motioncontrol> PCW, ok in this case emc2 stop the axis when see the tolleranze upper the following error only?
[21:45:01] <PCW> Yes following error, so if you have noise making an encoder channel "creep" the following error should eventually occur
[21:47:40] <motioncontrol> PCW, ok thanks for answers. i thing is important for analog system use the fpga error for stop the axis for abnormal count rate.i have some time before a problem on haidenhain cnc 360 analog system, and when have the problem on encoder the system not move the axis for small time , but have the eoorr: the frequenzy encoder is abnormal.
[21:47:43] <PCW> The default HM2 maximum count rate is quite high, so lowering the encoder filter rate
[21:47:45] <PCW> will possibly fix the encoder noise problem
[21:49:53] <motioncontrol> PCW, now i have a problem on my mascine on encoder and when i enable axis the x axis move for small time
[21:50:40] <PCW> Are these differential interface encoders?
[21:50:49] <motioncontrol> PCW, tomorrow i resolv the problem on encoder, jepler send your idea for groud of it, but my question i thing is important for a cnc system
[21:51:18] <cradek> not true - if noise causes slow creep you will not get following error - the axis simply moves
[21:51:37] <cradek> emc can't guess whether your axis is actually moving - all it has is the encoder count
[21:52:35] <PCW> OK thats right, Encoder count error detection might help there
[21:53:07] <ilya> cradek: Machining centres have encoders at x-, y-, and z-axes almost always, tp track the movements, don't they?
[21:53:20] <cradek> yes it could; do you think noise usually generates invalid quadrature?
[21:53:24] <cradek> ilya: yes of course
[21:54:06] <PCW> In my experience is does because the noise is coupled to both A and B
[21:54:13] <cradek> think of this: noise causes an incorrect count +1, pid corrects and pushes the axis -1, you get a real -1 encoder count. emc sees +1 -1, a very normal event when stationary. no following error. but emc does not think the axis has moved when in fact it has
[21:54:47] <cradek> the axis is now incorrectly positioned at -1 count. you have lost position.
[21:55:22] <cradek> PCW: then it would be great to have that error available to hal
[21:55:35] <PCW> Sebastian ?
[21:55:42] <ilya> cradek: I mean, unlike the Lathe's spindle, but lathe's x- and z-axis have encoders, to determine the movements, don't they?
[21:55:54] <cradek> ilya: read again what I just typed
[21:56:18] <cradek> this is about noise on the encoder lines causing pid to sense incorrect motion
[21:56:43] <cradek> PCW said this would generate a following error, which is mistaken
[21:57:14] <cradek> instead, unfortunately it causes undetected loss of position
[21:57:43] <cradek> but PCW says there are ways to detect it and it sounds like we could
[21:58:10] <PCW> Also the encder logic filter time constant should be settable via hal
[21:58:12] <PCW> the ability to detect quadrature errors is minimal unless
[21:58:13] <PCW> the filter is set to a reasonable value
[21:58:37] <cradek> PCW: I thought it was (or at least there are a couple choices?)
[21:58:42] <ilya> cradek: I wanted to ask "What the reason of spindle on a lathe to not have encoder if its x- and z-axis have it?" -- but typed and asked I don't know what, sorry.
[21:58:44] <cradek> maybe that was hm4
[21:59:09] <cradek> ilya: lathe spindles do have encoders, for cutting threads, but that is a separate issue
[21:59:51] <cradek> PCW: it strikes me that another thing that would be useful is to check for drift of the index pulse
[22:00:49] <cradek> for gross drift maybe - the edge might reasonably be on a different count depending on direction (not sure)
[22:01:35] <ilya> cradek: but if they have two encoders, the 3rd seems wouldn't cause a high price? :)
[22:01:43] <jepler> it looks like emc2's hostmot driver uses the highest filter (lowest count rate) on encoders by default
[22:01:54] <motioncontrol> cradek, on sinumerik siemens system have on settable pin : ceck index on revolulion .If the encoder have turn a complete revolution and not read the index , stop the axis
[22:02:15] <PCW> There is a per counter choice of 3 counts or 15 counts for the filter but there is a global count rate
[22:02:17] <PCW> generator for the input filters thats not settable via the driver ATM default count rate at 15 count filter
[22:02:19] <PCW> is ~4 MHZ if you dont need this, it make the encoder inputs more noise susceptible than need be
[22:03:48] <cradek> ah, sounds like that would be nice to set.
[22:03:52] <PCW> If you left LatchOnIndex set, you could do a index sanity check every rev
[22:04:33] <motioncontrol> PCW, LatchOnIndex ?
[22:04:48] <motioncontrol> PCW, in firmware code?
[22:05:02] <PCW> Its part of the homing logic (yes in firmware)
[22:05:35] <motioncontrol> PCW, not is possible export this funzionality on pin the emc2?
[22:06:40] <motioncontrol> PCW, or a global pin in hal encoder error ?
[22:07:20] <PCW> Just a driver issue, heck the drive doesnt support the LEDS yet either :-)
[22:09:11] <micges> PCW: detecting such errors would be very usable
[22:09:42] <ilya> Jymm: Don't know if you're in a funny mood right now, but I've just read "An avocado-tone refrigerator would look good on your resume." -- and want to tell it to you :)
[22:09:54] <micges> if ony seb had time to do write this
[22:12:27] <motioncontrol> PCW, i don't understand because my spi configuration not fuction.tomorrow i prove with emc2.3.3 , because i now use the 2.3.0, and prove at set the plcin data for write on i/O
[22:13:33] <PCW> The error flag is "sticky" so the driver needs to clear it at startup.
[22:13:34] <PCW> also the way the filters work currently, its possible to miss errors
[22:13:36] <PCW> (the input filters are not interlocked, so the error detection aperture time
[22:13:37] <PCW> depends on the input filter clock, so you still want to lower the filter rate
[22:13:39] <PCW> even with error detection on)
[22:15:25] <PCW> motinocontrol, if you look at the (raw-read/raw-write hack) component you will set that the "PLC" inputs and outputs are not what you think...
[22:16:02] <PCW> (see)
[22:17:24] <motioncontrol> PCW, i have the pin plcin and the plcout create of component ispi0 but the p4 connector on 5i20 read and write only gpio
[22:19:33] <motioncontrol> PCW, the component fuction is swith the p4 fuction on spi , but not do it.you thing the componet have error?
[22:20:36] <PCW> Well there were a lot of errors in that component, maybe something is still wrong (ors instead of ands, no command in the SPI write data)
[22:22:16] <motioncontrol> PCW, you have some idea for correct this error?
[22:22:50] <PCW> The component is supposed to initialize the direction registers for the SPI ports, so GPIO should not work normally
[22:22:52] <PCW> once the component is installed
[22:23:25] <PCW> (direction registers and alternate source registers)
[22:26:12] <motioncontrol> PCW, ok i prove at modification the component, and tomorrow prove.thanks for all
[22:27:34] <PCW> I didnt check my changes either so there could be a typo, did you recompile?
[22:28:36] <motioncontrol> PCW, i have installed the ultimate your moificated file, but not fuction.
[22:29:53] <motioncontrol> PCW, i thing the problem is select the spi fuction with the component is run
[22:32:05] <PCW> Maybe someone who understands components better can help. I just fixed the obvious errors
[22:32:07] <PCW> To select the SPI function, you need only set up the I/O port directions and set the alternate source
[22:32:08] <PCW> bits on the I/O pins cooresponding to SPI outputs (thats the 0x777777 written to the DDR and ALtSrc)
[22:33:40] <motioncontrol> PCW, a question, but the .pin file is configuration the pin relative at the firmware select.the pin file is load in fpga or is not used?
[22:35:39] <PCW> (well and setting up the SPI data length, shift rate etc)
[22:35:41] <PCW> the actual I/O is done by the write and reads to the SPI shift register
[22:35:42] <PCW> The pin file is created by a program that reads the FPGA IDROM
[22:35:44] <PCW> You can (and should!) get a similar listing from the HM2 driver by
[22:35:45] <PCW> setting t he proper debug option
[22:36:05] <MarkusBec> MarkusBec is now known as MarkusBec_away
[22:36:58] <PCW> This would verify that you have the proper (Eight servo + six SPI channels on P4)
[22:37:00] <PCW> firmware loaded
[22:38:33] <motioncontrol> PCW, how setting the debug option?
[22:38:54] <Mire> hello all I'm new...
[22:39:09] <motioncontrol> Mire, hello
[22:41:52] <motioncontrol> PCW, i thing the firmware not load ok, because p3 not is the servo function , but is gpio
[22:42:29] <motioncontrol> PCW, the p2 is servo, p3 and p4 is gpio
[22:42:30] <PCW> Its in the HostMot2 manual
[22:44:05] <Mire> i was guided here by one krs rdk. he says you guys are the masters of EMC2. I come seeking whizdom...
[22:44:44] <PCW> The config I sent had P2 and P3 as servo (8 axis servo configuration)
[22:44:45] <PCW> the SPI will probably not show up since the driver doesn't know it
[22:47:32] <motioncontrol> PCW, i have load your firmware, but on my sistem the p2 is analog, and p3 and p4 fuction equal at svst8_4.bit firmware (p2 servo 4 axis,p3 gpio, p4 gpio) because?
[22:51:41] <Mire> I am retrofitting a Hardinge HNC. Can anyone help me to determine the wisest choice for drive controllers? Mesa products seem to come recommended.
[22:52:50] <alex_joni> I'm sure pcw could elaborate on them ;)
[22:53:35] <alex_joni> Mire: maybe start with what you need
[22:54:44] <Mire> ah cradek jeesh im slo sometimes... that must be you. thanksabazillion.
[22:57:40] <PCW> In the svsp8_6_7i46 I sent, p2 and p3 are servo (encoders and pwmgens) and P4 is SPI
[22:57:42] <PCW> svst8_4 would have the same servo I/O on P2 and P3 and stepgens on P4
[23:00:31] <motioncontrol> PCW, on my maschine first i was load the svst8_4.bit firmware. i have on p2 4 axis and the p3 and p4 the i/O.After i load SVSP8_6.bit(spi firmware) , but the p2 is analog(the axis move ok) the p3 and p4 read and write digital io. i don't have servo on p3 and spi on p4.i don't have error in load the firmware.i have rename only the firmware because the lengh is upper the 30 charatets.
[23:02:29] <PCW> OK but in any case, setting the DDR and AltSrc registers should change your GPIO (GPIO inputs will still work but the outputs should not)
[23:03:54] <motioncontrol> PCW, i don't understand : setting the ddr and altscr, how?
[23:05:07] <PCW> The component sets P4s AltSrc (at 0x1208) and P4s DDR (at 0x1108) during the first couple of passes through the servo thread
[23:05:26] <PCW> (at least its supposed to)
[23:07:47] <motioncontrol> PCW, ispi0.0.raw-read-address 4616(0x00001208),ispi0.0.raw-write-address 4360(0x00001108), this is in halmeter pin
[23:09:48] <Mire> HNC Super Precision complete and functional. I'm hoping to use the existing servos, but swap the spindle motor for a single phase VFD. I've worked around controllers, just not *with* them so I mite learn fast but I certainly need help finding my way.
[23:50:51] <cradek> Mire: to be clear, you can keep the same spindle motor, just drive it with a vfd. a vfd directly drives a 3 phase induction motor.
[23:50:57] <cradek> also, welcome
[23:51:28] <cradek> like I said in my email, my HNC uses 5i20 + 7i33T + 2x 7i37T
[23:51:44] <cradek> it is enough IO, but barely. I think I used all the outputs.
[23:53:10] <cradek> before you buy anything for spindle encoder/resolver, see what you have. Mine had both a one channel (!) encoder with index, and a resolver
[23:53:20] <Mire> hah there you are! I just had that light fizzle on, disregard my last email.
[23:53:46] <cradek> the encoder was the old light bulb type - I took both out and mounted a modern encoder
[23:54:09] <cradek> there's no guarantee your lathe has the same stuff in it - you may already have a serviceable encoder on the spindle
[23:55:38] <cradek> bbl, I'm off to further take apart a ballscrew, wish me luck
[23:56:23] <Mire> I shall certainly check. have you found any shortcomings in your choices in hardware?
[23:56:47] <Mire> good luck!
[23:59:48] <Mire> Okay gang, anybody located near Sacramento?