#emc | Logs for 2009-09-23

Back
[07:45:24] <ChanServ> [#emc] "This is the #emc channel - talk related to the Enhanced Machine Controller and general machining. Website: http://www.linuxcnc.org/, wiki at http://wiki.linuxcnc.org/"
[07:55:12] <pjm> good morning
[08:01:13] <alex_joni> morning
[09:11:04] <Jymm> OMG... fax modem is such a pita!!!
[09:41:53] <Valen> they are the suck
[10:09:57] <Valen> just out of curiosity, anybody have something to generate gcode for cutting a chain type sprocket?
[10:37:41] <archivist> it wont be hard Valen
[10:38:01] <Valen> Didn't think so, I was just wondering if something existed easily
[10:38:32] <archivist> dont remember seeing one, but I have made some
[10:38:46] <archivist> not cnc though
[10:39:17] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[10:39:32] <Valen> also know if EMC knows about G14 and 15, spirals that is
[10:40:20] <archivist> it does spirals in a normal g3 iirc
[10:40:34] <archivist> I mean helix
[10:40:35] <Valen> I thought that was arcs?
[10:40:57] <archivist> it is just add z
[10:41:19] <Valen> I was hoping to face some stuff by spirialing out from the center
[10:41:24] <Valen> mainly for a cool looking finish
[10:41:38] <Valen> or in from the outside would be better
[10:41:55] <jthornton> you can do that with my counter bore software
[10:42:42] <archivist> I do it wit the rotary and add some rotation to a linear move
[10:43:05] <Valen> no rotary yet
[10:43:18] <Valen> so thats a no on G14 or 15 then?
[10:43:51] <archivist> I have not checked the fine manual
[10:44:04] <Valen> I looked but it didn't seem mentioned
[10:44:18] <Valen> but then it wasn't mentioned in a negative way
[10:51:39] <alex_joni> G14/15 isn't supported as such in emc2
[10:51:44] <alex_joni> under those numbers at least
[10:52:40] <Valen> under something else?
[10:53:00] <alex_joni> I'm not sure what it needs to do
[10:53:35] <Valen> I was looking to cut a spiral
[10:53:53] <Valen> flat on the X-Y plane from some outside diameter in to the center
[10:55:13] <Himanshu> Hello alex_joni
[10:56:15] <Himanshu> is anybody there??
[10:56:31] <Valen> no
[10:56:34] <Valen> well yes
[10:56:40] <Valen> but nobody is talking to you
[10:56:53] <Himanshu> oh thanks Valen...
[10:56:56] <Valen> ;-P
[10:57:00] <Himanshu> can you guide me?
[10:57:10] <Valen> possibly, but probably not
[10:57:20] <Valen> if you have a question or problem just ask it
[10:57:31] <Valen> if people see it they will respond
[10:57:31] <Himanshu> actually i want to add few controls in AXIS GUI or anyother GUI
[10:57:50] <Valen> nfi on that one
[10:57:51] <Himanshu> where can i find the Source Code Documentation?? or something like that
[10:58:02] <Valen> umm in the source perhaps?
[10:58:14] <Valen> what do you actually want to do?
[10:58:43] <alex_joni> the easy thing is to add a pyVCP panel to AXIS
[10:59:02] <Himanshu> customize EMC2 for my application.. i.e. 3-4 parameters are needed everytime so i want to program it
[10:59:06] <alex_joni> http://www.linuxcnc.org/docview/html//hal_pyvcp.html
[10:59:15] <alex_joni> http://www.linuxcnc.org/docview/html//hal_pyvcp_examples.html
[10:59:21] <alex_joni> Himanshu: what kind of parameters?
[10:59:33] <alex_joni> AXIS is just a GUI to emc2.. maybe the right place is somewhere else
[11:01:15] <Himanshu> actually i am working on diamond cutting laser machines so i will generate GCode from different diamond parameters
[11:01:24] <Himanshu> like Angle Diameter and all
[11:01:49] <alex_joni> then you probably want a filter that runs before emc2
[11:01:59] <alex_joni> one that outputs g-code based on the parameters you enter
[11:02:08] <Valen> that sounds more like it to me
[11:02:22] <alex_joni> look at http://www.linuxcnc.org/docview/html//gui_axis.html#r1_11_1
[11:03:32] <Himanshu> one more thing alex_joni .. this is a SPM so its better to write new GUI for this... is there any documentation for this ?
[11:04:04] <alex_joni> Himanshu: not really
[11:04:11] <alex_joni> mostly the source itself
[11:05:32] <Himanshu> is there any GUI based in C language.. coz i dont know python? if yes which is the main file in src folder
[11:06:17] <Valen> what your proposing is a really really big job
[11:06:24] <Valen> like not trivial
[11:06:38] <archivist> gui in C is not funny
[11:06:51] <Valen> and it sounds like what you want to change is more suited to changing the g-code than anything inside emc/axis itself
[11:07:01] <archivist> * archivist plays gui in f major
[11:07:55] <Himanshu> there are 4 GUIs right?? AXIS, TKEMC .... all are in python??
[11:08:09] <Valen> can you use radius compensation without using the tool table?
[11:08:15] <archivist> no TKEMC is in....TK
[11:08:34] <Himanshu> and what abt MINI??
[11:08:43] <Himanshu> not a single GUI in C??
[11:08:57] <Valen> Himanshu look like alex said what are you actually trying to do to the program
[11:09:27] <jthornton> I didn't know you could do a gui in C
[11:09:55] <Valen> you can use C to hook to other stuff
[11:10:05] <Valen> or manipulate pixels your self
[11:10:21] <archivist> you can do a gui in assembler, but we would cart you off to the funny farm
[11:10:25] <Valen> most GUI's are written as librarys that any language can bind to
[11:10:34] <Himanshu> may be i am new to linux, otherwise you can create DAMM COOL GUI using C in windows.
[11:10:49] <Himanshu> anyways thanks guys... thank u very much alex_joni
[11:10:56] <archivist> you use a library in windows
[11:11:10] <Valen> you still havent actually said what your trying to do Himanshu
[11:11:19] <jthornton> must be visual C
[11:11:22] <Valen> archivist, you can ,but then you would be a wuss ;->
[11:11:29] <Himanshu> yaa obviously its Visual C
[11:11:51] <Valen> Visual C is just an IDE
[11:11:52] <Himanshu> Valen I am developing Diamond Laser Cutting Machine...
[11:12:01] <Valen> it does the boilerplate stuff for you
[11:12:08] <archivist> and it uses library calls, there is nothing stopping you from doing that in linux
[11:12:25] <Himanshu> where operator dont know G codes.. they just enter the diamond parameters and rest will be done autometically
[11:12:47] <Valen> what you want is a program to generate the G code
[11:12:51] <archivist> you do that prior to emc
[11:12:54] <Valen> thats not part of axis
[11:12:57] <Valen> or even emc
[11:13:01] <Himanshu> i have the application Ready using GALIL controller in windows now i wan to migrate to EMC2
[11:13:13] <alex_joni> Himanshu: halui is done in C++
[11:13:20] <alex_joni> but it's not a GUI per se, just a UI
[11:13:21] <Valen> and it makes the g-code yes?
[11:13:23] <Himanshu> yaa thats true... but everything should be done in back ground
[11:13:30] <alex_joni> user interface, not graphical user interface
[11:13:54] <alex_joni> jthornton: you can do a GUI in C with Gtk
[11:14:00] <alex_joni> most Ubuntu apps are done that way
[11:14:01] <Valen> so? have your gcode generator call one of the UI's or tie direct to EMC if your keen
[11:14:05] <alex_joni> probably c++ not C
[11:14:31] <Valen> its going to be much easier than trying to stuff gcode into axis
[11:15:02] <Valen> can you call axis with a file name for it to load from the command line? I would imagine so
[11:15:08] <Himanshu> all controls and procedurel shown in main page must be related to diamond with the same name as old software
[11:15:23] <alex_joni> Valen: I already sent Himanshu a link how to do that
[11:15:40] <alex_joni> Valen: http://www.linuxcnc.org/docview/html//gui_axis.html#r1_11_1
[11:15:51] <Himanshu> i read it .. its useful
[11:15:58] <Valen> great, so make a piece of software that has that, they press the "run" button, it makes the G-code, saves it to a file, then calls axis and points it at the file its made
[11:16:13] <alex_joni> Himanshu: basicly the operator has some files.. call them diamond1,2,3, etc
[11:16:17] <Valen> the person looks at the tool path if they are happy they press run
[11:16:32] <alex_joni> when he tries to open one in AXIS, your software gets called with that file as a parameter
[11:16:55] <alex_joni> you software then presents a GUI with various parameters, and when everything is ok, it just outputs g-code to stcout
[11:17:01] <alex_joni> which AXIS reads and sends to emc2
[11:17:13] <Valen> even better
[11:17:15] <Himanshu> hmmm good idea... now only one problem .. can i adjust basic AXIS controls.. for example
[11:17:31] <Himanshu> inplace of coolent i want to display AIR
[11:17:45] <Himanshu> few controls i dont need in main application like stepwize jog
[11:20:10] <alex_joni> Himanshu: you need to edit the sourcecode for that
[11:20:16] <Valen> changing the name of things would be easy enough
[11:20:34] <Valen> turning displays off is probably not toooo hard
[11:20:47] <alex_joni> there are a couple interfaces for emc2: AXIS (python+tk), tkemc&mini (tcl+tk), xemc&yemc(c++), keystick (text mode, c++)
[11:20:53] <alex_joni> there is also a java interface
[11:21:45] <Himanshu> grt... java is fine..
[11:22:15] <Himanshu> which is the source file for xemc&yemc???
[11:45:45] <ChanServ> [#emc] "This is the #emc channel - talk related to the Enhanced Machine Controller and general machining. Website: http://www.linuxcnc.org/, wiki at http://wiki.linuxcnc.org/"
[12:07:53] <Valen1> Valen1 is now known as Valen
[12:09:29] <jepler__> jepler__ is now known as jepler
[13:25:59] <piasdom> g'mornin all
[13:44:56] <yishin> #emc-devel
[13:45:15] <yishin> how to switch irc channel to #emc-devel?
[13:45:22] <yishin> I'm new to irc
[13:46:26] <pjm> type /join #emc-devel ?
[13:46:44] <yishin> thanks
[13:47:11] <yishin> it works
[14:12:02] <JbLb_> JbLb_ is now known as JbLb
[14:43:41] <piasdom> how do i get to the java interface for emc2 ?
[14:44:33] <cradek> piasdom: I don't think there is one
[14:44:58] <piasdom> cradek; thanks
[14:45:20] <archivist> ask alex_joni as he was the one who said it
[14:47:01] <piasdom> k
[14:47:51] <piasdom> alex_joni; is there an java interface for emc2 ?
[14:48:43] <renesis> isnt one of the guis a stupid purple with big dumb looking buttons by default, like as if it was a java app?
[14:49:05] <renesis> i can understand the confusion
[16:19:13] <archivist> tool table for lathe has no parting tool option as far as I can see
[16:20:35] <jepler> archivist: I've seen the suggestion to use shape 1 or 2 and make it very pointy
[16:21:27] <archivist> it has width
[16:27:41] <jepler> 6 6 +0.500000 +0.500000 0.050000 +90.000000 +90.000000 6
[16:27:44] <jepler> try this
[16:28:11] <jepler> oops, or better with origin 1
[16:32:33] <archivist> that sorta works around it
[16:35:12] <archivist> I use a Sandvik parting tool in my other lathe and it has 3 cutting faces and two radii, a very useful tool
[18:00:21] <micges> logger_emc: bookmark
[18:00:21] <micges> Just this once .. here's the log: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emc/2009-09-23.txt
[18:25:45] <motioncontrol> good evening at all.I want i help about the sincronized axis.Is possible with emc configure two servo axis in master slave?
[18:41:46] <Dave911> Hi Guys..
[18:41:48] <Dave911> I hope this is obvious to someone... :)
[18:41:49] <Dave911> In ClassicLadder I want to turn off a bit in a %W word. How can I do that? I can turn it on with an assignment and do a %w10=(%w10|1) but I can't seem to figure out a way to turn the same bit off
[18:41:51] <Dave911> without affecting the other bits. Any ideas??
[18:42:23] <cradek> &(~1)
[18:42:44] <cradek> and (all the bits except 1)
[18:43:33] <Dave911> Can I reset the second bit with a &(~2) ?
[18:43:49] <cradek> yes
[18:44:19] <Dave911> Ohh... oh.. oh .... this is so cool! :-)
[18:44:29] <Dave911> Thanks!
[18:44:35] <cradek> welcome
[18:44:42] <motioncontrol> cradek, good evening.because when i write g33 z-1 k1 the axis not move?
[18:45:05] <cradek> then your spindle feedback is not working right
[18:45:24] <cradek> you can use halscope to debug it
[18:46:26] <motioncontrol> cradek, but the encoder is used with rigid tapping g33.1 i don't have the encoder on spindle.is possible execute the compensate tapping?
[18:46:48] <cradek> not having an encoder on the spindle is a very extreme case of spindle feedback not working right
[18:47:06] <cradek> you can not rigid tap without spindle feedback
[18:48:08] <motioncontrol> cradek, i don't want rigid tapping , but simple tapping with meccanical tool compensation.is possible?
[18:49:07] <cradek> sure - you can use a tension/compression tapping head, or a reversing tapping head, you just need to program the individual moves that make up a tapping operation.
[18:49:43] <motioncontrol> cradek, please have a example line program?
[18:50:01] <cradek> no I don't - that is something you can figure out depending on what kind of tapping head you have.
[18:51:00] <BJT-Work> motioncontrol: it is just a Z down and a Z up move with a tapping head at the proper speed
[18:51:19] <cradek> if T/C you have to reverse the spindle
[18:51:21] <archivist> depends on the tapping head
[18:51:38] <cradek> if reversing you need correct speed ratio, maybe different up/down speeds, maybe a dwell
[18:51:42] <BJT-Work> yep
[18:51:52] <cradek> that's why I'm not going to write an example
[18:51:58] <motioncontrol> BJT-Work, yes i understand, but have a command in emc2 exmple g33 ?
[18:52:07] <BJT-Work> you couldn't without all the proper ifo
[18:52:09] <cradek> you cannot use g33 or g33.1 without spindle feedback
[18:52:56] <motioncontrol> cradek, ok i calculate the z velocity for velocity spindle?
[18:53:02] <cradek> yes
[18:53:11] <motioncontrol> cradek, ok thanks
[18:53:18] <cradek> welcome
[19:03:44] <Dave911> I have %W8=%W8&(~1) and I get an error missing parenthesis ?? If I put parenthesis around the %W8 after the "=" I get the same error.
[19:03:45] <Dave911> I don't think that the assignment box likes the ~1 ?? I've tried it a number of different ways. Added redundant parenthesis. Any ideas?
[19:04:53] <cradek> hm, looking at CL docs...
[19:06:14] <cradek> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ClassicLadder#COMPARE
[19:06:27] <cradek> maybe it's spelled ! instead of ~
[19:07:08] <cradek> since they are s32 you can use $fffffffe for ~1 and $fffffffd for ~2
[19:08:04] <Dave911> OK, I'll do anything to get this to work... hex code is fine also :) Thanks! I'll be back ;-)
[19:13:36] <Dave911> %W8=%W8&(!1) Works great! Thanks.. I saw that Not there before in the docs but it didn't register for some reason. I'm happily flipping bits.. :-)
[19:14:42] <cradek> it's not at all clear whether it's logical not or bitwise not... I only guessed bitwise because it was listed near |, %
[19:14:49] <cradek> err |, &
[19:29:02] <EbiDK> EbiDK is now known as EbiDK|AWAY
[20:08:24] <Dave911> Well I thought that %W8=%W8&(!1) worked ok, but after some testing it turns out that (!2) or any other number not'ed is always zero in the assignment box so the entire word is zeroed out with the AND since it is effectly ANDing zero with %W8.
[20:08:26] <Dave911> Using %W8=%W8&($FFFFFFFE) works - a bit more brute force but hey - the bits still turn on and off.. :-)
[20:08:28] <Dave911> That does seem like that might be a bug.
[20:08:30] <Dave911> But my the end result should be fine.. Thanks!
[20:08:30] <MarkusBe-> MarkusBe- is now known as MarkusBec
[20:19:45] <frallzor> yo
[20:28:34] <cradek> Dave911: so it is logical not, not bitwise not
[20:35:30] <jepler> is there ^ for xor? if so, you could write %W8&(0^2)
[20:36:28] <cradek> it says ^ is exponent
[20:36:36] <jepler> er, my thinking was wrong anyway
[20:36:39] <cradek> +,-,*,/,=,<,>,<=,>=,(,),^ (exponent),% (modulus),& (and),| (or),! (not).
[20:37:40] <cradek> yeah I guess xor is more like || than |
[20:41:05] <skunkworks_> logger_emc: bookmark
[20:41:05] <skunkworks_> Just this once .. here's the log: http://www.linuxcnc.org/irc/irc.freenode.net:6667/emc/2009-09-23.txt
[21:03:30] <PCW> Hi Sebastian
[21:06:05] <seb_kuzminsky> hi there :-)
[21:11:24] <PCW> Looking at the HM2 driver it has a constant Maxpins. Could this be changed to
[21:11:26] <PCW> PortWidth * IOWidth (per card)
[21:13:13] <PCW> That and adding the 9056 Chip ID and 3x20 subsystem IDs will get the 3X20 supported
[21:14:16] <PCW> (9056 is identical to 9054 as far as FPGA config and card access are concerned)
[21:16:18] <alex_joni> what's a 3X20 ?
[21:16:53] <PCW> Its a little external PCIE FPGA card with 144 I/O
[21:22:46] <alex_joni> ah, cool
[21:23:21] <PCW> I think the HM2 driver also complains if the OffsetToPinDesc isn't 0x200
[21:23:23] <PCW> I will have to change this to 0x1C0 to get room for 144 pin descs
[21:23:25] <PCW> Looks like the driver uses the right number (the offset) but it would complain...
[21:27:42] <seb_kuzminsky> i think you can bump HM2_MAX_PIN_DESCRIPTORS from the current 128 to 144 or something bigger (to get it going right away), but using PortWidth*IOPorts would be better
[21:28:58] <seb_kuzminsky> i dont think it should complain about the pin descriptor offset changing
[21:30:11] <seb_kuzminsky> what's the 3x20 subsystem id?
[21:30:14] <seb_kuzminsky> :q
[21:30:23] <seb_kuzminsky> oops wrong window...
[21:36:22] <seb_kuzminsky> PCW: what are the 3x20 connectors named, and what's the fpga part number?
[21:37:51] <PCW> subsystem IDs are 3427,3428,3429 for 1M, 1.5M and 2M FPGAs
[21:42:01] <PCW> Connectors on 7I68 motherboard are P4,P5,P6,P9,P8,P7
[21:42:03] <PCW> That's in order of I/O b its (P4 = 0..23, p7 is 120..143)
[21:42:33] <seb_kuzminsky> cool
[21:42:36] <cradek> that's sure a lot of io
[21:43:13] <PCW> Nice part is it can be 15 feet or so from PC
[21:44:44] <seb_kuzminsky> PCW: the hm2 driver verifies that the firmware that the user asked to load matches the fpga of the board it detected, so i need to know the fpga part numbers for the 3x20's
[21:47:01] <PCW> Its a xc3s1000-fg456 or xc3s1500-fg456 or xc3s2000-fg456
[21:48:41] <PCW> 2m gate part not suggested in general even though its cheaper than the 1.5M gate chip
[21:48:42] <PCW> because it requires the $$$ xilinx tools
[22:16:59] <seb_kuzminsky> PCW: you're right, it does complain, i'll squash that warning
[22:42:00] <seb_kuzminsky> PCW: please pull the new 3x20 branch from git.linuxcnc.org repo and let me know if it works :-)
[22:44:47] <ZeroFlex> hmmm
[22:49:38] <PCW> OK Thanks! Will try tommorow!
[23:00:50] <seb_kuzminsky> bye guys