Am 18.05.2013 um 07:15 schrieb Michael Haberler <mai...@mah.priv.at>:

> 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

it occurred to me that the toolstore must be a bit more than the API examples 
above suggest:

to move out of the interpreter and iocontrol, and generalize the current 
functionality, it needs also to:

1. in the interpreter (or caused by the interpreter), cause machine moves 
(rapid, touchoff, quill up etc)
2. in HAL land, cause the pin handshaking protocol to be exercised as needed, 
which might be specific to a certain changer type

1) really is a variant of calling an NGC (or embedded Python) procedure during 
a remapped Tx/M6x and easy
2) might just mean a more generic Python HAL component which talks to the 
toolstore

it also means toolstore is an entity proper (eg process), not just a library, 
and can talk/be talked to remotely eventually


--- blue sky --

what I would rather would like to have for 1) (and that would simplify this 
operation as well as enable MDI-while-paused): have an instantiable 
interpreter, and a way to suspend/resume an interpreter; in essence this means 
another interpreter can take over machine control temporarily

in that case what would happen on a Tx or M6x:

- the current interpreter is suspended and canon queue frozen
- execution switches to a new interpreter/own canon queue
- toolchange does its thing as far as interpreter activity is concerned
- execution of the current interpreter/canon queue is resumed

this would apply 1:1 to the jog-while-paused example, which does motion based 
on HAL interaction exclusively due to a lack of a pristine interpreter 
environment: 
http://git.mah.priv.at/gitweb?p=emc2-dev.git;a=shortlog;h=refs/heads/jog-while-paused-preview2
 , http://tinyurl.com/b89977c

due to the awkward design of the interpreter data structures, its a major 
project, so I'll leave that to a suitable unguided miracle worker ;)

--- end blue sky  ---

-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
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to