#linuxcnc-devel Logs
Sep 23 2018
#linuxcnc-devel Calendar
05:48 AM Jin|away is now known as Jin^eLD
01:13 PM andypugh: I find myself puzzled
01:16 PM andypugh: https://pastebin.ubuntu.com/p/krcNTFh56Z/
01:17 PM andypugh: As far as I can tell my code is the same for as the existing code.
01:17 PM andypugh: And, actually, I can see that it might be ambiguous, but why is mine ambigous and the existing code not?
01:18 PM andypugh: (I am adding a spindle dictionary to match the axis and joint dictionaries to the Python inyerface)
01:27 PM cradek: what is the type of s->status.motion.spindle[spindleno].x?
01:29 PM andypugh: It depends on what x is.
01:29 PM andypugh: double or int, typically
01:29 PM cradek: oh I think I get the expansion then
01:29 PM cradek: I think it means there is no dict_add version that takes int
01:30 PM andypugh: The Axis section is current, and compiles. My spindle addition doe snot
01:30 PM cradek: and because of that, it's trying to decide between unsigned char and double
01:30 PM cradek: brb
01:31 PM andypugh: https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/axis/extensions/emcmodule.cc#L538
01:32 PM andypugh: The joint section seems to be able to freely mix double and int?
01:34 PM andypugh: Ah, no, I am wrong, it doesn’t
01:34 PM andypugh: The flags in EMC_JOINT_STAT are unsigned chars
01:38 PM andypugh: #define F2(y,x) dict_add(res, y, (double)s->status.motion.spindle[spindleno].x)
01:38 PM andypugh: Lets it compile, at least.
01:38 PM andypugh: Though adding bool and int versions of dict_add might be better?
02:49 PM andypugh: Does anyone fancy making Axis multi-spindle aware? (Currently I am just making it default to spindle 0)
03:15 PM jthornton: I'd fancy making Axis PyQt5...
03:31 PM KimK: andypugh: How flexible is your proposed multi-spindle arrangement? In the classic style, you'd have a bunch of (say) vertical spindles making several copies of the same thing. But I've seen some cabinet-making CNC machines (especially by the Italians, for some reason) that have a mind-boggling assortment of various types of "spindles", pointed in all directions. (They must be activated one-at-a-time, of course.) I'll see if I
03:31 PM KimK: can find some examples...
03:31 PM KimK: Oops, long-winded, sorry.
03:34 PM andypugh: All I am addinf is a way to control multiple spindle _motors_ and to perform spindle-synched moves with any of them
03:35 PM andypugh: The multi-spindle routrsmainly have more _joints_ than normal.
03:36 PM andypugh: I would be interested to know how many spindles they might have, though. Currently I support 10
03:48 PM andypugh: cradek: In Touchy, what is “spindlespeed2” ? https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/touchy/emc_interface.py#L429
03:48 PM andypugh: Is it already multi-spindle aware :-)
03:51 PM rene_dev_: andypugh whats the drilling cycle to use on a lathe?
03:52 PM rene_dev_: they all seem to complain about the plane
03:53 PM andypugh: I have (so far) always used the tailstock, though I recently bought an MT2 toolholder to allow drilling
03:54 PM andypugh: You might have to switch to the XY plane to drill in Z, then switch back for XZ arcs.
03:54 PM rene_dev_: ah
03:54 PM andypugh: (Does it allow you to drill in Y if in the XZ plane?)
03:55 PM rene_dev_: I dont have a y axis
03:56 PM andypugh: Yes, but it doesn’t need to know that :-)
03:56 PM rene_dev_: my lathe is xzc, which already causes too much trouble
03:56 PM rene_dev_: so I had to change it to xz
03:56 PM rene_dev_: it wont let me use any drill cycles
03:56 PM andypugh: I am just wondering if it makes more sense to over-ride the plane check on a lathe, or whether it is useful for lve tooling as it it
03:57 PM andypugh: How is tool table going? I am wondering whether I need to fix stat.tool-in-spindle
03:57 PM andypugh: (the spindle that the tool is in seems to me like a tool property)
04:00 PM rene_dev_: I have not worked on that for a while...
04:00 PM rene_dev_: that depends if you have one or multiple toolchangers
04:04 PM rene_dev_: ok, looks like switching to xy and then back seems to work...
04:27 PM KimK: So far I have only found examples of the "classic" style: http://www.limac.cc/R3000MH-Router-Multi-head.html https://www.omni-cnc.com/product/multi-head-cnc-router/ I'm still looking for the other type.
04:49 PM KimK: OK, I at least found these. The first one is a very impressive machine, but not a good example of what I'm talking about, also too "custom". The second one is a better example, and also a more "conventional" machine: https://www.youtube.com/watch?v=19oWNiwY0es https://www.youtube.com/watch?v=DZCcv_cQdr0
04:51 PM Jin^eLD is now known as Jin|away
04:53 PM KimK: It's pretty common in that type of machine to have rows of mechanically-linked spindles to drill holes in rows (every inch/25mm or so) for things like shelf pegs, dowel holes, etc., but that only counts as one spindle in my mind, even if the head is able to drill 10 holes at once.
04:58 PM KimK: In the second machine, you can see some of the "instant" tool changes (spindle changes?) as it chooses heavy router, single vertical drill, multiple vertical drills, multiple horizontal drills, and circular saw (seen in one direction only, it may have another one for the other direction?)
06:13 PM andypugh: Yes, I think those are more a multi-koint problem than a molti-spindle onw.