Most of the examples are taken from the standard postprocessors provided.
- GCODE
-
Grammar: GCODE / val1, val2, val3, val4
Action:
Writes a G-code command with the value val1 to the ribbon file, while adhering to the
output conditions val2, val3, and val4. The following variables are updated:
ETAT0.move =
- 0,1,2,3 for val1 = 0, 1, 2, 3
- ETAT0.plane = 1, 2, 3 for val1 = 17, 18, 19
- ETAT0.units = 0.1 for val1 = 70, 71,
- STATE0.cycle = 0, 1, 2…9 for val1 = 80, 81, 82…89,
- STATE0.mode = 0, 1 for val1 = 90, 91
- STATE0.fedmod = 1, 2, 3 for val1 = 93, 94, 95
- CUTCOM.on = 0, 1 for val1 = 40, 41, 42
- CUTCOM.mode = 1, 2 for val1 = 41, 42
- CYCLE.on = 0, 1 for val1 = 80, 81, 82…89
- SPINDL.mode= 1, 2 for val1 = 96, 97
- val2 = 0 The code is generated according to the condition
- val2 = 1 The code must be generated
- val2 = -1 The code is not generated, but the variable ETAT0 is updated
- val3 = 0 The code is generated within the block
- val3 = 1 The code is generated in an XYZ motion block
- val3 = 2 The code is generated in a block for movement perpendicular to the work
plane
- val3 = 3 The code is generated in a motion block in the work plane
- val3 = 4 The code is generated in a block containing a linear motion axis orrotary
axis
- val3 = 5The code is generated in a block containing a rotary axis
- val3 = 11The code is generated in a block containing an X-axis
- val3 = 12 The code is generated in a block containing a Y-axis
- val3 = 13 The code is generated in a block containing a Z-axis
- val3 = 14 The code is generated in a block containing an A-axis
- val3 = 15 The code is generated in a block containing a B-axis
- val3 = 16The code is generated in a block containing a C-axis
- val4 = 0 The code is generated in the block
- val4 = 1 The code is generated before the block
- val4 = 2The code is generated after the block
TheG-code address is defined by the variable CODE.used[2]. TheGCODE function uses the
lookup table from the controller file, which is accessible in macros via the variable
GCODE.val.
gcode= 94 , 94 , 1
gcode= 95, 95, 1
Relevant variables:
ETAT0
CODE.used[2]
GCODE.val[]
CUTCOM CYCLE.on
SPINDL.mode
Macro call: no
Example: Excerpt from the LOADTL macro for FANUC. EOB MCODE / 6
CODE / 13, VAL("VALUE",1)
GCODE / 43.0, 1, 2
CODE / 14, VAL("VALUE",1), 2
EOB
LOADTL.num = VAL("VALUE",1)
LOADTL.osetno = VAL("VALUE",1)
STATUS0.delete = 2
TOLIB / LOADTL.num
$$
- GFCODE
-
Grammar: GFCODE
Action:
Writes the requested feed mode (FEDRAT.mode) and the feed rate value (FEDRAT.upm or
FEDRAT.upr) to the ribbon file.
Relevant variables:
FEDRAT.mode = 2
FEDRAT.upm if FEDRAT.mode = 2 (G94 mode)
FEDRAT.upr if FEDRAT.mode = 3 (G95 mode)
Macro call: no
- GOCIR
-
Syntax: GOCIR / val1, val2, val3, val4, val5, val6, val7, val8, val9, val10 [,TURN, val11, val12, val13, val14]
Action:
Creation of a circular motion with feasibility check; circle radius too large
(MODE.rmax) or interpolation plane impossible. The interpolation plane is activated if
necessary (G17, G18, G19). If the circular motion is notfeasible, it is broken down
into linear motion with the INTOL tolerance. The MODE.circle variable defines the
creation mode: 0 = absolute IJK, 1 = relative IJK, 2 = radius, 3 = XYZIJK in any
plane, 4 = 2 points in space. The ETAT1 variable (previous state) is updated after the
movement.
- (val1,val2, val3): center of the circle, part coordinate system
- (val3, val4, val5): axis of the part reference circle defining the plane and
direction
- val7: radius of the circle
- (val8, val9, val10): workpiece coordinate system end point
In the case of helical interpolation, the TURN option is available with:
- val11: number of additional revolutions
- val12: signed helix pitch
- val13: signed plunge distance
- val14: absolute angular displacement
If MODE.circle = 4, the GOCIR macro calls the CIR2PT macro CIR2PT / val1, val2,
val3, val4.
- val1: point number 1, 2, 3, 4
- (val2, val3, val4): point coordinates
Relevant variables:
- ETAT0.pts: final position in the part coordinate system
- ETAT0.plane: interpolation plane
- ETAT0.move: movement type
- ETAT0.xyzabc: final position in the machine coordinate system
- GOCIR.turn: Number of additional revolutions
Macro call: yes
Example: Excerpt from the GOCIR macro for Fanuc with a loop in the case of helical
interpolation.
$$
IF ( ARG("TURN") ) THEN $$ number of full revolutions LOOP(i,1,1,VAL("TURN",1))
pts = VECLIN(ETAT1.pts,-1*VAL("TURN",2),ETAT1.pts[4]) GOCIR / ARG1.val[1] , ARG1.val[2] , ARG1.val[3] $
, ARG1.val[4], ARG1.val[5], ARG1.val[6], ARG1.val[7] $
, pts[1] , pts[2] , pts[3] ENDLOOP
ENDIF
$$ GOCIR
$$
- GOCYCL
-
Grammar: GOCYCL / val1, val2, val3, val4, val5, val6
Action:
Move to a cycle. This function is automatically called by the GOTO and GODLTA
functionswhen CYCLE.on = 1. The default action is null; this function must be defined
as a macro.
- (val1, val2, val3): XYZ position of the point to be reached in the workpiece
coordinate system
- ( val4 , val5 , val6 ): IJK position of the tool axis in the part coordinate
system
Relevant variables:
- CYCLE.on: cycle call
- STATE0.pts[6]: current position in the workpiece coordinate system
- ETAT0.xyzabc[9]: current position in machine coordinate system
Macro call: yes
Example: GOCYCL macro for NUM. $$
fedto = VECLIN(ARG1.val, CYCLE.fedto, ETAT1.pts[4]) XYZ = XYZ ( fedto[1] , fedto[2] , fedto[3] )
rapto = VECLIN(ARG1.val, CYCLE.rapto, ETAT1.pts[4]) approach = XYZ ( rapto[1] , rapto[2] , rapto[3] )
rtrcto = VECLIN(ARG1.val, CYCLE.rtrcto, ETAT1.pts[4]) retraction = XYZ ( rtrcto[1] , rtrcto[2] , rtrcto[3] )
$$
IF ( CYCLE.def = 0 ) THEN
deviation = approach[3] - CYCLE.zold IF ( deviation > 0.1 ) THEN
GCODE / 80.0
ZCODE / CYCLE.zold EOB
CYCLE.def = 1 ENDIF
ENDIF
$$
IF ( CYCLE.def ) THEN
cycle = 80 + CYCLE.mode GCODE / cycle, 1
IF ( CYCLE.irtrcto ) THEN CODE / 18 , retraction[3] CODE / 27 , approach[3] CYCLE.zold = retraction[3]
ELSE IF ( CYCLE.irapto ) CODE / 18 , approach[3] CYCLE.zold = approach[3] ENDIF
IF ( CYCLE.idwell ) CODE / 15 , CYCLE.dwell IF ( CYCLE.iincr ) CODE / 16 , CYCLE.incr[1] IF ( CYCLE.iincr ) CODE / 17 , CYCLE.incr[2] CYCLE.def = 0
ENDIF
$$
XCODE / XYZ[1] YCODE / XYZ[2] ZCODE / XYZ[3]
$$
$$ update
$$
STATE0.pts = VEC(ARG1.val[1], ARG1.val[2], ARG1.val[3]) FEED / 2
GCODE / 0, -1 UPDATE
$$
- GOCYCLX
-
Grammar: GOCYCLX / val1, val2, val3
Action:
Decomposition of displacements over a cycle. This function is called automatically by
the GOTO and GODLTA functions when CYCLE.on = 1 and CYCLE.auto = 1.
(val1,val2, val3): XYZ position of the target point in the part coordinate system
Relevant variables:
- CYCLE.on: cycle call
- CYCLE.auto: cycle breakdown
- ETAT0.pts[6]: current position in the workpiece coordinate system
- ETAT0.xyzabc[9]: current position in machine coordinate system
Macro call: no
- GODLTA
-
Grammar: GODLTA / val1
GODLTA / val1, val2, val3
GODLTA / val1, val2, val3, val4, val5, val6
Action:
Creation of a 3-axis or 5-axis linear motion. The motion can be linearized if LINTOL
mode is active. The feed rate is generated in the current mode or in reverse time mode
if MODE.inverse is active and if one of the rotary axes is engaged in work mode. The
output conditions comply with the current modes: ETAT0.mode (1=absolute,
0=incremental) ETAT0.supres (1=mandatory output, 0=output if necessary). The ETAT1
variable (previous state) is updated after the movement.
- (val1): distance traveled along the tool axis (ETAT1.pts+3) relative to the
previous position (ETAT1.pts)
- (val1, val2, val3): XYZ position increments of the target point in the workpiece
coordinate system relative to the previous position (ETAT1.pts)
- (val4, val5, val6): IJK orientation of the tool axis to be reached in the part
coordinate system.
The vector (val4, val5, val6) is normalized if it is not already normalized
before processing.
Relevant variables:
- ETAT0.pts[6]: current position in the part coordinate system
- ETAT0.xyzabc[9]: current position in the machine coordinate system
Macro call: yes
- GOFWD
-
Grammar: DGOFWD / circle , ON , line GOFWD
/ circle , TANTO , line GOFWD / cylndr , ON , n , plane
Action:
Create a circular path and call the GOCIR macro.
- circle: circle feature to be machined by the tool
- cylndr: cylinder feature machined by the tool line: stop line feature
- plane: stop plane feature
- ON: the end point lies on line or plane
- n: The endpoint is intercepted n times
- TANTO: The endpoint is the point of tangency between the line and the
circle
Relevant variables:
- ETAT0.pts: final position in the part coordinate system
- ETAT0.plane: interpolation plane
- ETAT0.move: movement type
- ETAT0.xyzabc: final position in machine coordinate system
Macro call: no
Example: circular interpolation in space, excerpt from an APT file.
INDIRV/ .00000, -1.00000, .00000
TLON,GOFWD/(CYLNDR/ 198.99785, -41.64583, -30.93251,$
.00000, .00000, -1.00000, 2.00000),ON,$ (PLANE/PERPTO,$
(PLANE/(POINT/ 198.99785, -41.64583, -30.93251),PERPTO,$
(VECTOR/ .000000, .000000, -1.000000)),$
(POINT/ 198.99785, -41.64583, -30.93251),$
(POINT/ 198.99785, -43.64583, -30.93251))
- GOHOME
-
Grammar: GOHOME/ALL,n
GOHOME
Action:
Generates a retraction movement to the machine origins, based on the parameters
defined by the ‘dégagement n=’ field in the data file or using the postprocessor +
retraction menus.
The retraction consists of a Z-axis movement followed by an XY movement.
If no argument is provided, the GOHOME.def parameter is used, defining the retraction
per operation. If ALL,1, the GOHOME.def1 parameter is used, defining the retraction
per tool. If ALL, 2, the GOHOME.def2 parameter is used for retraction at the end of
the program.
Relevant variables:
- GOHOME.code: specific G-code (G28 or G30 for FANUC)
- GOHOME.def[9]: movementvalues on each axis per operation
- GOHOME.def1[9]: movement values on each axis per tool
- GOHOME.def2[9]: movement values on each axis at the end of the program
- GOHOME.xyz[9]: value on each axis
- GOHOME.rapid:movements with G0
- GOHOME.from: the return point is the FROM point
- ETAT0.supres: Breakdown of movements after GOHOME
Macro call: no
- GOLFT
-
Syntax: GOLFT / circle, ON, line GOLFT / circle, TANTO, line GOLFT / cylndr, ON, n, plane
Action:
Creates a circular motion and calls the GOCIR macro.
- circle: circle entity traced by the
- cylndr tool: cylinder entity traced by the line tool: stop line entity
- plane: stop plane entity
- ON: the end point lies on line or plane
- n: The end point is intercepted n times
- TANTO: The endpoint is the point of tangency between the line and the circle
Relevant variables:
- ETAT0.pts: final position in the part coordinate system
- ETAT0.plane: interpolation plane
- ETAT0.move: movement type
- ETAT0.xyzabc: final position in the machine coordinate system
Macro call: no
Example: see GOFWD
- GONURBS
-
Syntax:
For a 3-axis NURBS: GONURBS / x, y, z, w, k
For a 5-axis NURBS: GONURBS / x, y, z, xh, yh, zh, w, dk
Action:
Creates a displacement on a NURBS curve.
- x,y, z: pole coordinates
- xh,yh, zh: coordinates of the curve’s pole
- w: weight of the pole or homogeneous coordinate
- dk: node of the incremental segment
Relevant variables: none
Macro call: Yes
Example: GONURBS function for SIEMENS
$$
IF ( NURBS.def = 1 ) THEN NURBS.def = 0
IF ( (STATE1.move = -2) & (STATE0.fedrat = FEDRAT.upm) ) RETURN
$$ EOB
CODE / 30 , 0 $$ BSPLINE CODE / 31, NURBS.deg $$ SD
= FCODE / FEDRAT.upm, 1 EOB
RETURN ENDIF
$$
IF ( ARG1.nval > 5 ) THEN
CODE / 32 , ARG1.val[4] $$ XH CODE / 33 , ARG1.val[5] $$ YH CODE / 34 , ARG1.val[6] $$ ZH CODE / 35 , ARG1.val[7] $$ PW CODE / 36 , ARG1.val[8] $$ PL
$$
ijk = VECDIF(ARG1.val[4], ARG1.val[1])
len = VECLEN(ijk)
ETAT0.pts[4] = VEC(ijk[1]/len, ijk[2]/len, ijk[3]/len) ETAT0.xyzabc[4] = ABC(ETAT0.pts[4], ETAT0.pts[5], ETAT0.pts[6]) BCODE /
ETAT0.xyzabc[5], -1
CCODE / ETAT0.xyzabc[6], -1
$$ ELSE
CODE / 35 , ARG1.val[4] $$ PW CODE / 36 , ARG1.val[5] $$ PL ENDIF
$$
STATE1.move = 1
STATE0.move = 1
STATE0.delete = 3
GOTO / ARG1.val[1], ARG1.val[2], ARG1.val[3]
STATE0.delete = 0
STATE1.move = -2
$$
- GOPOLY
-
Grammar: GOPOLY / x, y, z
Action:
Creation of a polynomial movement triggered by the POLY command.
X, y, z: coordinates of the end point
Relevant variables:
- POLY.on: activation
- POLY.tol[2]: values of tol1 and tol2
- POLY.x[4]: coefficients on X = POLY.x[1] + t*POLY.x[2] + t2*POLY.x[3] +
t3*POLY.x[4]
- POLY.y[4]: coefficients on Y = POLY.y[1] + t*POLY.y[2] + t2*POLY.y[3] +
t3*POLY.y[4]
- POLY.z[4]: coefficients on Z = POLY.z[1] + t*POLY.z[2] + t2*POLY.z[3] +
t3*POLY.z[4]
- POLY.len:length of the curve
Macro call: yes
Example: GOPOLY function for NUM. $$
ICODE / POLY.len
xyz = XYZ(ARG1.val[1],ARG1.val[2],ARG1.val[3])
dx = ABS(xyz[1] - ETAT1.xyzabc[1]) dy = ABS(xyz[2]
- ETAT1.xyzabc[2]) dz = ABS(xyz[3] - ETAT1.xyzabc[3])
$$
move = 0
IF ( dx > 0.005 ) THEN
move = 1 XCODE
CODE / 31 , POLY.x[2] CODE / 32 , POLY.x[3] CODE / 33 , POLY.x[4] CODE / 37 , 0.0
ENDIF
$$
IF ( dy > 0.005 ) THEN
move = 1 YCODE
CODE / 33, POLY.y[2] CODE / 34, POLY.y[3] CODE / 35, POLY.y[4] CODE / 38, 0.0
ENDIF
$$
IF ( dx > 0.005 ) THEN
move = 1 ZCODE
CODE / 35, POLY.z[2] CODE / 36, POLY.z[3] CODE / 37, POLY.z[4] CODE / 39, 0.0
ENDIF
$$
IF ( move ) THEN GOPOLY
ELSE
UPDATE ENDIF
$$
- GORGT
-
Grammar: GORGT / circle, ON, line GORGT
/ circle, TANTO, line GORGT / cylndr, ON, n, plane
Action:
Creates a circular motion and calls the GOCIR macro.
- circle: circle feature contoured by the
- cylndr tool: a cylinder entity traced by the line
- tool: stop lineentity
- plane: stop plane entity
- ON: the end point lies on the line or on the plane
- TANTO: the endpoint is the point of tangency between the line and the
circle
Relevant variables:
- ETAT0.pts: final position at the part reference point
- ETAT0.plane: interpolation plane
- ETAT0.move: movement type
- ETAT0.xyzabc: final position in the machine coordinatesystem
Macro call: no
example: see GOFWD
- GOTO
-
Syntax:
GOTO / val1, val2, val3
GOTO / val1, val2, val3, val4, val5, val6
Action:
Creates a 3-axis or 5-axis linear movement. The movement can be linearized if LINTOL
mode is active. The feed rate is generated in the current mode or in reverse time mode
if MODE.inverse is active and if one of the rotary axes is engaged in work mode. The
output conditions comply with the current modes: ETAT0.mode (1=absolute,
0=incremental) ETAT0.supres (1=mandatory output, 0=output if necessary). The ETAT1
variable (previous state) is updated after the movement.
- (val1, val2, val3): XYZ position of the target point in the part coordinate
system
- (val4, val5, val6): IJK orientation of the tool axis to be reached in the part
coordinate system.
The vector (val4, val5, val6) is normalized if it is not already normalized
before processing.
Relevant variables:
- ETAT0.pts[6]: current position in the part coordinate system
- ETAT0.xyzabc[9]: current position in the machine coordinate system
Macro call: yes
Example: excerpt from an APT file
RAPID
GOTO / 44.03520, 48.41007, 50.00000, .000000, .000000, 1.000000 PPRINT CONTACT POINT MOVEMENT
FEDRAT/ 1250.0000
GOTO / 48.95469, 47.51641, 49.00000, .000000, .000000, 1.000000 PPRINT SIDE MOVEMENT ON CURVE
FEDRAT/ 1250.0000
GOTO / 46.78548, 59.09901, 48.00000, .000000, .000000, 1.000000
- HOLDER
-
Grammar: HOLDER / val1, val2, val3, val4, val5, val6, val7, val8, val9, val10, val11, val12
Action:
Definition of the tool holder using up to 6 pairs of values.
- (val1,val2) = diameter and height of the firsttool holder ring
- (val11,val12) = diameter and height of the6thtool-holding ring
Relevant variables:
- HOLDER.n: number of defined rings
- HOLDER.d[] = val1,val3, val5, val7, val9, val11
- HOLDER.h[] = val2, val4, val6, val8, val10, val12
Macro call: no
- HOLDLIB
-
Syntax: HOLDLIB / val1
Action:
Copies the toolholder definition to the tool library, including its reference.
val1 = tool number
Relevant variables: HOLDLIB.ref[]
Macro call: no
- HOLDREF
-
Grammar: HOLDREF / num “,” ref
Action:
Saves the tool holder reference.
- num= tool number
- ref = tool holder reference
Relevant variables:
- TOOLIB.max: number of tools used
- TOOLIB.num[] = num
- HOLDLIB.ref[]: fields are separated by the ‘|’ character
Macro call: no
- HOCOM
-
Syntax: HOCOM / ‘tool holder comment’
Action:
Definition of the tool holder comment and copy to HOLDER.com
Relevant variables: none HOLDER.ref
Macro call: yes
- HPRINT
-
Syntax: HPRINT / ‘tool holder name’
Action:
Defines the tool holder and copies it to HOLDER.ref
Relevant variables: none HOLDER.ref
Macro call: yes
- HTCLOSE
-
Syntax: HTOPEN / ‘HTML file to create’
Action:
Defines the HTML file to be created. If the file name is incomplete, it is created in
the NCTAPE directory. All fields in the form $***$ will be replaced either with spaces
or with their values using the HTSET function.
Relevant variables: none
Macro call: no
Example: Creating a tool
record HTOPEN / dir[1,slash] + "fiches/fiche.htm" HTSET / "nprog1" , PART.no
$$ i=0 k=0
#LAB1 i = i+1
IF ( i > tool ) JUMPTO LAB2
j = 0
#LAB3 j = j+1
IF ( nout[i] ≠ nout[j] ) JUMPTO LAB3 IF ( j < i ) JUMPTO LAB1
$$
text = "T" + FORMAT(2, nout[i]) HTSET / "T", text, 1
$$
text = "H" + FORMAT(2,hout[i]) HTSET / "H", text
$$
text = " "
IF ( dout[i] ) text = "D" + FORMAT(2,dout[i]) HTSET / "D" , text
$$
text = " "
IF ( lout[i] ) text = FORMAT(1,lout[i]) HTSET
/ "L" , text
$$
HTSET / "ref", STRXGET(tout, i, "|")
$$ JUMPTO LAB1 #LAB2
$$
len = STRLEN(htref)
text = dir[1,slash] + "files/" LOOP(i,1,1,len)
IF ( STRCMP(htref[i,i],"/") = 0 ) THEN
text = text + "-" ELSE
text = text + htref[i,i] ENDIF
ENDLOOP
$$
IF ( STRLEN(htind) ) text = text + "-" + htind IF ( STRLEN(htop) ) text = text + "-" + htop HTCLOSE
/ text + ".htm"
$$
tool sheet result
- HTOPEN
-
Syntax: HTOPEN / ‘HTML reference file’
Action:
Defines the HTML file to be populated. If the file name is incomplete, it is searched
for in the NCTAPE directory.
Relevant variables: none
Macro call: no
Example: See HTCLOSE
Example of areference HTML file.
- HTSET
-
Grammar: HTSET / ‘name1’, ‘name2’, val1
Action:
Replaces the $name2$ field in the reference HTML file with the $name1$ field. val1 =
1: repeats the table row containing the field.
Relevant variables: none
Macro call: No
Example: see HTCLOSE
- ICODE
-
Syntax: ICODE / val1, val2
Action:
Writes an I code (center of the circle) with the value val1 to the ribbon file,
subject to the output conditions val2.
- val2 = 0 The code is generated if necessary.
- val2 = 1 The code is generated regardless.
Relevant variables: CODE.used[12]
Macro call: no
Example: see KCODE
- IF
-
Syntax: IF ( test )
IF statement (test) THEN
Action:
If the test is true, the following statement or the following lines are executed.
Test can take the following forms:
- (val) true if val is not equal to
- 0 ( val1 = val2) true if val1 equals val2
- ( val1 # val2) true if val1 is not equal to val2
- ( val1 > val2) true if val1 is greater than val2
- ( val1 < val2) true if val1 is less than val2
- (val1 >= val2) true if val1 is greater than or equal to val2
- (val1 <= val2) true if val1 is less than or equal to val2
- (test1 & test2) true if both test1 and test2 are true
- (test1 | test2) true if either test1 or test2 is true
Variables involved:none
Macro call: no
example:
IF ( a = 1 ) b = 2
$$
IF ((a = 1) & (b = 2)) THEN
c = 3 ENDIF
- INDEX
-
Grammar:
INDEX / val
INDEX / val, NOMORE
INDEX / val, n1, n2
Action:
Creates a group of lines delimited by INDEX / val and INDEX / val, NOMORE. Val
defines the name of the group, which can be reused by the COPY statement. In the case
of a ribbon file, places a label named val before the ISO line, which can be used with
the LABEL statement; if n1 and n2 are specified, creates a group named val from line
n1 to line n2.
- val: index number
- n1: first sequence number (tape)
- n2: second sequence number (ribbon)
Affected variables: none
Macro call: yes
Example: Excerpt from the GCODE macro for G77 from the NUM to APT converter.
ELSE IF ( ARG1.val[1] = 77 ) THEN
$$
$$ G77 N*** N***
$$
ncode = ISODEF(1)
IF ( ncode < 2 ) RETURN
IF ( ISOPOS(1,ncode-1) < ARG1.val[4] ) RETURN
val1 = ISOVAL(1, ncode - 1) val2 = ISOVAL(1, ncode) index_max = index_max + 1 INDEX / index_max, val1, val2 COPY / index_max, SAME RETURN
$$
- INDIRV
-
Grammar: INDIRV / val1, val2, val3
Action:
Definesthe direction of movement for the next instruction (GOLFT, GOFWD ,GORGT...).
(val1,val2, val3): direction vector
Relevant variables: none
Macro call: no
Example: see GOFWD
- INIT
-
Grammar: none
Action:
This function is a macro called when the APT, CLFILE, or NCTAPE file is opened. It
contains the postprocessor initialization commands.
Related variables: none
Macro call: Yes
Example: INIT macro for the HEIDENHAIN postprocessor.
$$
SEARCH / ALL
$$
WRITE "0 BEGIN PGM " + UPPER(SGP.output) + " MM"
name = LOWER(SGP.output) + ".h" RENAME / name
$$
SEQNO / ON SEQNO / INCR, 1
SEQNO.max = 320000
$$
LINTOL / 0.01, 1.0, ON
$$
xmin = SEARCH.xyzmin[1] ymin = SEARCH.xyzmin[2] zmin = SEARCH.xyzmin[3]
xmax = SEARCH.xyzmax[1] ymax = SEARCH.xyzmax[2] zmax = SEARCH.xyzmax[3]
NWRITE / " BLK FORM 0.1 Z X" + FORMAT(1,xmin) + " Y" + FORMAT(1,ymin) $
+ " Z" + FORMAT(1,zmin)
NWRITE / " BLK FORM 0.2 X" + FORMAT(1,xmax) + " Y" + FORMAT(1,ymax) $
+ " Z" + FORMAT(1,zmax)
$$
CUTCOM.out = 0
SPINDL.val = 1000
- INSERT
-
Grammar: INSERT / ‘text’
Action:
Writes text to the ribbon file, optionally adding the block number; no analysis is
performed on the character string.
Related variables: none
Macro call: Yes
- INTOL
-
Grammar: INTOL / val
Action:
Definition of the general calculation tolerance, circle segmentation tolerance, or
NURBS segmentation tolerance
Related variables: INTOL = val
Macro call: Yes
- JCODE
-
Syntax: JCODE / val1, val2
Action:
Writes a J code (center of the circle) to the ribbon file with the value val1,
subject to the output conditions val2.
- val2 = 0 The code is generated if necessary.
- val2 = 1 The code is generated regardless.
Related variables: CODE.used[13]
Macro call: no
Example: see KCODE
- JUMPTO
-
Syntax: JUMPTO label
Action:
Jump to the #label, without executing the instructions. The label may be located
before or after the current position. The label must begin with the # character at the
start of the line.
Affected variables: none
Macro call: no
Example: i = 0
#lab1 i = i + 1
PRINT "array " i " value = " tab[i] IF ( i
< 6 ) JUMPTO lab1
|