251 - Spindle Selection

%MACRO=251=..=Spindle Selection=

These system variables are available following a %GETCPL call for the current spindle number held is the value of SUBFUNCT.

 

System Variables
Modified

System Variable Description

SPINDLE

ID of the selected spindle

INDEXID

CPL ID for that spindle

GROUPDESCRIPTION

Spindle Name

XINC(1)

Absolute values from current CPL to Initial CPL

YINC

 

ZINC

 

XSUB (2)

Absolute datum origin

YSUB

 

ZSUB

 

SUBFUNCT

Current CPL/Spindle pointer

 

Use the %GETCPL directive with Subfunct to get information relating to the datum of the selected spindle.  The variable SPINDLE gives the ID of  the selected spindle - this value can be tested against SPINDLEID1 and SPINDLEID2 to determine which spindle has been selected.

(1) The system variables XINC, YINC and ZINC (not #XINC etc) contain the current CPL position in Initial CPL coordinates.

(2) The system variables XSUB, YSUB and ZSUB (not #XSUB etc) contain the current position from world origin, in current coordinates