Am 19.05.2013 um 17:06 schrieb Dave <[email protected]>: > > > On 5/18/2013 3:03 PM, Chris Morley wrote: >> >> >>> From: [email protected] >>> Date: Sat, 18 May 2013 07:15:59 +0200 >>> To: [email protected] >>> Subject: Re: [Emc-developers] Wear Offsets (was lathe-style tool patch) >>> >>> >>> >> >>> the following operations would become toolstore API calls (among others) >>> *): >>> >>> - activating an offset(o) for tool(t) : this becomes an insert operation on >>> table tooloffsets(t,o) >>> - deactivating an offset(o) of tool(t): becomes a delete operation on >>> tooloffsets(t,o) >>> - changing an offset(o) whether active or not: becomes an update operation >>> on table offsets where offsetid == o >>> - retrieving the current offset becomes a select on the abovementioned view >>> >>> Note that database object (tables, rows, views) do not cross the API - >>> those are internal to the toolstore, which means the interpreter, gui, >>> motion etc remain agnostic wrt the storage mechanism >>> >>> >> We do have to keep in mind that geometry offsets and wear offsets are two >> separate things >> so removing and adding wear offsets is possible aside from geometry offsets. >> Hopefully we could allow this even while the machine was paused. >> >> Chris M >> > > > I agree.. And your mention of tool breakage makes me wonder how > automatic tool breakage detection could impact the tool table/data model?
in this table > ... The primary key of "toolID" refers to a specific physical object. > > The likely keys in the table are > toolID comment T-number PocketNumber MagazineNumber SpindleNumber > Torus Frontangle BackAngle Orientation …. > > So, several ToolIDs would share the same T-number. the 'active' attribute will take care of both breakage and wear imit exceeded - it will remove that tool phsical object from group candidate selection, and if there's none left, selection must fail: > probably the table above needs a column 'active' which starts out as true and > can be set to false to disable a tool - either through breaking or if wear > becomes too high; that would be an update run when wear offsets are updated > > active == true would become part of the select clause > If there were multiple tools setup of the same type (backups), how could > we easily swap tool assignments? Would we have primary tools, secondary > tools etc? that's the selection criterium if you have a group of several tools with identical type as alluded to here: > depending on the strategy you might have different queries to map T onto > toolid: > > - always select the tool with the lowest wear - that'd be a a select all > toolID for T, join with offsets(of type wear), order by offset, select toolid > by lowest offset > - select the tool which loads fastest (least hops in magazine): select all > toolid for T, join with magazine positions, order by difference, select lowest I would think that selection criterium be an integrator choice how that could pan out is: assume the toolstore is done in Python by default startup of linuxcnc would refer to a default lib/python/toolstore.py file in case the integrator overrides this, you might have something like [TOOLSTORE] PYTHON = myconfigdir/python/mygreattoolstore.py # here you might activate the desired selection query MYOPTION = 42 # or drive it through an option -m ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
