APT Instructions K-O

This section provides basic information about the APT Instructions for for DELMIA SGPost processor.

Most of the examples are taken from the standard postprocessors provided.

KCODE

Grammar:

KCODE / val1, val2

Action:

Writes a K 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 must be generated

Relevant variables:CODE.used[14]

Macro call: no

Example: NUM’s GOCIR macro for helical interpolation.

$$
IF ( ARG("TURN") ) KCODE / ABS(VAL("TURN",2)), 1 GOCIR
$$

LABEL

Grammar:

LABEL / code, num, direction

Action:

Reverse postprocessor only. Moves to the1stline of the file containing the address code ‘code’ and value num.

  • Ifcode = -1, the function positions itself at the INDEX corresponding to number num
  • If direction = 0, the function places the decoding before the line containing the code.
  • If direction = 1, the function places the decoding after the line containing the code.
  • Ifdirection = -1, the function places the decoding after the jump definition line.

Variables involved: none

Macro call: no

LINE

Syntax:

LINE / val1, val2, val3, val4, val5, val6 LINE / val1, val2, val3, point2
LINE / point1, point2

Action:

Defines a line entity using these coordinates in the part coordinate system or using 1 or 2 points.

  • (val1, val2, val3): XYZ coordinates of the first
  • point point1: 1st point
  • (val4, val5, val6): XYZ coordinates of the second
  • point point2: secondpoint

Variables involved: none

Macro call: yes

Example: Definition of circular interpolation in APT

TLON,GOFWD/	(CIRCLE/	-22.55961,	35.93804,	48.00000,$
10.00000),ON,(LINE/ -22.55961,	35.93804,	48.00000,$
-32.45586,	37.37480,	48.00000)

LINTOL

Syntax:

LINTOL / val1, val2 
LINTOL / ON LINTOL
/ OFF

Action:

Enables or disables the linearization process for rotational movements in 4 or 5 axes. Angular movementsare decomposed to comply with tolerance val1 for a working movement or val2 for a rapid movement. The calculations take into account the pivot distances (AXE0.pivot, AXE1.pivot, AXE2.pivot) and, in the case of a tool head, the tool length. The “reverse time” feed mode is automatically enabled and disabled if MODE.inverse = 1.

To account for the workpiece’s arbitrary position on the rotary table relative to its center, you can define LINTOL.exc: maximum allowed eccentricity distance. You can enable or disable linearization of a rotary axis using AXEn.lintol (default is 1).

  • If LINTOL.mode = 0, only linearization of the tool tip’s displacement is active.
  • If LINTOL.mode = 1, only lateral linearization at height LINTOL.h is active.
  • If LINTOL.mode = 2, both of the previous modes are active
  • IfLINTOL.mode = 3 and there is one rotary table: cylindrical linearization is enabled

Relevant variables:

MODE.inverse = 0, 1, 2,
3 AXE0.pivot[3]
AXE0.lintol = 0, 1
AXE1.pivot[3]
AXE1.lintol = 0, 1
CUTTER.h
LINTOL.on
LINTOL.val[1] = val1 (default = 0.1)
LINTOL.val[2] = val2 (default = 1.0)
LINTOL.mode
LINTOL.h
LINTOL.exc

Macro call: yes

Example: Machining asquare with an inclined blank.

Tool bottom cutting: LINTOL.mode = 0

out -> ( )
out -> ( MACHINE = FIDIA ) out
-> N1G90G40G80
in -> FROM / 0, 0, 100, 0, 0, 1 in -> RAPID
in -> GOTO / 50, 50, 0, 1, 1, 1 out -> N2G00C135.
out -> N3G00X12.5Y12.5Z75.A13.684 out -> N4G00X25.Y25.Z50.A27.368 out -
> N5G00X37.5Y37.5Z25.A41.052 out ->
N6G00X50.Y50.Z0.A54.736
in -> GOTO / 50, -50, 0, 1, -1, 1 out ->
N7G01Y37.5C123.75 out -> N8Y25.C112.5 out
-> N9Y12.5C101.25 out -
> N10Y0.C90.
out -> N11Y-12.5C78.75 out -> N12Y-25.C67.5 out
-> N13Y-37.5C56.25 out -
> N14Y-50.C45.
in -> GOTO / -50, -50, 0, -1, -1, 1 out ->
N15X37.5C33.75
out -> N16X25.C22.5 out
-> N17X12.5C11.25 out -
> N18X0.C0.
out -> N19X-12.5C-11.25 out
-> N20X-25.C-22.5
out -> N21X-37.5C-33.75 out
-> N22X-50.C-45.
in -> GOTO / -50, 50, 0, -1, 1, 1 out ->
N23Y-37.5C-56.25
out -> N24Y-25.C-67.5 out
-> N25Y-12.5C-78.75 out -
> N26Y0.C-90.
out -> N27Y12.5C-101.25 out -> N28Y25.C-112.5 out
-> N29Y37.5C-123.75 out -
> N30Y50.C-135.
in -> GOTO / 50, 50, 0, 1, 1, 1 out ->
N31X-37.5C-146.25
out -> N32X-25.C-157.5 out
-> N33X-12.5C-168.75 out -
> N34X0.C-180.
out -> N35X12.5C-191.25 out -> N36X25.C-202.5 out
-> N37X37.5C-213.75 out -
> N38X50.C-225. out -> N39M02

Side cutting: LINTOL.mode = 1

out -> ( )
out -> ( MACHINE = FIDIA ) out
-> N1G90G40G80
in -> FROM / 0, 0, 100, 0, 0, 1 in -> RAPID
in -> GOTO / 50, 50, 0, 1, 1, 1 out -> N2G00C135.
out -> N3G00X12.5Y12.5Z75.A19.471 out -> N4G00X25.Y25.Z50.A35.264 out -
> N5G00X37.5Y37.5Z25.A46.686 out ->
N6G00X50.Y50.Z0.A54.736
in -> GOTO / 50, -50, 0, 1, -1, 1 out -> N7G01Y37.5A51.34C126.87 out ->
N8Y25.A48.19C116.565
out -> N9Y12.5A45.868C104.036 out
-> N10Y0.A45.C90.
out -> N11Y-12.5A45.868C75.964 out -> N12Y-25.A48.19C63.435 out -
> N13Y-37.5A51.34C53.13 out -> N14Y-50.A54.736C45.
in -> GOTO / -50, -50, 0, -1, -1, 1 out ->
N15X37.5A51.34C36.87
out -> N16X25.A48.19C26.565 out -
> N17X12.5A45.868C14.036 out -> N18X0.A45.C0.
out -> N19X-12.5A45.868C-14.036 out -> N20X-25.A48.19C-26.565 out -
> N21X-37.5A51.34C-36.87 out -> N22X-50.A54.736C-45.
in -> GOTO / -50, 50, 0, -1, 1, 1 out ->
N23Y-37.5A51.34C-53.13
out -> N24Y-25.A48.19C-63.435 out -
> N25Y-12.5A45.868C-75.964 out -> N26Y0.A45.C-90.
out -> N27Y12.5A45.868C-104.036 out -> N28Y25.A48.19C-116.565
out -> N29Y37.5A51.34C-126.87 out
-> N30Y50.A54.736C-135.
in -> GOTO / 50, 50, 0, 1, 1, 1 out -> N31X-37.5A51.34C-143.13 out -> N32X-25.A48.19C-153.435 out -> N33X-12.5A45.868C-165.964 out -> N34X0.A45.C-180.
out -> N35X12.5A45.868C-194.036 out -> N36X25.A48.19C-206.565 out -
> N37X37.5A51.34C-216.87 out -> N38X50.A54.736C-225.
out -> N39M02
Note how A changes to maintain the lateral surface area.

LOOP

Function:

LOOP( index , start , increment , end )

Action:

Repetition loop with index change.

Relevant variables: none

Example: Excerpt from the FINI file, list of tools.

$$ LOOP(i,1,1,TOOLIB.max)
text = " diameter = " TOOLIB.D[i]
PRINT "	> tool " FORMAT(2,TOOLIB.num[i]) + text
ENDLOOP
$$

MACDEF

Grammar:

MACDEF / "n, type, name" MACDEF
/ "postpro, type, name"

Action:

Defines a postprocessor data directory or file identified by its number n or its name postpro.

  • If type = DATAGEN name, it represents the name of the global data file.
  • If type = DATALIB name, it represents the name of the library data file.
  • If type = DATA name, it represents the name of the postpro data file.
  • If type = MACGEN, name represents the name of the global directory.
  • If type = MACLIB, name represents the name of the library directory.
  • If type = MACRO, name represents the name of the postpro directory.

Affected variables: none

Macro call: no

MATRIX

Syntax:

MATRIX / val1, val2, val3, val4,	, val11, val12
MATRIX / TRANSL, val4, val8, val12 MATRIX / XYROT, val13
MATRIX / YZROT, val14 MATRIX / ZXROT, val15
mat = MATRIX / address

Action:

Definition of a matrix entity. This instruction is generally used with TRACUT.

  • |val1, val2, val3 |
  • |val5, val6, val7 |: orientation matrix
  • |val9, val10, val11 |
  • (val4 , val8 , val12 ): translation vector
  • val13: the matrix is defined by rotating val13 around Z
  • val14: the matrix is defined by rotation of val14 about X
  • val15: the matrix is defined by rotation of val15 around Y

Retrieving a matrix defined by its address: mat = MATRIX / address, for example, to determine the corresponding transformation type.

Variables involved: none

Macro call: no

Example: Rotate thepart coordinates by 90 around the Y axis.

TRACUT / ( MATRIX / ZXROT , 90 ) GOTO
/ ....
...
TRACUT / NOMORE

MBOX

Grammar:

MBOX / ON 
MBOX / OFF

Action:

Displays a checkbox; select it or leave it unselected. This command must appear after the MENU/ON instruction and before MENU / OFF, following an MTEXT instruction.

The result of the acquisition is accessible via the MGET() function, which returns ON or OFF depending on the state of the checkbox.

Related variables: none

MCAM

Grammar:

MCAM / ‘text’

Action:

Conversion of the MasterCAM CLFILE file to Aptsource format for processing with SGTMP.

Text = name of the Aptsource file created.

Relevant variables: none

MCODE

Syntax:

MCODE / val1, val2, val3, val4

Action:

Writes an M code with the value val1 to the ribbon file, subject to the output conditions val2, val3, and val4.

The following variables are updated:

  • SPINDL.on= 0, 1, 2: val1 = 5, 3, 4, 19
  • SPINDL.direction= 0 or 1: val1 = 0, 1
  • SPINDL.irange= 1, 2, 3, 4: val1 = 41, 42, 43, 44
  • COOLNT.on = 0, 1: val1 = 9, 7, 8
  • COOLNT.mode = 0, 1: val1 = 7, 8
  • COOLNT.center = 0,1: val1 = 89, 88
  • CLAMP.a = 0,1: val1 = 11, 10
  • CLAMP.b = 0.1: val1 = 13, 12
  • CLAMP.c = 0.1: val1 = 15, 14
  • 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 SPINDL and COOLNT variables are updated
  • val3 = 0 The code is generated in the block
  • val3 = 1 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 or rotary axis
  • val3 = 5 The code is generated in a block containing a rotary axis
  • val3= 11 The 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 B-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

The address of the M-code is defined by the variable CODE.used[17]. TheMCODE function uses the lookup table in the controller file, which is accessible via the variable MCODE.val[] or configured in the data file.

mcode= 3 , 3
mcode = 5, 5
mcode = 10, 21
For each M code generated, the time is incremented by a specific value defined in MTIME.val[] or configured in the data file.
mtime = 3, 20
mtime = 5, 10
mtime = 10, 0.1

Relevant variables:

SPINDL 
COOLNT 
CLAMP.a,b,c 
MCODE.val[] 
MTIME.val[]
CODE.used[17] 
ETAT0.time

Macro call: No

Example: Excerpt fromthe SPINDL macro

$$
IF ( SPINDL.on .EQ. 1 ) THEN
IF ( val > 0.01 ) SCODE / val , 1.0 IF
( SPINDL.direction = 1 ) THEN MCODE / 4.0 , 1.0
ELSE
MCODE / 3.0, 1.0 ENDIF
EOB ENDIF
$$

MDATA

Syntax:

MDATA / ‘data’

Action:

Data: string displayed in the menu’s data field; the display length of the string can be defined within this string. Example: MDATA / "10,0.0".

This command must appear after the MENU / ON statement and before MENU / OFF, following an MTEXT statement. You can create a selection menu by defining a list of options separated by the ‘|’ character. In this case, the display length represents the default option.

The result of the input is accessible via the MGET() function, which returns the entered or selected character string.

Related variables:none

Example of a selection menu:

MENU / ON
MTEXT / "Symmetry about X" MDATA / "no|yes"
MTEXT / "Symmetry along Y" MDATA / "no|yes"
MENU /OFF
text = MGET(1)
PRINT "***" text "***"
IF ( text[1,1] = "o" ) symmetry = "x"
IF ( text[1,1] = "O" ) symmetry = "x" text = MGET(2)
IF ( text[1,1] = "o" ) symmetry = "y"
IF ( text[1,1] = "O" ) symmetry = "y"

MENU

Grammar:

MENU / n, w 
MENU / ON MENU
/ OFF MENU / 
CENTER

Action:

Creating an operator access menu.

  • n: menunumber
  • w: minimum menu width
  • ON: start of definition
  • OFF: end of definition and execution
  • CENTER: the menu is displayed in the center of the screen

Relevant variables: none

Macro call: no

Example: Excerpt from a punching INIT file.

$$
quick	= 30
punch = 30
pulse = 4050 fedrat
= fast x_recovery = 1250.0
reset_y = 750.0
reset_d = 2000.0
max_reset = 750.0
clamp_recovery = 0.0
MENU / 1, 350, ON
MTEXT / "Program number? : " MDATA /
FORMAT(2,1) + " "
MTEXT / "Punching feed rate? : "
MDATA / FORMAT(2,punch)
MTEXT / "Pulse duration? : " MDATA
/ FORMAT(2,pulse) MTEXT /
"Repetition X?	: "
MDATA / FORMAT(1,reposition_x)
MTEXT / " Y reposition?	: "
MDATA / FORMAT(1,reprise_y)
MTEXT / "Repositioning distance? : "
MDATA / FORMAT(1,reprise_d)
MTEXT / "Maximum clamp offset? : "
MDATA / FORMAT(1,reprise_max)
 
MENU / OFF
text = MGET(1)
number = STRVAL(text)
IF ( number = 0 ) number = 1
text = MGET(2)
stamp = STRVAL(text) text
= MGET(3)
pulse = STRVAL(text) text =
MGET(4)
x_reset = STRVAL(text)
text = MGET(5)
y_reset = STRVAL(text)
text = MGET(6)
reprise_d = STRVAL(text)
text = MGET(7)
max_recovery = STRVAL(text)
$$

The graphical result for the MENU / OFF command:

MTEXT

Grammar:

MTEXT / ‘text’

Action:

Text: string displayed in the menu’s text field; the display length of the string can be defined within this string

Example: MTEXT / "10, length"

This command must appear after the MENU / ON statement and before MENU / OFF, and defines a new menu item each time.

Related variables: none

Example: See MENU

MULTAX

Grammar:

MULTAX 
MULTAX / ON 
MULTAX / OFF

Action:

Enables or disables 4- or 5-axis mode.

Relevant variables:

  • MULTAX.on 1 = mode active , 0 = mode inactive
  • STATUS0.multax 1 = active mode , 0 = inactive mode

Macro call: yes

Example: excerpt from an APT file

PPRINT	NC SET = U1
$$U1
$$*CATIA0
$$*AXS1
$$	1.00000	.00000	.00000	.00000
$$	.00000	1.00000	.00000	.00000
$$	.00000	.00000	1.00000	.00000
MULTAX LOADTL / 3
CUTTER/ 10.000000, 5.000000, .000000, 5.000000, .000000,$
.000000, 30.000000
SPINDL / 2500
FEDRAT / 1250.0000
FROM /	.00000,	.00000, 100.00000, .000000, .000000, 1.000000PT	1
PPRINT TRANSACTION TIP

NCTAPE

Grammar:

If reverse postprocessor 
NCTAPE / 'filename' , n1 , n2 
Otherwise
NCTAPE / 'filename'

Action:

If reverse postprocessor

Opens a RUBAN file for reading, specified by its name. This file will also be decoded from block number n1 to block number n2 if n1 and n2 are specified. This file is not searched when performing a search at the top level.

Else copies the entire RUBAN file specified in the opened RUBAN file.

Relevant variables: none

Macro call: no

Example for the inverse postprocessor: translation of G77 in the GCODE macro for the NUM-to-APT converter.

ELSE IF ( ARG1.val[1] = 77 ) THEN
$$
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)
$$
#LAB2 IF ( i > max_index ) JUMPTO LAB1
IF ( (start_index[i] = val1) & (end_index[i] = val2) ) THEN WRITE
/ "COPY / " + i " , SAME" RETURN
ENDIF
i = i + 1 JUMPTO LAB2 #LAB1
index_max = index_max + 1 start_index[index_max] = val1 end_index[index_max] = val2
$$
WRITE / "INDEX / " + index_max
NCTAPE / SGP.input ", " FORMAT(2,val1) " , " FORMAT(2,val2)
WRITE / "INDEX / " + index_max + " , NOMORE"
$$

Example for the direct postprocessor: copying subprograms to the end of the file.

$$
$$	subroutine
$$ LOOP(i,1,1,index_max) IF ( sprog[i] = 2 ) THEN
NCTAPE / SGP.output "." FORMAT(2,i) DELETE / SGP.output "." FORMAT(2,i) ENDIF
ENDLOOP
$$

NEWS

Grammar:

NEWS / 'filename'

Action:

Creates a log file containing information from the graphical window, starting with the NEWS commandand continuing until the end of the file. By default, the directory is the same as that of the ISO file.

Relevant variables: none

Macro call: no

NURBS

Syntax:

NURBS / ON, val1, val2, val3 
NURBS / OFF

Action:

Definition of a NURBS curve by its poles; the curve is generated with the NURBS / OFF command.

  • ON: start of definition
  • val1:type of NURBS generated; 3 = 3-axis NURBS and 5 = 5-axis NURBS
  • val2: degree of the curve = 2 or 3
  • val3:offset of the tool orientation curve for 5-axis cases; the NURBS.mode variable defines the possible output type
  • NURBS.mode= 0: conversion to point-to-point, call the GOTO macro NURBS.mode = 1: conversion to ASPLINE and BSPLINE NURBS, call the macro GOPOLY
  • NURBS.mode= 2: conversion to NURBS, calls the GONURBS macro
  • NURBS.mode= 3: conversion to a polynomial of the same degree, call the GOPOLY macro.

Poles and nodes are defined using the POLE instruction.

Relevant variables:

  • NURBS.on = 0 or 1
  • NURBS.mode= 0 or 1 or 2
  • NURBS.type = val1
  • NURBS.deg = val2
  • NURBS.offset = val3
  • NURBS.len = length of thecurve

Macro call: yes

Example: BEGIN macro defining NURBS with CATIA V5.

$$
text1 = STRXGET(ARG0,1,"(,)")
IF ( text1 # "NURBS_SIEMENS" ) RETURN
$$
text2 = STRXGET(ARG0,2,"(,)")
degrees = STRVAL(text2[3,99])
$$
text3 = STRXGET(ARG0,3,"(,)") FEDRAT / STRVAL(text3[3,99])
$$
text4 = STRXGET(ARG0,4,"(,)") IF ( text4 = "AXIS=VAR" ) THEN
type = 5
 
text5 = STRXGET(ARG0,5,"(,)") NURBS.offset = STRVAL(text5[8,99]) ELSE
type = 3
NURBS.offset = 0.0
STATE1.pts[4] = STRVAL(text4[6,99]) text5 = STRXGET(ARG0,5,"(,)") STATE1.pts[5] = STRVAL(text5)
text6 = STRXGET(ARG0,6,"(,)") ETAT1.pts[6] = STRVAL(text6)
STATE0.pts[4] = VEC(STATE1.pts[4], STATE1.pts[5], STATE1.pts[6]) ENDIF
$$
nurbs_knod = 0.0
NURBS / ON , type , degree
$$

NWRITE

Grammar:

NWRITE / 'string'

Action:

Writes a string to a block in the ribbon file using the block number. This string can consist of numeric or text variables.

Relevant variables: none

Macro call: no

Example: NWRITE / " X" + X + " T" + FORMAT(1,T) out --> N10 X1.0000 T2

OFSTNO

Grammar:

OFSTNO / val

Action:

Definition of the machine origin. No default action; all actions must be performed in the OFSTNO macro.

Relevant variables: OFSTNO= val

Macro call: yes

Example: OFSTNO macro for FANUC

$$
OFSTNO = ARG1.val[1]
IF ( ARG1.val[1] = 1 ) GCODE / 54.0 
IF ( ARG1.val[1] = 2 ) GCODE / 55.0 
IF ( ARG1.val[1] = 3 ) GCODE / 56.0 
IF ( ARG1.val[1] = 4 ) GCODE / 57.0 
IF ( ARG1.val[1] = 5 ) GCODE / 58.0 
IF ( ARG1.val[1] = 6 ) GCODE / 59.0
$$

OPEN

Grammar:

OPEN / "filename"

Action:

Opens another destination file. This statement can be used with the BREAK or INDEX statement to create subprograms. If the file name is relative, the file will be located in the NCTAPE directory.

  • GOTO/ x, y, z Write to the tape file
  • OPEN / "test" Open the 'test' file GOTO / x, y, z Write to the 'test' file
  • CLOSE Closing the 'test' file GOTO / x, y, z Writing to the 'test' file

Variables involved:none

Macro call: no

Example:see BREAK

OPEN1, OPEN2, OPEN3, OPEN4, OPEN5

Syntax:

OPEN1 / "filename"		default directory = NCTAPE 
OPEN2 / "filename"	 default directory = APT 
OPEN3 / "filename"	default directory = NCTAPE 
OPEN4 / "filename"	 default directory = NCTAPE 
OPEN5 / "filename"	 default directory = NCTAPE

Action:

Opens a second nctape or apt file for writing. Each line will be written using the WRITEn command. If the file name is relative, the file will be placed in the NCTAPE directory if n=1, 3, 4, or 5, and in the APT directory if n=2.

  • OPEN4 / "test" Open the file 'test' WRITE4 / "I am in test" Write to the file 'test'
  • CLOSE4 Closes the file 'test'

Relevant variables: none

Macro call: No

Example: Excerpt from the INIT macro for AGIE SBL format.

$$
RENAME / UPPER(SGP.output[1,8]) + ".SBL"
OPEN1 / UPPER(SGP.output[1,8]) + ".SBR" version
= "AGIE.VERSION 4,02.03.00;"
WRITE1 / version
WRITE1 / ".LONGNAME " SGP.output ";"
$$

OPENR

Grammar:

OPENR / "filename"

Action:

Open a file for reading. Each line is read using READF. If the file name is relative, the default directory is APT.

Relevant variables: none

Macro call: no

Example: see READF

OPER

Grammar:

OPER / n

Action:

Retrieves information about operation n. An operation is defined by the OPTYPE command for CATIA or the TOOL PATH/ command for Unigraphics. The following variables are populated.

  • OPER.num: tool for the operation
  • OPER.time: machining time for the operation
  • OPER.dist: machining distance of the operation
  • OPER.ncycle: number of drilling operations
  • OPER.xyzmin: minimum machine axis values
  • OPER.xyzmax: maximum machine axis values
  • OPER.start[]: 0 (G0) or 1 (G1) — feed mode for thefirstmovement of the operation
  • OPER.last[]: 0 (G0) or 1 (G1) — feed mode for the last movement
  • OPER.fedmax: number of different feed rates for the operation.
  • OPER.fedrat[]: list of feed rates for the operation (requires FEDLST.on = 3)
  • OPER.ref[]: Operation comment

Relevant variables: see above

Macro call: yes

OPRINT

Syntax:

OPRINT / ‘comment’

Action:

Defines and writes a comment to the ribbon file; the comment will be enclosed by the characters defined in the ‘comment = 1’ field of the data file

Relevant variables: none

COMMENT1.start 
COMMENT1.end

Macro call: yes

OPSKIP

Syntax:

OPSKIP / ON 
OPSKIP / OFF

Action:

Enables or disables optional skipping. Blocks will be preceded by the '/' character.

Relevant variables: OPSKIP.on

Macro call: yes

ORIGIN

Syntax:

ORIGIN / val1, val2, val3

Action:

Defines the new program origin. Machine coordinates will be defined relative to the point (val1, val2, val3).

Related variables:

  • TRANS[1] = -val1
  • TRANS[2] = -val2
  • TRANS[3] = -val3

Macro call: Yes

OUTPUT

Syntax:

OUTPUT / ON 
OUTPUT / OFF

Action:

Enable or disable writing to the ISO file

Related variables: OUTPUT.on

Macro call: no

OUTTOL

Syntax:

OUTTOL / val

Action:

No action, but often found in APT or CLFILE files.

Related variables: none

Macro call: no