Variables 

In many of the sample sequences, variables must be used to indicate numerical values for the post to insert into the NC program. These variables can be used in the same way the Feed, Rapid, Cw, and Ccw lines are described above.

A variable is a word or letter that takes the place of a number. These variables indicate information that is pertinent to machine motion. An X value on a mill generally indicates a horizontal position so we simply abbreviate it as the letter h. The letter h is the variable that indicates horizontal position. The code X[h] indicates that you want the X to appear followed by the value of the current horizontal position.

The following is a list of the variable names, and the values to which they refer, that can be used instead of numbers when describing the sequences. Remember to enclose any values or variables between square bracket symbols, for example R[arcrad]. These symbols act as delimiters and are not output in the NC code.

Global Variables

arcrad

block

chams

comp

cool

coolantoffd

dcomp

ddist

depth

direct

dwell

endang

feedtype

flood

flush

frate

gauge

h

h2

hcdc

hctr

hdist

homeh

homev

hvector

incmode

inidep

initpower

invtime

ival

ivect

jval

jvect

kvect

lastd

lasth

lasthole

lastrotang

lasttool

lastv

lcomp

lowerdist

movelength

movetime

nexttool

passes

peck1

pitch

plunge

pointd

power

etplane

rigid

rotangle

rotaxdir

rplane

sbite

sclear

side

sleave

sparkgap

speed

speedtype

startang

stop

sub

subline

sweep)

taper

thickness

times

tipang

tool

tool1

totalcutdist

totalcuttime

tparams

turret

unitmode

upperdist

v

v2

val1 - 10

vbite

vcdc

vclear

vctr

vdist

vgauge

vleave

vvector

wirefeed

 

 

 

Prompted Variables

   1.   endh

   7.   toolv

   2.   endv

   8.   work

   3.   maxrpm

   9.   workd

   4.   program#

   10.  workh

   5.   toold

   11.  workv

   6.   toolh

 

 

 

 

 

 

Tool Comment Variables 

 

   1.   corner

   2.   tooldiam

   3.   toolrad

Return to SURFCAM Index


Your Ad Here