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>Virtual</strong> <strong>Machine</strong> Reference, Model Customization<br />

Simulation Macro Variables, Motion-Related Variables<br />

For example, to determine if a B'-axis table is active or not, the following could be coded in a<br />

macro:<br />

%L01=$FINDEX($AXES,'b') $$ Get index of B table axis<br />

IF/%L01.GT.0 $$ is it active?<br />

%L02=$P2(%L01) $$ yes, extract value from $P2 sequence<br />

ENDOF/IF<br />

If the $FINDEX function returns 0, the axis for which the index was requested is not active, and<br />

therefore it‟s value will not be found in the $P2 sequence. For the case above, the $BTM macro<br />

system variable could be used to determine the current position of the B'-axis.<br />

$F Current feed rate in the current mode<br />

Type: Numeric, Read/Write<br />

This variable contains the current feed rate in the current mode (i.e., $FMODE) of operation.<br />

$FMODE Feed rate mode. (-1:? 0:uPM 1:uPR 2:inverse time)<br />

Type: Numeric, Read/Write<br />

This variable contains the current feed rate mode. If the value is -1 then the mode is currently<br />

unknown.<br />

$LCS Local coordinate system status ($TRUE or $FALSE)<br />

Type: Logical, Read/Write<br />

This variable will be set $TRUE when LCS (Local Coordinate System) transformation is activated<br />

in the program and $FALSE when LCS is deactivated in the program. The $LCS variable can<br />

be set from within a macro to change the mode.<br />

$PLMODE Plane mode. (

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

Saved successfully!

Ooh no, something went wrong!