26.12.2012 Views

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ICAM</strong> <strong>Virtual</strong> <strong>Machine</strong> ® Version 19.0 Creating <strong>Virtual</strong> <strong>Machine</strong> Models with Quest<br />

Customizing the Model<br />

3.8 Customizing the Model<br />

Models can be customized using the <strong>ICAM</strong> macro language to perform special actions. The<br />

sample MHERML50 model for example contains a startup macro that closes the front door at the<br />

start of processing.<br />

Model macros are not necessary for normal processing.<br />

Model macros are called when certain events occur, to allow for any special processing needed<br />

to keep the model up to date. Information about the event is passed to the model macro in the<br />

form of $P variables. The following macro types are available:<br />

� A Startup Macro is executed once at the start of<br />

processing.<br />

� A Shutdown Macro is executed once at the end of<br />

processing.<br />

� A Tape Event macro is executed each time a block<br />

of tape (i.e., MCD) is processed.<br />

� A Motion Event macro is executed each time the<br />

model is moved.<br />

� A Rapid Event macro is executed before a positioning<br />

motion.<br />

� A Feed Event macro is executed before all other interpolation<br />

motions.<br />

� A Load Tool Event macro is executed whenever the tool is changed.<br />

Model macros share the same macro environment as the post processor or control emulator,<br />

which gives them full access to system variables and user defined global variables. Model<br />

macros are somewhat restricted in that they cannot generate post processor commands or call<br />

matching macros that in turn generate post processor commands.<br />

Model event macros and simulation function are described starting on page 122.<br />

54 <strong>ICAM</strong> Technologies Corporation – Proprietary

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!