CAMWORKS Post Processor Reference
CAMWORKS Post Processor Reference
CAMWORKS Post Processor Reference
August, 2006
Table of Contents
CHAPTER 1 SYSTEM COMMANDS 1-1 ABS.................................................................................................................................... 1-2 SIN ..................................................................................................................................... 1-3 COS.................................................................................................................................... 1-4 TAN ................................................................................................................................... 1-5 ACOS ................................................................................................................................. 1-6 ASIN .................................................................................................................................. 1-7 ATAN2............................................................................................................................... 1-8 ATAN................................................................................................................................. 1-9 SQRT ............................................................................................................................... 1-10 LOOKUP ......................................................................................................................... 1-11 RESETEOL...................................................................................................................... 1-12 STRCAT .......................................................................................................................... 1-13 CALL ............................................................................................................................... 1-14 REPLACE........................................................................................................................ 1-15 SETON............................................................................................................................. 1-16 SETOFF ........................................................................................................................... 1-17 SYS_CANNED................................................................................................................ 1-18 GOTO............................................................................................................................... 1-19 RETURN.......................................................................................................................... 1-20 OFFSET_INC .................................................................................................................. 1-21 OFFSET_XYZ ................................................................................................................. 1-22 ADD_MACRO_START.................................................................................................. 1-23 ADD_MACRO_END ...................................................................................................... 1-24 SPACES ........................................................................................................................... 1-25 GETTOOLS ..................................................................................................................... 1-26 GET_OPER_COMMENTS ............................................................................................. 1-27 OPEN_NEXT................................................................................................................... 1-28 ROUNDOFF .................................................................................................................... 1-30 :QUALIFIED_TOOLING= ............................................................................................. 1-31 INCON ............................................................................................................................. 1-32 INCOFF ........................................................................................................................... 1-33 APPEND .......................................................................................................................... 1-34 2-1 CHAPTER 2 SYSTEM TEXT LINE COMMANDS L ......................................................................................................................................... 2-2 l .......................................................................................................................................... 2-3 N......................................................................................................................................... 2-4 T ......................................................................................................................................... 2-5 t .......................................................................................................................................... 2-6 @........................................................................................................................................ 2-7 - .......................................................................................................................................... 2-8 + ......................................................................................................................................... 2-9 " ........................................................................................................................................ 2-10 #........................................................................................................................................ 2-11 .......................................................................................................................................... 2-12 % ...................................................................................................................................... 2-13
Table of Contents 3-1 CHAPTER 3 SYSTEM CCL COMMANDS GET_DATA() .................................................................................................................... 3-2 GET_POINT() ................................................................................................................... 3-3 SET_COLOR() .................................................................................................................. 3-4 SET_TEXT_COLOR() ...................................................................................................... 3-5 SET_LAYER()................................................................................................................... 3-6 ADD_PUNCH_PATTERN()............................................................................................. 3-7 ADD_PUNCH_PATH() .................................................................................................... 3-9 ADD_REPOSITION() ..................................................................................................... 3-10 ADD_CAD().................................................................................................................... 3-11 MAKE_FILLET()............................................................................................................ 3-13 ADD_PUNCH_TOOL() .................................................................................................. 3-14 SELECT_TOOL()............................................................................................................ 3-16 START_COMPLEX() ..................................................................................................... 3-17 END_COMPLEX().......................................................................................................... 3-18 START_GROUP()........................................................................................................... 3-19 END_GROUP() ............................................................................................................... 3-20 4-1 CHAPTER 4 ATTRIBUTE COMMANDS :ATTRNAME= .................................................................................................................. 4-2 :ATTREND........................................................................................................................ 4-3 :ATTRTYPE=.................................................................................................................... 4-4 :ATTRVTYPE= ................................................................................................................. 4-6 :ATTRID=.......................................................................................................................... 4-7 :ATTREMARK.................................................................................................................. 4-8 :ATTRLISTDEF ................................................................................................................ 4-9 :ATTRLIST= ................................................................................................................... 4-10 :ATTRSELSTR= ............................................................................................................. 4-11 :ATTRSEL=..................................................................................................................... 4-12 :ATTRUSED= ................................................................................................................. 4-13 :ATTRDEFAULT=.......................................................................................................... 4-14 :ATTRINLEN=................................................................................................................ 4-15 :ATTRSHORT=............................................................................................................... 4-16 :ATTRLONG=................................................................................................................. 4-17 :ATTRHIGH=.................................................................................................................. 4-18 :ATTRLOW=................................................................................................................... 4-19 :ATTRTEXT=.................................................................................................................. 4-20 :ATTRTITLE=................................................................................................................. 4-21 :ATTRSPACES= ............................................................................................................. 4-22 :CODETYPE= ................................................................................................................. 4-23 :CODE= ........................................................................................................................... 4-25 :WORD_ADDRESS_BEF=............................................................................................. 4-26 :WORD_ADDRESS_AFT= ............................................................................................ 4-27 :LEFT_PLACES=............................................................................................................ 4-28 :RIGHT_PLACES= ......................................................................................................... 4-29 :CANNOT_BE_DECIMAL............................................................................................. 4-30 :CANNOT_BE_LEADING ............................................................................................. 4-31 :CANNOT_BE_TRAILING ............................................................................................ 4-32 :CANNOT_BE_SIGNED ................................................................................................ 4-33 :MUST_BE_DECIMAL .................................................................................................. 4-34 :MUST_BE_LEADING................................................................................................... 4-35 :MUST_BE_TRAILING.................................................................................................. 4-36 ii
Table of Contents :MUST_BE_SIGNED...................................................................................................... 4-37 :MUST_BE_LEADING_SPACES .................................................................................. 4-38 :MUST_BE_TRAILING_SPACES................................................................................. 4-39 :MODAL.......................................................................................................................... 4-40 :UNITFLAG= .................................................................................................................. 4-41 :METRIC_UNITS............................................................................................................ 4-42 :ATTRFUNC= ................................................................................................................. 4-43 :ATTRCFUNC=............................................................................................................... 4-44 :SELECT=........................................................................................................................ 4-45 :VAR=.............................................................................................................................. 4-46 :VARB= ........................................................................................................................... 4-47 :ATTRVCNT= ................................................................................................................. 4-48 :COLUMN= ..................................................................................................................... 4-49 :LEFT_JUST=.................................................................................................................. 4-50 :RIGHT_JUST= ............................................................................................................... 4-51 :ATTRLNG=.................................................................................................................... 4-52 5-1 CHAPTER 5 MISCELLANEOUS COMMANDS :ATTRID............................................................................................................................ 5-2 :IDHIGH ............................................................................................................................ 5-3 :ATTRMACHINE ............................................................................................................. 5-4 :SECTION.......................................................................................................................... 5-5 :OPERID ............................................................................................................................ 5-6 :OPERSUB......................................................................................................................... 5-7 :OPERLIST........................................................................................................................ 5-8 :OPEREND ........................................................................................................................ 5-9 :DEFINE .......................................................................................................................... 5-10 :LIBRARY ....................................................................................................................... 5-11 :INCLUDE ....................................................................................................................... 5-12 FLAGGED(variable, bit value) ....................................................................................... 5-13 6-1 CHAPTER 6 SYSTEM TOOL COMMANDS :STATION_NUM .............................................................................................................. 6-2 :AUTOINDEX ................................................................................................................... 6-3 :KEYSIZE.......................................................................................................................... 6-4 :KEYED ............................................................................................................................. 6-5 :LARGEDIAM................................................................................................................... 6-6 :XWDEAD......................................................................................................................... 6-7 :YHDEAD.......................................................................................................................... 6-8 :XLORANGE..................................................................................................................... 6-9 :YLORANGE................................................................................................................... 6-10 :XHIRANGE.................................................................................................................... 6-11 :YHIRANGE.................................................................................................................... 6-12 7-1 CHAPTER 7 SYSTEM HEADER COMMANDS :BCL_FORMAT ................................................................................................................ 7-2 :SYSTEM........................................................................................................................... 7-3 :LEADING......................................................................................................................... 7-4 :TRAILING........................................................................................................................ 7-5 :DECIMAL ........................................................................................................................ 7-6 :QUAD ............................................................................................................................... 7-7 :SPACE .............................................................................................................................. 7-8 iii
Table of Contents :ARCS ................................................................................................................................ 7-9 :METRIC_SHIFT ............................................................................................................ 7-10 :G_LEFT_PLACES ......................................................................................................... 7-11 :G_RIGHT_PLACES....................................................................................................... 7-12 :G_INT_LEFT_PLACES................................................................................................. 7-13 :INT_LEADING .............................................................................................................. 7-14 :INT_TRAILING ............................................................................................................. 7-15 :PQCOMP ........................................................................................................................ 7-16 :QUALIFIED_TOOLING................................................................................................ 7-17 :SINGLE_MACROS ....................................................................................................... 7-18 :MIRROR_MACROS ...................................................................................................... 7-19 :MACROS_REDEFINE .................................................................................................. 7-20 :MULT_MACROS .......................................................................................................... 7-21 :LAYOUT_MACROS ..................................................................................................... 7-22 :MACROS_CALL ........................................................................................................... 7-23 :MACROS_MULT .......................................................................................................... 7-24 :MACROS_LAYOUT ..................................................................................................... 7-25 :MACROS_MAIN ........................................................................................................... 7-26 :MACROS_OUT ............................................................................................................. 7-27 :MACROS_TAPE............................................................................................................ 7-28 :MACROS_XYZ ............................................................................................................. 7-29 :MACRO_ROTATE ........................................................................................................ 7-30 :MACRO_ROTATE_X ................................................................................................... 7-31 :MACRO_ROTATE_Y ................................................................................................... 7-32 :MACRO_ROTATE_Z.................................................................................................... 7-33 :EDM4AXIS .................................................................................................................... 7-34 :TAPER............................................................................................................................ 7-35 :ARC_TO_ARC............................................................................................................... 7-36 :SHARP_CORNER ......................................................................................................... 7-37 :EQUAL_CORNER......................................................................................................... 7-38 :INDEPENDENT_CORNER........................................................................................... 7-39 :CONIC_CORNER .......................................................................................................... 7-40 :CHAMFER_CORNER ................................................................................................... 7-41 :TAPER_DURING .......................................................................................................... 7-42 :LOOK_AHEAD ............................................................................................................. 7-43 :TAPER_FILLET............................................................................................................. 7-44 :LIVE_Y_AXIS ............................................................................................................... 7-45 :OD_MILL ....................................................................................................................... 7-46 :OD_DRILL ..................................................................................................................... 7-47 :OD_ARC......................................................................................................................... 7-48 :FACE_MILL................................................................................................................... 7-49 :FACE_DRILL................................................................................................................. 7-50 :FACE_ARC .................................................................................................................... 7-51 :LATHE ........................................................................................................................... 7-52 :5AXIS_MILLING .......................................................................................................... 7-53 :4AXIS_X_MILLING ..................................................................................................... 7-54 :4AXIS_Y_MILLING ..................................................................................................... 7-55 :HELICAL ....................................................................................................................... 7-56 :MAXIMUM_LINE......................................................................................................... 7-57 :USE_SPECIAL_TOOL_TYPE ...................................................................................... 7-58 :SLOW_INDEXER.......................................................................................................... 7-59
iv
Table of Contents CHAPTER 8 SYSTEM VARIABLES 8-1 System Variables................................................................................................................ 8-2 9-1 CHAPTER 9 SYSTEM CONSTANTS System Symbolic Constants............................................................................................... 9-2 Mill Operation Symbolic Constants................................................................................... 9-5 Drill Operation Symbolic Constants .................................................................................. 9-6 Lathe Operation Symbolic Constants................................................................................. 9-7 Additional System Constants ............................................................................................. 9-8 10-1 CHAPTER 10 PROGRAMMING EXAMPLES Example 1 ........................................................................................................................ 10-2 Example 2 ........................................................................................................................ 10-6 Example 3 ...................................................................................................................... 10-12 11-1 CHAPTER 11 ADD'L. SYSTEM HEADER COMMANDS WORLD_POSITIONING................................................................................................ 11-2 RIGHT_ANGLE_SHEAR_ATTACHED ....................................................................... 11-3 LASER_PLASMA_CUT_DATA.................................................................................... 11-4 VECTOR_COMP ............................................................................................................ 11-5 NO_SET_FILE ................................................................................................................ 11-6 TRAPDOOR .................................................................................................................... 11-7 MOVE_CLAMP .............................................................................................................. 11-8 SORTER_ARM ............................................................................................................... 11-9 MILL_OD_CYLINDRICAL ......................................................................................... 11-10 MILL_FACE_POLAR................................................................................................... 11-11 MACROS_ROTATE ..................................................................................................... 11-12 DUAL_SPINDLE .......................................................................................................... 11-13 12-1 CHAPTER 12 ADDITIONAL SYSTEM VARIABLES System Variables.............................................................................................................. 12-2 13-1 CHAPTER 13 ADDITIONAL SYSTEM COMMANDS SYS_CANNED................................................................................................................ 13-2 GETID.............................................................................................................................. 13-4 OPENTXT ....................................................................................................................... 13-5 CLOSETXT ..................................................................................................................... 13-6 SETTXT........................................................................................................................... 13-7 UPPERTXT ..................................................................................................................... 13-8 LOWERTXT.................................................................................................................... 13-9 ORIGINALTXT............................................................................................................. 13-10 OPENRWTXT ............................................................................................................... 13-11 GETTXT ........................................................................................................................ 13-12 GETMCS ....................................................................................................................... 13-13 STRGLEN...................................................................................................................... 13-14 LEFTSTRG.................................................................................................................... 13-15 RIGHTSTRG ................................................................................................................. 13-16 MIDSTRG...................................................................................................................... 13-17 STRGUPPER ................................................................................................................. 13-18 STRGLOWER ............................................................................................................... 13-19 GET_SELECT STRING................................................................................................ 13-20 FASTLINE..................................................................................................................... 13-22
Table of Contents 14-1 CHAPTER 14 ADD'L. CALC SECTIONS & OPERIDS CALC_ARC_MOVE_ZX................................................................................................ 14-2 CALC_ARC_MOVE_YZ................................................................................................ 14-3 CALC_ARC_MOVE_ANYPLANE................................................................................ 14-4 CALC_POST_INITIALIZE ............................................................................................ 14-5 CALC_TOOL_INITIALIZE............................................................................................ 14-6 CALC_RAPID_MOVE_SHEAR .................................................................................... 14-7 CALC_INIT_TOOL_CHANGE_SHEAR....................................................................... 14-8 CALC_SUB_TOOL_CHANGE_SHEAR ....................................................................... 14-9 CALC_EVERY_MOVE_SHEAR ................................................................................. 14-10 CALC_FULL_SHEAR .................................................................................................. 14-11 CALC_HALF_SHEAR_X............................................................................................. 14-12 CALC_HALF_SHEAR_Y............................................................................................. 14-13 CALC_FULL_SHEAR_DIAGONAL ........................................................................... 14-14 CALC_HALF_SHEAR_DIAGONAL........................................................................... 14-15 CALC_REPOSITION_SHEAR..................................................................................... 14-16 CALC_RAPID_TO_TRAP DOOR ............................................................................... 14-17 CALC_PROFILE_DRILL_LASER .............................................................................. 14-18 CALC_GET_TAPER_EDM.......................................................................................... 14-19 :OPERID ........................................................................................................................ 14-20 CALC_SLOWDOWN_SPEED ..................................................................................... 14-21 CALC_SHIFT_TOOL_LATHE .................................................................................... 14-22 CALC_CUTTER_COMP_LATHE ............................................................................... 14-23 CALC_ALLOW_RAPID_DURING_DRILL ............................................................... 14-24 CALC_SET_PRE_POSITION_ROTARY_TYPE ........................................................ 14-25 A-1 APPENDIX A USING AN ACCESS DATABASE DURING POSTING Commands ........................................................................................................................ A-1 Example ............................................................................................................................ A-7 B-1 APPENDIX B CALC SECTIONS CALC Sections ..................................................................................................................B-1
vi
ABS
ABS
Purpose
Returns the absolute value of an argument or number.
Syntax
ABS(arg)
Comments
Parameter Description
arg
Example
Check if two points are the same:
:C: IF ABS(X_START-X_END)<.00005 THEN CALL(SAME) ENDIF
SIN
SIN
Purpose
Returns the sine of an angle in radians.
Syntax
SIN(ang)
Comments
Parameter Description
ang
an angle in radians
Example
:C: Y_POS=(ABS_J_CENTER+(ARC_RADIUS*SIN(ARC_END_ANGLE*(PI/180))))
COS
COS
Purpose
Returns the cosine of an angle in radians.
Syntax
COS(ang)
Comments
Parameter Description
ang
an angle in radians
Example
:C: X_POS=(ABS_I_CENTER+(ARC_RADIUS*COS(ARC_END_ANGLE*(PI/180))))
TAN
TAN
Purpose
Returns the tangent of an angle in radians.
Syntax
TAN(ang)
Comments
Parameter Description
ang
an angle in radians
Example
:C: HEIGHT=(RADIUS/TAN((TOOL_ANGLE*(PI/180))/2))
ACOS
ACOS
Purpose
Returns the arc cosine of a value from 1 to -1.
Syntax
ACOS(r)
Comments
Parameter Description
Example
:C: Y=(ACOS(X))
ASIN
ASIN
Purpose
Returns the arc sine of a value from 1 to -1.
Syntax
ASIN(r)
Comments
Parameter Description
Example
:C: Y=(ASIN(X))
ATAN2
ATAN2
Purpose
Returns the arc tangent of dx and dy (i.e., the slope of a line).
Syntax
ATAN2(dx,dy)
Comments
ATAN2 returns a value between 3.141593 and -3.141593.
Example
:C: V=(ATAN2(DX,DY))
ATAN
ATAN
Purpose
Returns the arc tangent of x.
Syntax
ATAN(x)
Comments
ATAN returns a value between (3.141593/2) and (-3.141593/2).
Example
:C: V=(ATAN(X))
SQRT
SQRT
Purpose
Return the square root of x.
Syntax
SQRT(x)
Comments
None.
Example
:C: V=(SQRT(DX*DX+DY*DY))
LOOKUP
LOOKUP
Purpose
To find a value within an array.
Syntax
LOOKUP(ARRAY,VALUE,INDEX)
Comments
Parameter Description
the name of the array to search the value to search for the position in the array where the value was found (if INDEX=-1 the system failed to find the value in the array)
Example
The example below seeds an array then searches the array:
:C: :C: :C: :C: ARRAY(1)=10 ARRAY(2)=11 ARRAY(3)=12 VALUE=11 LOOKUP(ARRAY,VALUE,INDEX) IF INDEX<>-1 THEN CALL(FOUND_IN_ARRAY) ENDIF
RESETEOL
RESETEOL
Purpose
To remove (delete) the <EOL> (end of line) character from the last line of code output, so more code can be added.
Syntax
RESETEOL
Comments Example
:C: RESETEOL CALL(ADD_END_OF_TAPE) :SECTION=ADD_END_OF_TAPE :T:<M02><EOL>
STRCAT
STRCAT
Purpose
To append one string to another (i.e., concatenate strings).
Syntax
STRCAT(string1,string2)
Comments
Parameter Description
string1 string2
a character variable that will get the string attached to it a character variable that is the string to attach
Example
:C: STRING1={ProCAD} STRING2={/CAM} :C: STRCAT(STRING1,STRING2) :C: CALL(OUTPUT_STRING1) :SECTION=OUTPUT_STRING1 :T:<N><STRING1><EOL>
Result: N10
ProCAD/CAM
CALL
CALL
Purpose
To call another section of the post.
Syntax
A
CALL(section)
B
CALL(section(arga,argb,...))
Comments
Parameter Description
must be an existing section in the post. The CALL function can only call a SECTION. an argument that is passed to the section (Syntax B) an argument that is passed to the section (Syntax B)
When passing arguments, the section must be defined to be capable of accepting arguments. See SECTION= below.
Example
A
:C: CALL(LINE_MOVE_MILL) :SECTION=LINE_MOVE_MILL :T:<N><G:01><X><Y><Z><F><attributes><EOL>
B
:C: CALL(CALC_ESTIMATE_TIME(DISTANCE,OPR_X_FEED,TIME)) :SECTION=CALC_ESTIMATE_TIME(DIS,FEED,TIME) :C: IF FEED=0 THEN RETURN ENDIF :C: TIME=(TIME+(DIS/FEED))
REPLACE
REPLACE
Purpose
To replace all occurrences of string A with string B throughout the entire tape.
Syntax
REPLACE(stringa,stringb)
Comments
Parameter Description
stringa stringb
Example
This example will replace the comment "Total hits=xxx", which was output at the beginning of the tape, with the correct number of hits known at the end of the tape. A temporary string must be used to transfer the number of hits stored in an integer to a string.
:SECTION=CALC_END_OF_TAPE :C: STRA={Total hits=xxx} :C: STRB={Total hits=} :C: STRC=TOTAL_HITS :C: STRCAT(STRB,STRC) :C: REPLACE(STRA,STRB)
SETON
SETON
Purpose
To set a parameter to output code.
Syntax
SETON(<name>)
Comments
Parameter Description
name
Parameters must be defined as MODAL parameters in order for this command to have any effect.
Example
:SECTION=CALC_LINE_MOVE_MILL :C: SETON(<X>)
:C: CALL(LINE_MOVE_MILL) :SECTION=LINE_MOVE_MILL :T: <N><G:01><X><Y><EOL>
SETOFF
SETOFF
Purpose
To set a parameter to not output code.
Syntax
SETOFF(<name>)
Comments
Parameter Description
name
Parameters must be defined as MODAL parameters in order for this command to have any effect.
Example
:C: SETOFF(<F>)
The system will execute all sections responsible for outputting the parameter, however the result will not be sent to the tape.
SYS_CANNED
SYS_CANNED
Purpose
To break an entity not supported by the post into a series of entities that are supported by the post. Typically, this command is used the explode line, grid, arc and bolt hole patterns into single points.
Syntax
SYS_CANNED(type,section)
Comments
Parameter Description
type
the type of breakup and is a constant 1 Single points 2 Lines, arcs and bolt holes (use only on grids and big hole patterns) 3 Breaks a thread cycle into diameters (use only on threading cycles) section that will handle the exploded entity The word SYSTEM instructs the system to call the appropriate sections.
section
Example
:SECTION=CALC_ARC_PATTERN_PUNCH :C: SYS_CANNED(1,CALC_SINGLE_HIT_PUNCH) :SECTION=CALC_GRID_PATTERN_PUNCH :C: SYS_CANNED(2,SYSTEM) :SECTION=CALC_MACHINE_THREAD_LATHE :C: SYS_CANNED(3,CALC_MULTIPLE_THREAD_LATHE)
Warning: A SYS_CANNED command cannot be executed while inside of another SYS_CANNED cycle. In the example below grids are broken into line patterns, but since the post does not support line patterns, another SYS_CANNED command is executed. This is an error.
:SECTION=CALC_GRID_PATTERN_PUNCH :C: SYS_CANNED(2,SYSTEM) :SECTION=CALC_LINE_PATTERN_PUNCH :C: SYS_CANNED(1,CALC_SINGLE_HIT_PUNCH)
GOTO
GOTO
Purpose
Branches to a specific line number in the current section.
Syntax
GOTOnumber
Comments
Parameter Description
number
Type
Calculation section only
Example
To make a looping portion of code that loops until a condition is satisfied:
:C: LOOP=1 :C1: CALL(OUTPUT_TOOL) :C: LOOP=(LOOP+1) :C: IF LOOP>TOTAL_NUMBER_OF_TOOLS THEN RETURN ENDIF :C: GOTO1
RETURN
RETURN
Purpose
To end the current section and return processing control to the system.
Syntax
RETURN
Comments
None
Example
:C: IF TOOL=LAST_TOOL THEN RETURN ENDIF :C: CALL(CALC_TOOL_CHANGE_TIME) :C: CALL(SUB_TOOL_CHANGE)
OFFSET_INC
OFFSET_INC
Purpose
To incrementally add an offset to all horizontal and vertical axis information.
Syntax
OFFSET_INC(hoff,voff)
Comments
Parameter Description
hoff voff
decimal variable containing amount of offset to add to all horizontal axis information decimal variable containing amount of offset to add to all vertical axis information
Example
Add 10" offset to X and 5" offset to Y, then cancel the offset:
:C: :C: :C: :C: :C: X_OFFSET=10 Y_OFFSET=5 OFFSET_INC(X_OFFSET,Y_OFFSET) CALL(LINE_MOVE) X_OFFSET=-10 Y_OFFSET=-5 OFFSET_INC(X_OFFSET,Y_OFFSET)
OFFSET_XYZ
OFFSET_XYZ
Purpose
To incrementally add an offset to all X,Y,Z axis information. This command is used only in Mill.
Syntax
OFFSET_XYZ(x,y,z)
Comments
Parameter Description
x y z
decimal variable containing amount of offset to add to all X axis information decimal variable containing amount of offset to add to all Y axis information decimal variable containing amount of offset to add to all Z axis information
Example
Add 10" offset to X and 5" offset to Y and 3" offset to Z, then cancel the offsets:
:C: :C: :C: :C: X_OFFSET=10 Y_OFFSET=5 Z_OFFSET=3 OFFSET_XYZ(X_OFFSET,Y_OFFSET,Z_OFFSET) CALL(LINE_MOVE) OFFSET_XYZ(-X_OFFSET,-Y_OFFSET,-Z_OFFSET)
ADD_MACRO_START
ADD_MACRO_START
Purpose
To define the start of a macro. This command redirects all code to a secondary file, which is used to store all subprograms prior to the system inserting the subprogram file before or after the main tape.
Syntax
ADD_MACRO_START
Comments
None.
Example
:C: ADD_MACRO_START
ADD_MACRO_END
ADD_MACRO_END
Purpose
To define the end of a macro. This command cancels an ADD_MACRO_START command and redirects all code back to the main program tape.
Syntax
ADD_MACRO_END
Comments Example
:C: ADD_MACRO_END
SPACES
SPACES
Purpose
To allow spaces to be output or not to be output to the tape. This command is used to override the global post definition of :SPACES=FALSE in the header in <CONTROLLER.SRC).
Syntax
SPACES(YES) SPACES(NO)
Comments
This command can be executed prior to calling a template section; however, it is recommended you use ATTRSPACE instead.
Example
:C: SPACES(YES) :C: CALL(SETUP_SHEET)
GETTOOLS
GETTOOLS
Purpose
To retrieve from the system all tools used within the part being posted.
Syntax
GETTOOLS(type,section)
Comments
Parameter Description
type
section
the type of sorting method 1 Sorted by turret location 2 Sorted by order used in part the section that will be called each time a tool is loaded. The word SYSTEM will instruct the system to output a tool setup sheet.
Example
:C: GETTOOLS(2,CALC_PRELOAD_TOOL) :C: GETTOOLS(1,SYSTEM)
GET_OPER_COMMENTS
GET_OPER_COMMENTS
Purpose
To get the comments from the current operation. This command outputs the comments entered in the Comments dialog box. Used in Mill and Lathe only.
Syntax
GET_OPER_COMMENTS(section)
Comments
Parameter Description
section
the section that will be called each time a comment is loaded. The word SYSTEM instructs the system to output the comments directly to the tape.
Example
:SECTION=CALC_SUB_TOOL_CHANGE_MILL :C: GET_OPER_COMMENTS(CALC_OUTPUT_OPER_COMMENT) :SECTION=CALC_OUTPUT_OPER_COMMENT :C: CALL(OUTPUT_OPER_COMMENT) :SECTION=OUTPUT_OPER_COMMENT :T:<N><OPR_COMMENT><EOL>
OPEN_NEXT
OPEN_NEXT
Purpose
To break a ".TXT" file and start a new tape output file. Typically, this command is used only for some older controllers that have a limit on the number of lines per file.
Syntax
OPEN_NEXT(char_str(arg),str_len(arg),int_number(arg))
Comments
Parameter Description
char_str(agr) Str_len(agr)
file name as in - A0000001.TXT. A0000001 is the File name. It will assign the ".TXT" to it. the " = Length of file name "A0000001 is (8) Characters long
int_number(agr) used for incrementing the last digits of the program name
Example
:SECTION=CALC_BREAK_PROGRAM
This example will break a program at a certain line count. It will string cat until it has built a line. The example file name = A1000001.TXT program_letter = A PROGRAM_PREFIX = program_name = 1000 SUB_COUNT = 1
:C: IF (LINE_COUNT+2)>line_number THEN GOTO2 ENDIF :C: IF line_number<>(LINE_COUNT+2) THEN RETURN ENDIF :C2: SUB_COUNT=(SUB_COUNT+1) PROGRAM_PREFIX = Character Var. - String length = 5 SUB_ID = Character Var. ZEROS = Character Var. program_letter = Character setup Var. - String length = 1 SUB_COUNT = Integer Var. - Max. length = 3 :C: PROGRAM_PREFIX=program_letter :C: SUB_ID=program_number :C: STRCAT(PROGRAM_PREFIX,SUB_ID) :C: IF SUB_COUNT>99 THEN :C: SUB_ID=SUB_COUNT :C: STRCAT(PROGRAM_PREFIX,SUB_ID) :C: GOTO1 ENDIF :C: IF SUB_COUNT>9 THEN :C: ZEROS={0} :C: SUB_ID=SUB_COUNT :C: STRCAT(ZEROS,SUB_ID) :C: STRCAT(PROGRAM_PREFIX,ZEROS) 1-28 System Commands
OPEN_NEXT :C: GOTO1 :C: ENDIF :C: ZEROS={00} :C: SUB_ID=SUB_COUNT :C: STRCAT(ZEROS,SUB_ID) :C: STRCAT(PROGRAM_PREFIX,ZEROS) :C1: S_SUB_COUNT_START=SUB_COUNT
ROUNDOFF
ROUNDOFF
Purpose
To roundoff a number. This command is no longer used since all posts round-off automatically for inch or metric.
Syntax
ROUNDOFF(number,bucket,result,places,type)
Comments
Parameter Description
number bucket
a decimal number or argument containing the value to be rounded off a decimal variable that will receive the difference between the original number and the rounded off number (bucket is also added to the original number before any rounding occurs) a decimal variable that will receive the rounded off result the number of places to the right of the decimal the type of mode: 1-English , 2-Metric
Example
:C: BUCKET=0 :C: ROUNDOFF(ABS_X_END,BUCKET,X_POS,G_RIGHT_PLACES,METRIC_OUT)
:QUALIFIED_TOOLING=
:QUALIFIED_TOOLING=
Purpose
To retrieve tool offset information from a fixed structured external file.
Syntax
:QUALIFIED_TOOLING=\PROCAD\TOOL\TOOLFILE.F6M
Comments
The above syntax: shows where the external file is located. This command should be put in the post header info. Below is an example of what the external file might look like. 1111 or 2222 must be entered in the TOOL COMMENT in the tool pulldown for this to work.
ID ZGL XGL Tool Comment
1111, 2222,
5, 6.375,
10, 12.5,
7, 11,
The external file has 5 fields. 1. Field 1 is used by PROUNIV.EXE. It will match the "ID" field with the TOOL_HOLDER_NAME in lathe and TOOL_COMMENT in mill. 2. Field 2 is a decimal field for the Z gauge. 3. Field 3 is a decimal field for the X gauge. 4. Field 4 is a integer field for the tool number. 5. Field 5 is a character field. A comma is used as a field delimiter.
Example
:T: Z FEED=<#:TOOL_ZGL> X FEED=<#:TOOL_XGL> :T: RPM=<"%4T":TOOL_QTN> COMMENT=<TOOL_QT_COMMENT><EOL>
INCON
INCON
Purpose
To output incremental movements.
Syntax
:C: INCON
Comments
At the time INCON is executed the variables XAXIS, YAXIS and ZAXIS are set to incremental distances. This command is not used much, because it does not handle incremental roundoff.
Example
:SECTION=CALC_LINE_MOVE_MILL :C: INCON :C: X_POS=XAXIS :C: Y_POS=YAXIS :C: CALL(LINE_MOVE_MILL) :SECTION=LINE_MOVE_MILL :T:<N><G:01> X<#:X_POS> Y<#:Y_POS><F><EOL>
INCOFF
INCOFF
Purpose
To cancel incremental movements.
Syntax
:C: INCOFF
Comments
At the time INCOFF is executed the variables XAXIS, YAXIS and ZAXIS are set to absolute distances. This command is the system default. This command is not used much, because it does not handle incremental roundoff.
Example
:SECTION=CALC_LINE_MOVE_MILL :C: INCOFF :C: X_POS=XAXIS :C: Y_POS=YAXIS :C: CALL(LINE_MOVE_MILL) :SECTION=LINE_MOVE_MILL :T:<N><G:01> X<#:X_POS> Y<#:Y_POS><F><EOL>
APPEND
APPEND
Purpose
To append another file into current part that is being posted.
Syntax
:C: APPEND(STRG)
Comments
Parameter Description
strg
The strg must be defined in the attribute section as a string variable. The strg should hold the path and filename you want to append.
The APPEND command will put whatever information is in the file you append into the file you are posting. This command could be used for a special cycle that is hardcoded and happens all the time.
Example
:SECTION=CALC_APPEND_FILE :C: STRG={C:\PROCAM\DRILL.TXT} :C: APPEND(STRG)
L
Purpose
Tells system to output leading zeros.
Syntax
L
Comments
The example is output if the number is 1 inch
N10 G01 X001
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#34L":ABS_X_END><EOL>
l
Purpose
A lowercase "l" tells system to output leading spaces.
Syntax
l
Comments
The example is output if the number is 1 inch
N10 G01 X__1
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#34l":ABS_X_END><EOL>
N
Purpose
An uppercase "N" tells system not to convert output if decimal.
Syntax
N
Comments
The example is output if the number is 180 degrees
N10 G01 A180
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> A<"#33N":ARC_START_ANGLE><EOL>
T
Purpose
An uppercase "T" tells the system to output trailing zeros.
Syntax
T
Comments
The example is output if the number is 1 inch
N10 G01 X10000
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#34T":ABS_X_END><EOL>
t
Purpose
A lowercase "t" tells the system to output trailing spaces.
Syntax
t
Comments
The example is output if the number is 1 inch
N10 G01 X1____
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#34t":ABS_X_END><EOL>
@
Purpose
An @ tells system to output a space in place of a plus or minus sign if a sign is not output.
Syntax
@
Comments
The below example is output if the number is 1 inch
N10 G01 X_1
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#-34@":ARC_START_ANGLE><EOL>
Purpose
Tells system to output a minus sign if number is negative.
Syntax
-
Comments
The below example is output if the number is negative 1 inch.
N10 G01 X-1
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#-34":ARC_START_ANGLE><EOL>
+
Purpose
Forces system to output a plus or minus sign.
Syntax
+
Comments
The below example is output if the number is negative 1 inch.
N10 G01 X+1
Example
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#+34":ARC_START_ANGLE><EOL>
"
"
Purpose
Double quotation marks are used to group output format.
Syntax
" "
Comments
None.
Example
#1: Not using HEADER default decimal output
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#-34":ARC_START_ANGLE><EOL>
#
Purpose
Tells system the output is decimal.
Syntax
#
Comments
None.
Example
#1: Not using HEADER default decimal output
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#-34":ARC_START_ANGLE><EOL>
.
Purpose
A decimal point (.) forces the system to output a decimal to tape.
Syntax
.
Comments
None.
Example
#1: Not using a decimal point
:SECTION=LINE_MOVE_MILL :T:<N><G:01> X<"#-34":ARC_START_ANGLE><EOL>
N100 G01 X?
%
Purpose
Tells system the output is integer.
Syntax
%
Comments
None.
Example
#1: Not Using HEADER default integer output
:SECTION=START_OF_TAPE_MILL :T:O<"%4LT":program_number><EOL>
Returns: O0001
GET_DATA()
GET_DATA()
Purpose
To build popup for attribute list.
Syntax
:C: GET_DATA(listname)
Comments
This command will invoke an attribute list for the user to answer in CAD.
Example
:ATTRNAME=elipse :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Elipse :ATTRLIST=major :ATTRLISTDEF=10 :ATTRLIST=minor :ATTRLISTDEF=5 :ATTRLIST=nsegments :ATTRLISTDEF=120 :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND :SECTION=CALC_MAIN :C: GET_DATA(elipse)
GET_POINT()
GET_POINT()
Purpose
To call pick point and return result.
Syntax
:C: GET_POINT()
Comments
This command invokes user to snap a point, which will return the result in the system variables ABS_X_END and ABS_Y_END.
Example
:SECTION=CALC_MAIN :C: GET_POINT() :C: OFF_IN_X=ABS_X_END :C: OFF_IN_Y=ABS_Y_END
SET_COLOR()
SET_COLOR()
Purpose
To set current system color in CAD.
Syntax
:C: SET_COLOR(color)
Comments
This command sets the system color from 0-15:
BLACK BLUE GREEN CYAN RED MAGENTA BROWN WHITE GREY LIGHT_BLUE LIGHT_GREEN LIGHT_CYAN LIGHT_RED LIGHT_MAGENTA LIGHT_YELLOW BRIGHT_WHITE = = = = = = = = = = = = = = = = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Example
This example sets the system color to BLUE.
:SECTION=CALC_MAIN :C: SET_COLOR(1)
SET_TEXT_COLOR()
SET_TEXT_COLOR()
Purpose
To set current system text color in CAD.
Syntax
:C: SET_TEXT_COLOR(color)
Comments
This command sets the system text color from 0-15:
BLACK BLUE GREEN CYAN RED MAGENTA BROWN WHITE GREY LIGHT_BLUE LIGHT_GREEN LIGHT_CYAN LIGHT_RED LIGHT_MAGENTA LIGHT_YELLOW BRIGHT_WHITE = = = = = = = = = = = = = = = = 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Example
This example sets the system text color to BLUE.
:SECTION=CALC_MAIN :C: SET_TEXT_COLOR(1)
SET_LAYER()
SET_LAYER()
Purpose
To set current system layer in CAD.
Syntax
:C: SET_LAYER(layer)
Comments
This command sets the system layer from 0-256.
Example
This example sets the system layer to "1".
:SECTION=CALC_MAIN :C: SET_LAYER(1)
ADD_PUNCH_PATTERN()
ADD_PUNCH_PATTERN()
Purpose
To add a punch pattern.
Syntax
:C: ADD_PUNCH_PATTERN(pattern)
Comments
You must set all the system variables first before you add the pattern in CAM.
Examples
#1: Example of a grid pattern
:SECTION=CALC_MAIN :C: SELECT_TOOL(1) :C: ABS_X_START=5. :C: ABS_Y_START=5. :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: ANGLE=0 :C: NUM_HITS_X=5 :C: NUM_HITS_Y=5 :C: DIST_BET_HOLES_X=1. :C: DIST_BET_HOLES_Y=1. :C: HORIZ_OR_VERT=HORIZONTAL :C: ADD_PUNCH_PATTERN(MGRID)
ADD_PUNCH_PATTERN()
ADD_PUNCH_PATH()
ADD_PUNCH_PATH()
Purpose
To add a punch path - nibble line or arc.
Syntax
:C: ADD_PUNCH_PATH(path)
Comments
You must set all the system variables first before you add the path in CAM.
Example
#1: Example of a line path
:SECTION=CALC_MAIN :C: SELECT_TOOL(1) :C: ABS_X_START=5. :C: ABS_Y_START=5. :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: PITCH=.125 :C: MOVE_TYPE=LINE :C: ADD_PUNCH_PATH(MLINE)
ADD_REPOSITION()
ADD_REPOSITION()
Purpose
To add a reposition in CAM.
Syntax
:C: ADD_REPOSITION()
Comments
You must set all the system variables first before you add the reposition in CAM.
Example
The example below will rapid to "X" and "Y" to ten inches and then reposition the sheet in "X" 20 inches incrementally.
:SECTION=CALC_MAIN :C: SELECT_TOOL(1) :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: INC_X_END=20 :C: ADD_REPOSITION()
ADD_CAD()
ADD_CAD()
Purpose
To add a CAD entity.
Syntax
:C: ADD_CAD(position)
Comments
You must set all the system variables first before you add the entity in CAD. You add CAD by PREVIOUS position, CURRENT position or NEXT position.
Examples
#1: Example of a current line entity
:SECTION=CALC_MAIN :C: ABS_X_START=5. :C: ABS_Y_START=5. :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: MOVE_TYPE=MLINE :C: ADD_CAD(CURRENT)
ADD_CAD() :SECTION=CALC_MAIN :C: P_ABS_X_START=5. :C: P_ABS_Y_START=5. :C: P_ABS_X_END=10. :C: P_ABS_Y_END=10. :C: P_ABS_I_CENTER=10. :C: P_ABS_J_CENTER=5. :C: P_MOVE_TYPE=MCW_ARC
MAKE_FILLET()
MAKE_FILLET()
Purpose
To make a fillet between two CAD entities.
Syntax
:C: MAKE_FILLET(radius)
Comments
You must set all the system variables first before you make the fillet in CAD.
Example
:SECTION=CALC_MAIN :C: ARC_RAD(.1) :C: P_ABS_X_START=5. :C: P_ABS_Y_START=5. :C: P_ABS_X_END=10. :C: P_ABS_Y_END=5. :C: P_MOVE_TYPE=MLINE :C: N_ABS_X_START=10. :C: N_ABS_Y_START=5. :C: N_ABS_X_END=10. :C: N_ABS_Y_END=10. :C: N_MOVE_TYPE=MLINE :C: MAKE_FILLET(ARC_RAD) :C: ADD_CAD(PREVIOUS) :C: ADD_CAD(CURRENT) :C: P_ABS_X_START=N_ABS_X_START :C: P_ABS_Y_START=N_ABS_Y_START :C: P_ABS_X_END=N_ABS_X_END :C: P_ABS_Y_END=N_ABS_Y_END :C: P_MOVE_TYPE=N_MOVE_TYPE :C: ADD_CAD(NEXT)
ADD_PUNCH_TOOL()
ADD_PUNCH_TOOL()
Purpose
To add a punch tool in CAM.
Syntax
:C: ADD_PUNCH_TOOL(tool)
Comments
You must set all the system tool variables first before you add the tool in CAM.
TOOL_TYPE: ROUND RECTANGLE TRIANGLE CROSS OBROUND SQUARE RECRAD DOUBLED SINGLED SPETOOL = = = = = = = = = = 1 2 3 4 5 6 7 8 9 10
Examples
#1
:SECTION=CALC_MAIN :C: TOOL_TYPE=1 :C: TOOL_DIAMETER=.5 :C: TOOL_LOAD_ANGLE=0 :C: TOOL_COMMENT={.5 ROUND PUNCH} :C: TOOL_DISCRIPTION={ROUND PUNCH} :C: ADD_PUNCH_TOOL(TOOL)
#2
:SECTION=CALC_MAIN :C: TOOL_TYPE=2 :C: TOOL_LENGTH=.5 :C: TOOL_WIDTH=.25 :C: TOOL_LOAD_ANGLE=0 :C: TOOL_COMMENT={.5 x .25 RECTANGLE PUNCH} :C: TOOL_DISCRIPTION={RECTANGLE PUNCH} :C: ADD_PUNCH_TOOL(TOOL)
#3
:SECTION=CALC_MAIN 3-14 System CCL Commands
ADD_PUNCH_TOOL() :C: :C: :C: :C: :C: :C: :C: :C: TOOL_TYPE=7 TOOL_LENGTH=.5 TOOL_WIDTH=.25 TOOL_CORNER_RADIUS=.01 TOOL_LOAD_ANGLE=0 TOOL_COMMENT={.5 x .25 RECTANGLE RADIUS PUNCH} TOOL_DISCRIPTION={RECTANGLE RADIUS PUNCH} ADD_PUNCH_TOOL(TOOL)
SELECT_TOOL()
SELECT_TOOL()
Purpose
To select a punch tool in CAM.
Syntax
:C: SELECT_TOOL(tool)
Comments
If the tool already exists in the part tool list then you can use this command. If the tool does not exist in the current part tool list, you must use the ADD_PUNCH_TOOL() command.
Example
:SECTION=CALC_MAIN :C: TOOL=1 :C: SELECT_TOOL(TOOL)
START_COMPLEX()
START_COMPLEX()
Purpose
To start a CAM boundary.
Syntax
:C: START_COMPLEX()
Comments
This command will initiate a CAM boundary. Make sure you use this command before you add your first entity in CAD.
Example
:SECTION=CALC_MAIN :C: START_COMPLEX() :C: ABS_X_START=5. :C: ABS_Y_START=5. :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: MOVE_TYPE=MLINE :C: ADD_CAD(CURRENT)
END_COMPLEX()
END_COMPLEX()
Purpose
To end a CAM boundary.
Syntax
:C: END_COMPLEX()
Comments
This command will end a CAM boundary. Make sure this command is after your last entity in CAD.
Example
:SECTION=CALC_MAIN :C: START_COMPLEX() :C: ABS_X_START=5. :C: ABS_Y_START=5. :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: MOVE_TYPE=MLINE :C: ADD_CAD(CURRENT) :C: END_COMPLEX()
START_GROUP()
START_GROUP()
Purpose
To start a group of entities.
Syntax
:C: START_GROUP()
Comments
This command will initiate a group of entities. Make sure you use this command before you add your first entity in CAD.
Example
:SECTION=CALC_MAIN :C: START_GROUP() :C: ABS_X_START=5. :C: ABS_Y_START=5. :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: MOVE_TYPE=MLINE :C: ADD_CAD(CURRENT)
END_GROUP()
END_GROUP()
Purpose
To end a group of entities.
Syntax
:C: END_GROUP()
Comments
This command will end a group. Make sure this command is after your last entity in CAD.
Example
:SECTION=CALC_MAIN :C: START_GROUP() :C: ABS_X_START=5. :C: ABS_Y_START=5. :C: ABS_X_END=10. :C: ABS_Y_END=10. :C: MOVE_TYPE=MLINE :C: ADD_CAD(CURRENT) :C: END_GROUP()
:ATTRNAME=
:ATTRNAME=
Purpose
Start attribute definition.
Syntax
:ATTRNAME=name
Comments
This command starts an attribute definition. name identifies the attribute.
Example
:ATTRNAME=MACHINE NAME :ATTRTYPE=DESCRIPTOR :ATTRVTYPE=CHARACTER :ATTRID=501 :ATTREND
:ATTREND
:ATTREND
Purpose
Ends an attribute definition.
Syntax
:ATTREND
Comments
This command ends an attribute definition.
Example
:ATTRNAME=MACHINE NAME :ATTRTYPE=DESCRIPTOR :ATTRVTYPE=CHARACTER :ATTRID=501 :ATTREND
:ATTRTYPE=
:ATTRTYPE=
Purpose
Defines attribute type.
Syntax
:ATTRTYPE=POST :ATTRTYPE=DESCRIPTOR :ATTRTYPE=VALUE :ATTRTYPE=DISPLAY :ATTRTYPE=SELECT :ATTRTYPE=LIST
Comments
Parameter Description
POST Defined only in the post and can only be used while posting. DESCRIPTOR Machine descriptors. These attributes have to be defined in MASTER.ATR and defined in the post. VALUE Used for Setup and Attachable attributes that require entering a value. These attributes have to be defined in MASTER.ATR and defined in the post. DISPLAY Used in HARDCODE attributes that are displayed only (they do not require a choice or value). These attributes have to be defined in MASTER.ATR and defined in the post. SELECT Used for attributes that require selection from a list of choices. These attributes have to be defined in MASTER.ATR if they are to be used for Setup or Attachable type attributes. If used for posting only, then they need to be defined only in the post. LIST Used for Setup attributes. This has to be the last attribute defined. These attributes have to be defined in MASTER.ATR and defined in the post.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=Enter X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1
:ATTRTYPE= :ATTREND :ATTRNAME=optional stop :ATTRTYPE=DISPLAY :ATTREMARK=optional stop M01 :ATTRSEL=Y :ATTRTEXT= :ATTRFUNC=optional_stop :CODETYPE=HARDCODE :CODE=|M01 :ATTRUSED=1 :ATTREND :ATTRNAME=work chute :ATTRTYPE=SELECT :ATTRVTYPE=INTEGER :ATTRSEL=Y :ATTRSHORT=Work Chute :ATTRTITLE=Work Chute (open/close) :ATTRSELSTR=M80 :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND :ATTRNAME=setup :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Setup :ATTRLIST=program number :ATTRLISTDEF=1 :ATTRLIST=x sheet width :ATTRLISTDEF=0 :ATTRLIST=y sheet width :ATTLISTDEF=0 :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND
:ATTRVTYPE=
:ATTRVTYPE=
Purpose
Variable type.
Syntax
:ATTRVTYPE=INTEGER :ATTRVTYPE=DECIMAL :ATTRVTYPE=CHARACTER
Comments
If no ATTRVTYPE is put in the attribute definition then it assumes it is a character variable type. If, however, you define the attribute with a :VAR=? the ?= another attribute that has been defined before this one and it had a ATTRVTYPE defined, then this attribute will be the same variable type as in the :VAR= command.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=Enter X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRID=
:ATTRID=
Purpose
Attribute ID number.
Syntax
:ATTRID=501
Comments
This command determines the ID number for any attribute that is defined in the MASTER.ATR file.
Example
:ATTRNAME=MACHINE NAME :ATTRTYPE=DESCRIPTOR :ATTRVTYPE=CHARACTER :ATTRID=501 :ATTREND
:ATTREMARK
:ATTREMARK
Purpose
Information for programmer only.
Syntax
:ATTREMARK=text
Comments
This command allows the programmer to document the attribute for future reference.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=Enter X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRLISTDEF
:ATTRLISTDEF
Purpose
List string default.
Syntax
:ATTRLISTDEF=n
Comments
This command allows you to set the list default value for a Setup select type attribute.
Example
:ATTRNAME=setup :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Setup :ATTRLIST=program number :ATTRLISTDEF=1 :ATTRLIST=x sheet width :ATTRLISTDEF=0 :ATTRLIST=y sheet width :ATTLISTDEF=0 :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND
:ATTRLIST=
:ATTRLIST=
Purpose
List string for list type attribute.
Syntax
:ATTRLIST=attribute name
Comments
This command allows you to insert a previously defined attribute into a list.
Example
:ATTRNAME=setup :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Setup :ATTRLIST=program number :ATTRLISTDEF=1 :ATTRLIST=x sheet width :ATTRLISTDEF=0 :ATTRLIST=y sheet width :ATTLISTDEF=0 :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND
:ATTRSELSTR=
:ATTRSELSTR=
Purpose
Select string for select type.
Syntax
:ATTRSELSRT=string
Comments
This command is used in select type attributes to specify the choices.
Example
:ATTRNAME=init machine comp :ATTRTYPE=SELECT :ATTREMARK=Comp lft, rgt, cancel :ATTRSEL=N :ATTRTITLE=Laser Compensation :ATTRLIST=program number :ATTRSELSTR=Left :ATTRSELSTR=Right :ATTRSELSTR=Cancel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND
:ATTRSEL=
:ATTRSEL=
Purpose
Selectable switch.
Syntax
:ATTRSEL=Y or N
Comments
This command determines whether an attribute displays in the Select Attribute dialog box or in the Setup Information dialog box. If set to Y (yes), the attribute displays in the Select Attribute dialog box and cannot be listed in the Setup Information dialog box. If set to N (no), the attribute displays in the Setup Information dialog box.
Example
:ATTRNAME=init machine comp :ATTRTYPE=SELECT :ATTREMARK=Comp lft, rgt, cancel :ATTRSEL=N :ATTRTITLE=Laser Compensation :ATTRLIST=program number :ATTRSELSTR=Left :ATTRSELSTR=Right :ATTRSELSTR=Cancel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND
:ATTRUSED=
:ATTRUSED=
Purpose
Flag for attribute used or not.
Syntax
:ATTRUSED=1 or 0
Comments
This command tells the compiler if an attribute is used or not. If set to 1, the attribute is included in the compile. If set to 0, the attribute is not compiled.
Example
:ATTRNAME=init machine comp :ATTRTYPE=SELECT :ATTREMARK=Compt lft, rgt, cancel :ATTRSEL=N :ATTRTITLE=Laser Compensation :ATTRLIST=program number :ATTRSELSTR=Left :ATTRSELSTR=Right :ATTRSELSTR=Cancel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND
:ATTRDEFAULT=
:ATTRDEFAULT=
Purpose
Define default for attribute.
Syntax
:ATTRDEFAULT=value
Comments
This command sets the default value for input. This command overrides ATTRLISTDEF.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=Enter X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRINLEN=
:ATTRINLEN=
Purpose
Define input length for attribute.
Syntax
:ATTRINLEN=value
Comments
This command sets the input length. For decimal input (3.4), set this value to 10, which includes the decimal point, the + sign and the - sign. For integers, the length is normally 4.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=Enter X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRSHORT=
:ATTRSHORT=
Purpose
Defines the text that displays in the dialog boxes for value type attributes.
Syntax
:ATTRSHORT=text
Comments
This command defines the text that displays in the dialog box for value type attributes. When the post is compiled, this text is output to the .LNG file and can be translated if necessary.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=ENTER X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRLONG=
:ATTRLONG=
Purpose
Defines the text that displays on the prompt line for value type attributes.
Syntax
:ATTRLONG=text
Comments
This command defines the text that displays on the prompt line for value type attributes. When the post is compiled, this text is output to the .LNG file and can be translated if necessary.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=ENTER X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRHIGH=
:ATTRHIGH=
Purpose
Answer high.
Syntax
:ATTRHIGH=value
Comments
This command defines the maximum value that can be entered for the attribute. This command is used with value type attributes.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=ENTER X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRLOW=
:ATTRLOW=
Purpose
Answer low.
Syntax
:ATTRLOW=value
Comments
This command defines the lowest value that can be entered for the attribute. This command is used with value type attributes. If the value type is an integer, you cannot define a negative value. If the value type is decimal, you can define a negative value.
Example
:ATTRNAME=x sheet width :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=X Sheet Width :ATTRSEL=N :ATTRINLEN=10 :ATTRSHORT=X Sheet Width :ATTRLONG=ENTER X Sheet Width :ATTRHIGH=9999 :ATTRLOW=9999 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
:ATTRTEXT=
:ATTRTEXT=
Purpose
Text for display type attributes.
Syntax
:ATTRTEXT=text
Comments
This command defines the text for display type attributes. This command is not used.
Example
:ATTRTITLE=
:ATTRTITLE=
Purpose
Text for select type attributes in the Select Attribute dialog box.
Syntax
:ATTRTITLE=text
Comments
This command defines the text that identifies the attribute in the Select Attribute dialog box.
Example
:ATTRNAME=init machine comp :ATTRTYPE=SELECT :ATTREMARK=Comp Lft, Rgt, Cancel :ATTRSEL=N :ATTRTITLE=Laser Compensation :ATTRSELSTR=Left :ATTRSELSTR=Right :ATTRSELSTR=Cancel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND
:ATTRSPACES=
:ATTRSPACES=
Purpose
Code space flag.
Syntax
:ATTRSPACES=YES or NO
Comments
This command allows spaces in the code output even when the global :SPACE=FALSE is set in the ? file.
Example
:ATTRNAME=TOOL COMMENT :ATTRTYPE=POST :ATTREMARK= :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|( :LEFT_PLACES=0 :RIGHT_PLACES=0 :UNITFLAG=NON_CONVERT :ATTRSPACES=YES :MODAL=YES :ATTRUSED=1 :ATTREND
:CODETYPE=
:CODETYPE=
Purpose
Define codeblock type.
Syntax
:CODETYPE=FORMAT :CODETYPE=SELECT :CODETYPE=SELECT_FORMAT :CODETYPE=HARDCODE
Comments
Parameter Description
FORMAT SELECT
SELECT_FORM Defines two variables. The first is a select and the second AT is a format type. Defines hardcoded output. HARDCODE
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :CANNOT_BE_SIGNED :MODAL=YES :ATTREND :ATTRNAME=DEBUG :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Debug :CODETYPE=SELECT :SELECT=1 :CODE=|||||Line|Move :SELECT=2 :CPDE=|||||Arc|Move :ATTRUSED=1 :ATTREND
:CODETYPE= :ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=SELECT_FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :VAR=OPR_FEED_TYPE :SELECT=1 :WORD_ADDRESS_BEF=|F| :VARB=F :LEFT_PLACES=2 :RIGHT_PLACES=4 :CANNOT_BE_SIGNED :MODAL=YES :SELECT=2 :WORD_ADDRESS_BEF=|F| :VARB=F :LEFT_PLACES=3 :RIGHT_PLACES=2 :CANNOT_BE_SIGNED :MODAL=YES :ATTREND :ATTRNAME=BLOCK DELETE :ATTRTYPE=POST :ATTREMARK= :CODETYPE=HARDCODE :CODE=/ :ATTREND
:CODE=
:CODE=
Purpose
Define code for code block.
Syntax
:CODE=hardcode
Comments
This command allows you to define a constant, not a variable.
Example
:ATTRNAME=BLOCK DELETE :ATTRTYPE=POST :ATTREMARK= :CODETYPE=HARDCODE :CODE=/ :ATTREND
:WORD_ADDRESS_BEF=
:WORD_ADDRESS_BEF=
Purpose
Word address before variable.
Syntax
:WORD_ADDRESS_BEF=output
Comments
This command allows you to define what to output in a FORMAT type attribute before the number has been output. Use the pipe (|) to put a space in the output.
Example
:ATTRNAME=PART NAME :ATTRTYPE=POST :ATTREMARK= :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|(|PART|NAME= :CAR=PART NAME :WORD_ADDRESS_AFT=|) :LEFT_PLACES=0 :RIGHT_PLACES=0 :UNITFLAG=NON_CONVERT :ATTRUSED=1 :ATTREND
:WORD_ADDRESS_AFT=
:WORD_ADDRESS_AFT=
Purpose
Word address after variable.
Syntax
:WORD_ADDRESS_BEF=output
Comments
This command allows you to define what to output in a FORMAT type attribute after the number has been output. Use the pipe (|) to put a space in the output.
Example
:ATTRNAME=PART NAME :ATTRTYPE=POST :ATTREMARK= :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|(|PART|NAME= :CAR=PART NAME :WORD_ADDRESS_AFT=|) :LEFT_PLACES=0 :RIGHT_PLACES=0 :UNITFLAG=NON_CONVERT :ATTRUSED=1 :ATTREND
:LEFT_PLACES=
:LEFT_PLACES=
Purpose
Number of places to the left of the implied decimal.
Syntax
:LEFT_PLACES=value
Comments
This command allows you to override the global G_LEFT_PLACES command for this attribute only.
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :CANNOT_BE_SIGNED :MODAL=YES :ATTREND
:RIGHT_PLACES=
:RIGHT_PLACES=
Purpose
Number of places to the right of the implied decimal.
Syntax
:RIGHT_PLACES=value
Comments
This command allows you to override the global G_RIGHT_PLACES command for this attribute only.
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :CANNOT_BE_SIGNED :MODAL=YES :ATTREND
:CANNOT_BE_DECIMAL
:CANNOT_BE_DECIMAL
Purpose
Forces integer output.
Syntax
:CANNOT_BE_DECIMAL
Comments
This command allows you to override the global DECIMAL=TRUE command for this attribute only.
Example
:ATTRNAME=N :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Sequence Number :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_N(SEQ,MAX_SEQUENCE) :WORD_ADDRESS_BEF=N :VAR=SEQ :LEFT_PLACES=4 :RIGHT_PLACES=0 :CANNOT_BE_DECIMAL :UNITFLAG=NON_CONVERT :ATTREND
:CANNOT_BE_LEADING
:CANNOT_BE_LEADING
Purpose
Global leading format flag.
Syntax
:CANNOT_BE_LEADING
Comments
This command allows you to override the global :LEADING=TRUE command for this attribute only. No leading zeros will be output.
Example
:ATTRNAME=TIME HOURS :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Time in Hours :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_N(SEQ,MAX_SEQUENCE) :WORD_ADDRESS_BEF=|ESTIMATED|MACHINE|TIME= :WORD_ADDRESS_AFT=|HRS.|| :LEFT_PLACES=3 :RIGHT_PLACES=04 :CANNOT_BE_LEADING :UNITFLAG=NON_CONVERT :ATTREND
:CANNOT_BE_TRAILING
:CANNOT_BE_TRAILING
Purpose
Global trailing format flag.
Syntax
:CANNOT_BE_TRAILING
Comments
This command allows you to override the global :TRAILING=TRUE command for this attribute only. No trailing zeros will be output.
Example
:ATTRNAME=TIME HOURS :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Time in Hours :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_N(SEQ,MAX_SEQUENCE) :WORD_ADDRESS_BEF=|ESTIMATED|MACHINE|TIME= :WORD_ADDRESS_AFT=|HRS.|| :LEFT_PLACES=3 :RIGHT_PLACES=04 :CANNOT_BE_TRAILING :UNITFLAG=NON_CONVERT :ATTREND
:CANNOT_BE_SIGNED
:CANNOT_BE_SIGNED
Purpose
Signed format definition.
Syntax
:CANNOT_BE_SIGNED
Comments
This command prevents the attribute from outputting a + or - sign to the output field. Only a positive number will be output.
Example
:ATTRNAME=TIME HOURS :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Time in Hours :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_N(SEQ,MAX_SEQUENCE) :WORD_ADDRESS_BEF=|ESTIMATED|MACHINE|TIME= :WORD_ADDRESS_AFT=|HRS.|| :LEFT_PLACES=3 :RIGHT_PLACES=04 :CANNOT_BE_SIGNED :UNITFLAG=NON_CONVERT :ATTREND
:MUST_BE_DECIMAL
:MUST_BE_DECIMAL
Purpose
Global decimal format flag.
Syntax
:MUST_BE_DECIMAL
Comments
This command sets the output to always have a decimal even if the output equals zero.
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :MUST_BE_DECIMAL :MODAL=YES :ATTREND
:MUST_BE_LEADING
:MUST_BE_LEADING
Purpose
Global leading format flag.
Syntax
:MUST_BE_LEADING
Comments
This command overrides the global :LEADING=FALSE command and always outputs leading zeros.
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :MUST_BE_LEADING :MODAL=YES :ATTREND
:MUST_BE_TRAILING
:MUST_BE_TRAILING
Purpose
Global trailing format flag.
Syntax
:MUST_BE_TRAILING
Comments
This command overrides the global :TRAILING=FALSE command and always outputs trailing zeros.
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :MUST_BE_TRAILING :MODAL=YES :ATTREND
:MUST_BE_SIGNED
:MUST_BE_SIGNED
Purpose
Signed format definition.
Syntax
:MUST_BE_SIGNED
Comments
This command forces the attribute to output a + or - sign to the output file.
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :MUST_BE_SIGNED :MODAL=YES :ATTREND
:MUST_BE_LEADING_SPACES
:MUST_BE_LEADING_SPACES
Purpose
Global leading spaces format flag.
Syntax
:MUST_BE_LEADING_SPACES
Comments
This command forces leading spaces in the output file. If G_LEFT_SPACES=3 and the number you output is -1., then you get a minus sign, one space, then 1. (- 1.). If the number output is 1., you will get two spaces, then 1. ( 1.). This command can be used for controllers where each space means something.
:MUST_BE_TRAILING_SPACES
:MUST_BE_TRAILING_SPACES
Purpose
Global trailing spaces format flag.
Syntax
:MUST_BE_TRAILING_SPACES
Comments
This command forces trailing spaces in the output file. If G_RIGHT_SPACES=4 and the number you output is -1., then you get a minus sign, 1., then four spaces (-.1 ). If the number output is 1.1, you will get the number and three spaces, then 1. (1.1 ).
:MODAL
:MODAL
Purpose
Modality for code block.
Syntax
:MODAL=YES or NO
Comments
If MODAL=YES, then the attribute does not get output to the output file again until the attribute's value changes. MODAL=NO forces the attribute to be output to the output file. If this command is not used, the default is NO.
Example
:ATTRNAME=F :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate IPM/MPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_F_(MACH,REG_E,F) :WORD_ADDRESS_BEF=|F :LEFT_PLACES=3 :RIGHT_PLACES=4 :MUST_BE_SIGNED :MODAL=YES :ATTREND
:UNITFLAG=
:UNITFLAG=
Purpose
Global English/Metric definition.
Syntax
:UNITFLAG=CONVERT or NON_CONVERT
Comments
The default for this command is CONVERT. If the part is saved as metric, then the output will be converted to metric. If set to NON_CONVERT, then the output will always be in inches.
Example
:ATTRNAME=TIME HOURS :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Time in Hours :CODETYPE=FORMAT :ATTRCFUNC=CALC_REG_N(SEQ,MAX_SEQUENCE) :WORD_ADDRESS_BEF=|ESTIMATED|MACHINE|TIME= :WORD_ADDRESS_AFT=|HRS.|| :LEFT_PLACES=3 :RIGHT_PLACES=04 :CANNOT_BE_SIGNED :UNITFLAG=NON_CONVERT :ATTREND
:METRIC_UNITS
:METRIC_UNITS
Purpose
Metric unit definition.
Syntax
:METRIC_UNITS=MM :METRIC_UNITS=CM :METRIC_UNITS=M
Comments
This command converts the output to always be whatever METRIC-UNITS is set to: MM (millimeters), CM (centimeters) or M (meters). The default is MM (millimeters). Some controllers may require a different metric unit.
Example
:ATTRNAME=REDUCED FEED :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Reduced feed rate :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|F :VAR=REDUCED FEED :LEFT_PLACES=4 :RIGHT_PLACES=0 :MODAL=YES :CANNOT_BE_SIGNED :CANNOT_BE_DECIMAL :MUST_BE_TRAILING :METRIC_UNITS=M :ATTREND
:ATTRFUNC=
:ATTRFUNC=
Purpose
Define the function to process the attribute.
Syntax
:ATTRFUNC=function
Comments
This command allows you to call a section you specify. When this attribute is attached to an entity, it will then goto the specified function (:SECTION=) to output the code.
Example
In this example, the output is M01.
:ATTRNAME=optional stop :ATTRTYPE=DISPLAY :ATTREMARK=Optional Stop M01 :ATTRSEL=Y :ATTRTEXT= :ATTRFUNC=optional_stop :CODETYPE=HARDCODE :CODE=|M01 :ATTRUSED=1 :ATTREND :SECTION=optional_stop :T:<optional_stop>
:ATTRCFUNC=
:ATTRCFUNC=
Purpose
Define function to process the attribute.
Syntax
:ATTRCFUNC=function
Comments
This command allows you to call a section you specify. When this attribute is used, it will first goto the specified function (:SECTION=), then return back to the attribute and output the contents.
Example
:ATTRNAME=R :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=R Radius :CODETYPE=FORMAT :ATTRCFUNC=CALC_RADIUS(R,MACH,REG_R) :WORD_ADDRESS_BEF=|R :MODAL=YES :ATTREND :SECTION=CALC_RADIUS(RVAL,MACH,REGISTER) * * Arc Radius * :C: IF ATTROVERRIDE=YES THEN :C: RVAL=ATTRDVALUE ELSE RVAL=ARC_RADIUS ENDIF :C: SETON () :C: MACH(REGISTER)=RVAL :C: IF ARC_INC_ANGLE>HALF_CIRCLE OR :C: ARC_INC_ANGLE=HALF_CIRCLE :C: THEN RVAL=(-MACH(REGISTER)) ENDIF
:SELECT=
:SELECT=
Purpose
First value for codeblock.
Syntax
:SELECT=text
Comments
This command allows you have hardcoded selectable output.
Example
:ATTRNAME=G CODE :ATTRTYPE=POST :ATTREMARK=G code parameters :CODETYPE=SELECT :VAR=MOVE TYPE :SELECT=LINE :CODE=|G01 :MODAL=YES :SELECT=CW ARC :CODE=|G02 :MODAL=YES :SELECT=CCW ARC :CODE=|G03 :MODAL=YES :SELECT=RAPID :CODE=|G00 :MODAL=YES :ATTREND
:VAR=
:VAR=
Purpose
First variable for code block.
Syntax
:VAR=variable
Comments
This command defines the first variable in a :CODETYPE=SELECT_FORMAT type attribute.
Example
:ATTRNAME=X :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=X End :CODETYPE=SELECT_FORMAT :ATTRCFUNC=CALC_ENDPOINT(X,Y_POS,GC,GG,G_GROUP,MACH,PREV,REG_X, RAD_OR_DIAM,SX) :VAR=CURRENT_MODE :SELECT=1 :WORD_ADDRESS_BEF=|X :VERB=X :MODAL=YES :SELECT=2 :WORD_ADDRESS_BEF=|U :VERB=X :CODE=|G03 :MODAL=YES :ATTREND
:VARB=
:VARB=
Purpose
Second variable for code block.
Syntax
:VARB=variable
Comments
This command defines the second variable in a :CODETYPE=SELECT_FORMAT type attribute.
Example
:ATTRNAME=X :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=X End :CODETYPE=SELECT_FORMAT :ATTRCFUNC=CALC_ENDPOINT(X,Y_POS,GC,GG,G_GROUP,MACH,PREV,REG_X, RAD_OR_DIAM,SX) :VAR=CURRENT_MODE :SELECT=1 :WORD_ADDRESS_BEF=|X :VERB=X :MODAL=YES :SELECT=2 :WORD_ADDRESS_BEF=|U :VERB=X :CODE=|G03 :MODAL=YES :ATTREND
:ATTRVCNT=
:ATTRVCNT=
Purpose
Defines attribute as an array.
Syntax
:ATTRVCNT=value
Comments
This command defines the attribute as an array and the value indicates the size of the array.
Example
:ATTRNAME=GC :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=G Codes :ATTREND
:COLUMN=
:COLUMN=
Purpose
Position of code output.
Syntax
:COLUMN=value
Comments
This command determines the position of the code output. :COLUMN=9 positions the th output in the 10 place from the left. This command is used for some older controllers that require fielded output where every space means something.
Example
:ATTRNAME=S :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Spindle RPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_INT_REGISTER(S,MACH,OPR_SPEED,REG_S) :WORD_ADDRESS_BEF=SP= :WORD_ADDRESS_AFT=|RPM :LEFT_PLACES=4 :RIGHT_PLACES=0 :COLUMN=9 :RIGHT_JUST=4 :ATTREND
N001
S1000
:LEFT_JUST=
:LEFT_JUST=
Purpose
Left justification of the code output.
Syntax
:LEFT_JUST=value
Comments
This command determines the position of the code output from where you were last, starting from the left.
Example
:ATTRNAME=S :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Spindle RPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_INT_REGISTER(S,MACH,OPR_SPEED,REG_S) :WORD_ADDRESS_BEF=SP= :WORD_ADDRESS_AFT=|RPM :LEFT_PLACES=4 :RIGHT_PLACES=0 :LEFT_JUST=7 :ATTREND
N001S1000 M03
:RIGHT_JUST=
:RIGHT_JUST=
Purpose
Right justification of the code output.
Syntax
:RIGHT_JUST=value
Comments
This command determines the position of the code output from where you were last, starting from the right.
Example
:ATTRNAME=S :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Spindle RPM :CODETYPE=FORMAT :ATTRCFUNC=CALC_INT_REGISTER(S,MACH,OPR_SPEED,REG_S) :WORD_ADDRESS_BEF=SP= :WORD_ADDRESS_AFT=|RPM :LEFT_PLACES=4 :RIGHT_PLACES=0 :RIGHT_JUST=7 :ATTREND
N001 S1000M03
:ATTRLNG=
:ATTRLNG=
Purpose
Add attribute to language file.
Syntax
:ATTRLNG=YES or NO
Comments
This command defines whether the attribute will be added to the language file (.LNG) when the post is compiled. The compiler automatically knows which attributes to add to the language file and this command is rarely used.
Example
:ATTRNAME=R :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=R Radius :CODETYPE=FORMAT :ATTRCFUNC=CALC_RADIUS(R,MACH,REG_R) :WORD_ADDRESS_BEF=|R :ATTRLNG=YES :MODAL=YES :ATTREND
:ATTRID
:ATTRID
Purpose
Attribute ID number.
Syntax
:ATTRID=501
Comments
This command determines the ID number for any attribute that is defined in the MASTER.ATR file.
Example
:ATTRNAME=MACHINE NAME :ATTRTYPE=DESCRIPTOR :ATTRVTYPE=CHARACTER :ATTRID=501 :ATTREND
:IDHIGH
:IDHIGH
Purpose
Highest attribute ID in MASTER.ATR file.
Syntax
:IDHIGH=17501
Comments
This command determines the highest ID number used in the MASTER.ATR file. This command should be put at the beginning of the MASTER.ATR file.
Example
None.
:ATTRMACHINE
:ATTRMACHINE
Purpose
Set of machine-dependent attributes.
Syntax
:ATTRMACHINE=PUNCH
Comments
After this command is put in the post, any attachable attribute that is defined after it will be assumed to be the system you entered in this command.
Example
None.
:SECTION
:SECTION
Purpose
Start function definitions.
Syntax
:SECTION=CALC_REMOVE_OFFSET
Comments
This command determines the name of a section and what type of section it is. If the :SECTION=CALC_? section equals starts with a CALC, then it is a calculation section; otherwise, it is a template section.
Example
:SECTION=CALC_REMOVE_OFFSET :C: IF DEFINING_MACRO=YES AND JUST_STARTED_MACRO=1 :C: THEN SAV_MODE=CURRENT_MODE JUST_STARTED_MACRO=2 :C: ENDIF :C: IF OFFSET_RESIDENT=NO THEN RETURN ENDIF :C: X_OFFSET=(LAST_X-SYS_X_OFFSET) :C: Y_OFFSET=(LAST_Y-SYS_Y_OFFSET) :C: CALL(OFFSET_PART_PUNCH) :C: OFFSET_RESIDENT=NO :SECTION=OFFSET_PART_PUNCH :T:<SEQ><ABS_PRESET><X_OFFSET><Y_OFFSET><EOL>
:OPERID
:OPERID
Purpose
Mill and Lathe operation ID name.
Syntax
:OPERID=MILL_PROFILING
Comments
This command determines the name of an operation ID. Any OPERLIST question asked after this command will be added to the operation questions in CAD. Operation List:
DRILLING SPOT_DRILLING PECKING TAPPING BORING HIGH_SPEED_PECKING VARIABLE_PECKING REVERSE_TAPPING REAMING REAMING_DWELL BORE_DWELL BACK_BORING FINE_BORING MILL_DRILLING MILL_PROFILING MILL_LACE MILL_POCKET MILL_MISC MILL_SPECIAL MILL_MACRO MILL_UV_CUT MILL_SLICE_CUT MILL_ROUGH_CUT MILL_CURVE_CUT MILL_TOPO_CUT MILL_FREEFORM_CUT MILL_PENCIL_CUT LATHE_DRILLING LATHE_PROFILING LATHE_ROUGHING LATHE_GROOVING LATHE_THREADING LATHE_MISC LATHE_SPECIAL LATHE_CUTOFF EDM_PROFILE EDM_SKIM EDM_CORE EDM_MACROS
Example
:OPERID=MILL_PROFILING :OPERLIST=machine compensation :OPERLIST=abs inc :OPERLIST=work coord :OPERLIST=coolant :OPEREND
:OPERSUB
:OPERSUB
Purpose
Mill drilling operation ID name.
Syntax
:OPERSUB=DRILLING
Comments
This command determines the name of a drilling operation ID. Any OPERLIST questions asked after this command will be added to the operation questions in CAD. This command is used in a drilling operation only. It should be placed after the :OPERID=MILL_DRILLING.
Example
:OPERID=MILL_DRILLING :OPERSUB=DRILLING :OPERLIST=abs inc :OPERLIST=work coord :OPERLIST=coolant :OPEREND
:OPERLIST
:OPERLIST
Purpose
Mill and Lathe operation question.
Syntax
:OPERLIST=abs inc
Comments
This command determines the name of an attribute question that is to be asked in CAD.
Example
:OPERID=MILL_PROFILING :OPERLIST=machine compensation :OPERLIST=abs inc :OPERLIST=work coord :OPERLIST=coolant :OPEREND
:OPEREND
:OPEREND
Purpose
Mill and Lathe operation definition end.
Syntax
:OPEREND
Comments
This command determines the end of an operation questions.
Example
:OPERID=MILL_PROFILING :OPERLIST=machine compensation :OPERLIST=abs inc :OPERLIST=work coord :OPERLIST=coolant :OPEREND
:DEFINE
:DEFINE
Purpose
Hardcoded definitions.
Syntax
:DEFINE RAPID_Z_UP=8
Comments
This command sets a define variable equal to a value. In the example below RAPID_Z_UP=8 sets the value to eight. This command needs to be set at the beginning of the attribute list in the library.
Example
:DEFINE RAPID_Z_UP=8
:LIBRARY
:LIBRARY
Purpose
Library definition.
Syntax
:LIBRARY=\MILL\LIBRARY\GENERAL.LIB
Comments
This command defines the name and location of the post library. The example below shows that the GENERAL.LIB file is located in the \MILL\LIBRARY directory.
Example
:LIBRARY=\MILL\LIBRARY\GENERAL.LIB
:INCLUDE
:INCLUDE
Purpose
Include definition.
Syntax
:INCLUDE=\MILL\TOOLS\GENERAL.T32
Comments
This command defines the name and location of another file to be used when compiling.
Example
:INCLUDE=\MILL\TOOLS\GENERAL.T32
Syntax
FLAGGED(CAM_MOVE_FLAG, CAM_APPROACH)
Comments
CAM_MOVE_FLAG is a multiple bit variable and CAM_APPROACH is the value it will look for. The bit value of CAM_APPROACH is 2. What the command FLAGGED is going to return is a True or False value. In the CAM_MOVE_FLAG variable is CAM_APPROACHs bit value equal
to True or False.
Example
:C: IF FLAGGED(CAM_MOVE_FLAG,CAM_APPROACH)=TRUE THEN :C: IF FLAGGED(CAM_MOVE_FLAG, CAM_MOVE_X)=TRUE AND :C: FLAGGED(CAM_MOVE_FLAG, CAM_MOVE_Z)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE) :C: RETURN :C: ELSE :C: IF FLAGGED(CAM_MOVE_FLAG,CAM_MOVE_X)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE_X) :C: RETURN :C: ELSE :C: IF FLAGGED(CAM_MOVE_FLAG,CAM_MOVE_Z)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE_Z) :C: RETURN :C: ENDIF :C: ENDIF :C: ENDIF :C: ENDIF
:STATION_NUM
:STATION_NUM
Purpose
Tool station number,
Syntax
:STATION_NUM=01
Comments
This command defines the tool number.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:AUTOINDEX
:AUTOINDEX
Purpose
Tool station number.
Syntax
:AUTOINDEX=YES or NO
Comments
This command defines whether this is auto indexable or not. This should be set to NO if not a punch. This should be set to YES if punch station is auto indexable.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:KEYSIZE
:KEYSIZE
Purpose
Tool station key size.
Syntax
:KEYSIZE=4
Comments
This command defines what size the key is: 1 = .5 2 = 1.25 3 = 2.0 4 = 3.5 5 = 4.5 6 = greater than 4.5 If not a punch tool, then set KEYSIZE=5
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:KEYED
:KEYED
Purpose
Tool station keyed.
Syntax
:KEYED=YES or NO
Comments
This command defines if the tool is keyed. Normally, you would set this to YES.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:LARGEDIAM
:LARGEDIAM
Purpose
Tool station largest diameter used.
Syntax
:LARGEDIAM=3.000000
Comments
This command defines how big a diameter tool you can use in this station.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:XWDEAD
:XWDEAD
Purpose
Define X dead zone.
Syntax
:XWDEAD=8.000000
Comments
This command defines how big the "X" width dead zone of a punch clamp is. If the system is not a punch, laser or plasma then it does not matter what you set this to.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:YHDEAD
:YHDEAD
Purpose
Define Y dead zone.
Syntax
:YHDEAD=4.000000
Comments
This command defines how big the "Y" height dead zone of a punch clamp is. If the system is not a punch, laser or plasma, you can set this to anything.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:XLORANGE
:XLORANGE
Purpose
Define X travel low range.
Syntax
:XLORANGE=1.000000
Comments
This command defines how far to the left side of the table you can travel or how far in the X minus direction you can travel. If the system is not a punch, plasma or laser, then you can set this to anything.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:YLORANGE
:YLORANGE
Purpose
Define Y travel low range.
Syntax
:YLORANGE=1.000000
Comments
This command defines how far in the Y minus direction you can travel. If the system is not a punch, plasma or laser, then you can set this to anything.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:XHIRANGE
:XHIRANGE
Purpose
Define X travel high range.
Syntax
:XHIRANGE=50.000000
Comments
This command defines how far in the X plus direction you can travel. If the system is not a punch, plasma or laser, then you can set this to anything.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:YHIRANGE
:YHIRANGE
Purpose
Define Y travel high range.
Syntax
:YHIRANGE=50.000000
Comments
This command defines how far in the Y plus direction you can travel. If the system is not a punch, plasma or laser, then you can set this to anything.
Example
STATION_NUM=01 AUTOINDEX=NO KEYSIZE=4 KEYED=YES LARGEDIAM=3.000000 XWDEAD=8.000000 YHDEAD=4.000000 XLORANGE=-1.000000 YLORANGE=-1.000000 XHIRANGE=50.000000 YHIRANGE=30.000000
:BCL_FORMAT
:BCL_FORMAT
Purpose
Output BCL format.
Syntax
:BCL_FORMAT=TRUE or FALSE
Comments
This command determines whether the output is BCL or not. BCL stands for Binary Cutter Location. The file is a fixed binary output called *.BCL.
:SYSTEM
:SYSTEM
Purpose
System type.
Syntax
:SYSTEM=PUNCH
Comments
This command determines what system you are in:
PLASMA PUNCH PLASMA/PUNCH LASER EDM LATHE MILL LATHE/MILL LATHE4AX
:LEADING
:LEADING
Purpose
Global leading flag.
Syntax
:LEADING=TRUE or FALSE
Comments
This command determines if the code output has leading zeros or not.
:TRAILING
:TRAILING
Purpose
Global trailing flag.
Syntax
:TRAILING=TRUE OR FALSE
Comments
This command determines if the code output has trailing zeros or not.
:DECIMAL
:DECIMAL
Purpose
Global decimal flag.
Syntax
:DECIMAL=TRUE or FALSE
Comments
This command if code output has decimals or not.
:QUAD
:QUAD
Purpose
Global quadrant arc flag.
Syntax
:QUAD=TRUE, FALSE, NO181 or COORD
Comments
This command determines if code output has quadrant arcs or not. I If QUAD=TRUE, a 360 degree arc will take four blocks of code to generate that arc. If QUAD=FALSE, a 360 degree arc will take only one block of code to generate that arc. If QUAD=NO181, the code will generate that arc in two moves. If QUAD=COORD, the code will generate tiny line moves set by the chord_length attribute instead of arcs.
:SPACE
:SPACE
Purpose
Global spaces flag.
Syntax
:SPACE=TRUE or FALSE
Comments
This command determines if code output has spaces or not.
:ARCS
:ARCS
Purpose
Global arc flag.
Syntax
:ARCS=RADIAL or CENTER
Comments
This command determines if arcs will output a radial command or I's and J's. If set to RADIAL, then arc command output will output R's. If set to CENTER, then arc command output will output I's and J's.
:METRIC_SHIFT
:METRIC_SHIFT
Purpose
Global metric shift flag.
Syntax
:METRIC_SHIFT=1
Comments
This defines the amount of shift in the output when switching to metric.
:G_LEFT_PLACES
:G_LEFT_PLACES
Purpose
Global decimal places to the left of the decimal.
Syntax
:G_LEFT_PLACES=3
Comments
This defines the decimal places to the left of the decimal.
:G_RIGHT_PLACES
:G_RIGHT_PLACES
Purpose
Global decimal places to the right of the decimal.
Syntax
:G_RIGHT_PLACES=3
Comments
This defines the decimal places to the right of the decimal.
:G_INT_LEFT_PLACES
:G_INT_LEFT_PLACES
Purpose
Global integer places to the left of the decimal.
Syntax
:G_INT_LEFT_PLACES=2
Comments
This defines the integer places to the left of the decimal.
:INT_LEADING
:INT_LEADING
Purpose
Global integer leading flag.
Syntax
:INT_LEADING=TRUE or FALSE
Comments
This command defines if integer has leading zeros or not.
:INT_TRAILING
:INT_TRAILING
Purpose
Global integer trailing flag.
Syntax
:INT_TRAILING=TRUE or FALSE
Comments
This command defines if integer has trailing zeros or not.
:PQCOMP
:PQCOMP
Purpose
P and Q compensation flag.
Syntax
:PQCOMP=TRUE or FALSE
Comments
This command is reserved for future use.
:QUALIFIED_TOOLING
:QUALIFIED_TOOLING
Purpose
External tool file.
Syntax
:QUALIFIED_TOOLING=\PROCAD\TPPL\TOOLFILE.F6M
Comments
This command can be used if you want a specific tool file with tool offset lengths. The file has 5 fields in it. Field 1 is a record field Fields2 and 3 are decimal fields Field 4 is an integer field Field 5 is a character field. Commas are used as delimiters.
Example
Below is an example of what the file might have in it.
********************************************** ** Z Feed X Feed RPM Comment **------------------------------------------*1, 5, 10, 1200, 1" End Mill * *2, 6.375, 12.5, 1100, 2" Ball Nose *
**************************************************
:SINGLE_MACROS
:SINGLE_MACROS
Purpose
Single macro flag.
Syntax
:SINGLE_MACROS=YES or NO
Comments
This command defines if post can output single macro calls.
:MIRROR_MACROS
:MIRROR_MACROS
Purpose
Mirror macro flag.
Syntax
:MIRROR_MACROS=YES or NO
Comments
This command is reserved for future use.
:MACROS_REDEFINE
:MACROS_REDEFINE
Purpose
Redefine macro flag.
Syntax
:MACROS_REDEFINE=YES or NO
Comments
This command determines if a macro has to be redefined each time it is called.
:MULT_MACROS
:MULT_MACROS
Purpose
Multiple macro flag.
Syntax
:MULT_MACROS=YES or NO
Comments
This command defines if post can output multiple macro calls.
:LAYOUT_MACROS
:LAYOUT_MACROS
Purpose
Layout of macro's flag.
Syntax
:LAYOUT_MACROS=YES or NO
Comments
This command defines if post can output multiple macro calls.
:MACROS_CALL
:MACROS_CALL
Purpose
Calling single macro flag.
Syntax
:MACROS_CALL=BEFORE or AFTER
Comments
This command defines if post will call a single macro before or after the subroutine. Used only if MACROS_MAIN=DURING.
:MACROS_MULT
:MACROS_MULT
Purpose
Calling multiple macro flag.
Syntax
:MACROS_MULT=BEFORE or AFTER
Comments
This command defines if post will call a single macro before or after the subroutine. Used only if MACROS_MAIN=DURING.
:MACROS_LAYOUT
:MACROS_LAYOUT
Purpose
Macro layout flag.
Syntax
:MACROS_LAYOUT=BEFORE or AFTER
Comments
This command defines if post will call a section called CALC_MULTIPLE_MACRO_DEFINE_PUNCH.
:MACROS_MAIN
:MACROS_MAIN
Purpose
Subroutine call flag.
Syntax
:MACROS_MAIN=BEFORE, DURING or AFTER
Comments
This command defines if the subroutine will be called before, after or during the main program.
:MACROS_OUT
:MACROS_OUT
Purpose
Macro output flag.
Syntax
:MACROS_OUT=CALLED or NESTED
Comments
If set to CALLED, then the output will be in the order it was created in CAD. If set to NESTED, then output will be in the reverse order.
:MACROS_TAPE
:MACROS_TAPE
Purpose
Macro output flag.
Syntax
:MACROS_TAPE=SAME or SEPARATE
Comments
If set to SAME, then the output will be in the same file *.TXT. If set to SEPARATE, then output of subroutine will be in a file called *.SUB.
:MACROS_XYZ
:MACROS_XYZ
Purpose
Allow Z axis in macros.
Syntax
:MACROS_XYZ=TRUE or FALSE
Comments
This command allows the Z axis to step and repeat in a macro. This can only be done in Mill.
:MACRO_ROTATE
:MACRO_ROTATE
Purpose
Allow macro rotation.
Syntax
:MACRO_ROTATE=TRUE or FALSE
Comments
If you set to MACRO_ROTATE_X=FALSE, MACRO_ROTATE_Y=FALSE and MACRO_ROTATE_Z=FALSE, then XY numbers will rotate instead OD an angle. This can only be done in Mill.
:MACRO_ROTATE_X
:MACRO_ROTATE_X
Purpose
Allow X axis rotation.
Syntax
:MACRO_ROTATE_X=TRUE or FALSE
Comments
Allows macro to rotate about the X axis. This can only be done in Mill.
:MACRO_ROTATE_Y
:MACRO_ROTATE_Y
Purpose
Allow Y axis rotation.
Syntax
:MACRO_ROTATE_Y=TRUE or FALSE
Comments
Allows macro to rotate about the Y axis. This can only be done in Mill.
:MACRO_ROTATE_Z
:MACRO_ROTATE_Z
Purpose
Allow Z axis rotation.
Syntax
:MACRO_ROTATE_Z=TRUE or FALSE
Comments
Allows macro to rotate about the Z axis. This can only be done in Mill.
:EDM4AXIS
:EDM4AXIS
Purpose
EDM 4 axis definition.
Syntax
:EDM4AXIS=TRUE or FALSE
Comments
Defines whether this post can do X,Y,U,V 4-axis output. This can only be done in EDM.
:TAPER
:TAPER
Purpose
EDM 2 axis taper definition.
Syntax
:TAPER=TRUE or FALSE
Comments
Defines whether this post can do 2 axis with taper output. This can only be done in EDM.
:ARC_TO_ARC
:ARC_TO_ARC
Purpose
EDM 4 axis arc definition.
Syntax
:ARC_TO_ARC=TRUE or FALSE
Comments
Defines whether this post can do 4 axis GO2 or GO3 output if top and bottom surface arcs have equal radii. This can only be done in EDM.
:SHARP_CORNER
:SHARP_CORNER
Purpose
EDM 2 axis corner definition.
Syntax
:SHARP_CORNER=TRUE or FALSE
Comments
Defines whether this post can do 2 axis sharp corners. This can only be done in EDM.
:EQUAL_CORNER
:EQUAL_CORNER
Purpose
EDM 2 axis corner definition.
Syntax
:EQUAL_CORNER=TRUE or FALSE
Comments
Defines whether this post can do 2 axis equal corners. This can only be done in EDM.
:INDEPENDENT_CORNER
:INDEPENDENT_CORNER
Purpose
EDM 2 axis corner definition.
Syntax
:INDEPENDENT_CORNER=TRUE or FALSE
Comments
Defines whether this post can do 2 axis independent corners. This can only be done in EDM.
:CONIC_CORNER
:CONIC_CORNER
Purpose
EDM 2 axis corner definition.
Syntax
:CONIC_CORNER=TRUE or FALSE
Comments
Defines whether this post can do 2 axis conic corners. This can only be done in EDM.
:CHAMFER_CORNER
:CHAMFER_CORNER
Purpose
EDM 2 axis corner definition.
Syntax
:CHAMFER_CORNER=TRUE or FALSE
Comments
Defines whether this post can do 2 axis chamfer corners. This can only be done in EDM.
:TAPER_DURING
:TAPER_DURING
Purpose
EDM 2 axis corner definition.
Syntax
:TAPER_DURING=TRUE or FALSE
Comments
Defines whether this post can do 2 axis taper during a move. This can only be done in EDM.
:LOOK_AHEAD
:LOOK_AHEAD
Purpose
EDM look ahead definition.
Syntax
:LOOK_AHEAD=1
Comments
Defines how many entities to look ahead for compensation. This can only be done in EDM.
:TAPER_FILLET
:TAPER_FILLET
Purpose
EDM taper fillet definition.
Syntax
:TAPER_FILLET=TRUE or FALSE
Comments
Defines if controller can do taper filleting. This can only be done in EDM.
:LIVE_Y_AXIS
:LIVE_Y_AXIS
Purpose
Lathe/Mill Y axis definition.
Syntax
:LIVE_Y_AXIS=TRUE or FALSE
Comments
Defines if controller can do Y axis moves in Live C post. This can only be done in Lathe/Mill.
:OD_MILL
:OD_MILL
Purpose
Lathe/Mill OD mill definition.
Syntax
:OD_MILL=FREE, FIXED or BOTH
Comments
Defines if the rotation axis on OD milling can be free, fixed or both free and fixed. This can only be done in Lathe/Mill.
:OD_DRILL
:OD_DRILL
Purpose
Lathe/Mill OD drill definition.
Syntax
:OD_DRILL=FREE, FIXED or BOTH
Comments
Defines if the rotation axis on OD drilling can be free, fixed or both free and fixed. This can only be done in Lathe/Mill.
:OD_ARC
:OD_ARC
Purpose
Lathe/Mill OD arc definition.
Syntax
:OD_ARC=FREE, FIXED or BOTH
Comments
Defines if the rotation axis on OD arcs can be free, fixed or both free and fixed. This can only be done in Lathe/Mill.
:FACE_MILL
:FACE_MILL
Purpose
Lathe/Mill Face mill definition.
Syntax
:FACE_MILL=FREE, FIXED or BOTH
Comments
Defines if the rotation axis on face milling can be free, fixed or both free and fixed. This can only be done in Lathe/Mill.
:FACE_DRILL
:FACE_DRILL
Purpose
Lathe/Mill Face drill definition.
Syntax
:FACE_DRILL=FREE, FIXED or BOTH
Comments
Defines if the rotation axis on face drilling can be free, fixed or both free and fixed. This can only be done in Lathe/Mill.
:FACE_ARC
:FACE_ARC
Purpose
Lathe/Mill Face arc definition.
Syntax
:FACE_ARC=FREE, FIXED or BOTH
Comments
Defines if the rotation axis on face arcs can be free, fixed or both free and fixed. This can only be done in Lathe/Mill.
:LATHE
:LATHE
Purpose
Mill 4th axis lathe definition.
Syntax
:LATHE=TRUE or FALSE
Comments
This command should be set to FALSE if doing a mill 4th axis cutting post.
:5AXIS_MILLING
:5AXIS_MILLING
Purpose
Allows access to 5 axis milling.
Syntax
:5AXIS_MILLING=TRUE or FALSE
Comments
This command should be set to FALSE if not using 5 axis work. This can only be done in 3D CAD.
:4AXIS_X_MILLING
:4AXIS_X_MILLING
Purpose
Allows access to 4 axis milling.
Syntax
:4AXIS_X_MILLING=TRUE or FALSE
Comments
This command should be set to FALSE if not using 4 axis work. This command should be set to TRUE if rotating about the X axis. This can only be done in 3D CAD.
:4AXIS_Y_MILLING
:4AXIS_Y_MILLING
Purpose
Allows access to 4 axis milling.
Syntax
:4AXIS_Y_MILLING=TRUE or FALSE
Comments
This command should be set to FALSE if not using 4 axis work. This command should be set to TRUE if rotating about the Y axis. This can only be done in 3D CAD.
:HELICAL
:HELICAL
Purpose
This command allows helical arc moves at start of profile.
Syntax
:HELICAL=TRUE or FALSE
Comments
This command is reserved for future use.
:MAXIMUM_LINE
:MAXIMUM_LINE
Purpose
This command lets you set the maximum line length of *.TXT files.
Syntax
:MAXIMUM_LINE=100
Comments
The system default for this command is 100. If 100 is not a problem, then you can leave this command out of your source.
:USE_SPECIAL_TOOL_TYPE
:USE_SPECIAL_TOOL_TYPE
Purpose
This command allows special tooling.
Syntax
:USE_SPECIAL_TOOL_TYPE=TRUE or FALSE
Comments
If not using special tool type, set this command to FALSE. If this command is set to TRUE, a special tool dialog box displays.
:SLOW_INDEXER
:SLOW_INDEXER
Purpose
Allows optimized autoindex output.
Syntax
:SLOW_INDEXER=TRUE or FALSE
Comments
If this command should be set to TRUE, the system will generate optimized autoindex angles. It will punch all entities with the same autoindex angle, then go to the next autoindex angle, then the next until finished.
:SLOW_INDEXER
System Variables
System Variables
Variable
NO YES ABS_X_END ABS_Y_END ABS_Z_END ABS_C_END ABS_U_END ABS_V_END ABS_W_END N_ABS_X_END N_ABS_Y_END N_ABS_Z_END N_ABS_C_END N_ABS_U_END N_ABS_V_END N_ABS_W_END P_ABS_X_END P_ABS_Y_END P_ABS_Z_END P_ABS_C_END P_ABS_U_END P_ABS_V_END P_ABS_W_END O_ABS_X_END O_ABS_Y_END ABS_X_START ABS_Y_START ABS_Z_START ABS_C_START ABS_U_START ABS_V_START ABS_W_START N_ABS_X_START N_ABS_Y_START N_ABS_Z_START N_ABS_C_START N_ABS_U_START N_ABS_V_START N_ABS_W_START
METRIC DECIMAL
Type
CHARACTER CHARACTER METRIC DECIMAL
Usage Its value equals 0. Its value equals 1. Absolute X,Y,Z,C end point of move. EDM: Absolute U,V secondary surface end point of move. Lathe: Absolute U,W front turret end point of move. Absolute X,Y,Z,C end point of next move. EDM: Absolute U,V secondary surface end point of next move. Lathe: Absolute U,W front turret end point of next move. Absolute X,Y,Z,C end point of previous move. EDM: Absolute U,V secondary surface end point of previous move. Lathe: Absolute U,W front turret end point of previous move. Punch: Original absolute X,Y end point of a move. Absolute X,Y,Z,C start point of move. EDM: Absolute U,V secondary surface start point of move. Lathe: Absolute U,W front turret start point of move Absolute X,Y,Z,C start point of next move. EDM: Absolute U,V secondary surface start point of next move. Lathe: Absolute U,W front turret start point of next move.
METRIC DECIMAL
System Variables
Variable
P_ABS_X_START P_ABS_Y_START P_ABS_Z_START P_ABS_C_START P_ABS_U_START P_ABS_V_START P_ABS_W_START O_ABS_X_START O_ABS_Y_START INC_X_END INC_Y_END INC_Z_END INC_C_END INC_U_END INC_V_END INC_W_END N_INC_X_END N_INC_Y_END N_INC_Z_END N_INC_C_END N_INC_U_END N_INC_V_END N_INC_W_END P_INC_X_END P_INC_Y_END P_INC_Z_END P_INC_C_END P_INC_U_END P_INC_V_END P_INC_W_END ABS_I_CENTER ABS_J_CENTER ABS_K_CENTER ABS_L_CENTER
Type
Usage Absolute X,Y,Z,C start point of previous move. EDM: Absolute U,V secondary surface start point of previous move. Lathe: Absolute U,W front turret start point of previous move. Punch: Original absolute X,Y start point of a move.
METRIC DECIMAL
X,Y,Z,C Signed incremental distance of move. EDM: U,V secondary surface signed incremental distance of move. Lathe: U,W front turret signed incremental distance of move. X,Y,Z,C Signed incremental distance of next move. EDM: U,V secondary surface signed incremental distance of next move. Lathe: U,W front turret signed incremental distance of next move.
METRIC DECIMAL
X,Y,Z,C Signed incremental distance of previous move. EDM: U,V secondary surface signed incremental distance of previous move. Lathe: U,W front turret signed incremental distance of previous move. I,J absolute center point of arc. EDM: K,L absolute center point of secondary surface arc. Lathe: K,L absolute center point of front turret arc. I,J absolute center point of next arc. EDM: K,L absolute center point of next secondary surface arc. Lathe: K,L absolute center point of next front turret arc.
METRIC DECIMAL
System Variables
Variable
P_ABS_I_CENTER P_ABS_J_CENTER P_ABS_K_CENTER P_ABS_L_CENTER
Type
Usage I,J absolute center point of previous arc. EDM: K,L absolute center point of previous secondary surface arc. Lathe: K,L absolute center point of previous front turret arc.
INC_I_CENTER INC_J_CENTER INC_K_CENTER INC_L_CENTER N_INC_I_CENTER N_INC_J_CENTER N_INC_K_CENTER N_INC_L_CENTER P_INC_I_CENTER P_INC_J_CENTER P_INC_K_CENTER P_INC_L_CENTER
METRIC DECIMAL
I,J signed incremental distance from start of arc to center. K,L signed incremental distance from start of secondary surface arc to center. I,J signed incremental distance from next start of arc to center. K,L signed incremental distance from next start of secondary surface arc to center. I,J signed incremental distance from previous start of arc to center. K,L signed incremental distance from previous start of secondary surface arc to center. I,J signed incremental distance from center to start of arc. K,L signed incremental distance from center to start of secondary surface arc. I,J signed incremental distance from center to start of next arc. K,L signed incremental distance from center to start of next secondary surface arc. I,J signed incremental distance from center to start of previous arc. K,L signed incremental distance from center to start of previous secondary surface arc. 5 axis modified X,Y,Z end point of move.
METRIC DECIMAL
METRIC DECIMAL
REV_INC_I_CENTER REV_INC_J_CENTER REV_INC_K_CENTER REV_INC_L_CENTER N_REV_INC_I_CENTER N_REV_INC_J_CENTER N_REV_INC_K_CENTER N_REV_INC_L_CENTER P_REV_INC_I_CENTER P_REV_INC_J_CENTER P_REV_INC_K_CENTER P_REV_INC_L_CENTER
METRIC DECIMAL
METRIC DECIMAL
METRIC DECIMAL
METRIC DECIMAL
System Variables
Variable
P_DISPLACED_X P_DISPLACED_Y P_DISPLACED_Z ROT_TILT_A N_ROT_TILT_A P_ROT_TILT_A
Type
DECIMAL
5 axis "A" absolute rotation move. 5 axis "A" absolute rotation of next move.
DECIMAL
5 axis "A" absolute rotation of previous move. 5 axis "A" signed incremental rotation move. 5 axis "A" signed incremental rotation of next move. 5 axis "A" signed incremental rotation of previous move.
INC_ROT_TILT_A
N_INC_ROT_TILT_A
N_INC_ROT_TILT_A
DECIMAL
5 axis "B" absolute tilt move. 5 axis "B" absolute tilt of next move. 5 axis "B" absolute tilt of previous move. 5 axis "B" signed incremental tilt move. 5 axis "B" signed incremental tilt of next move. 5 axis "B" signed incremental tilt of previous move.
N_INC_ROT_TILT_B
DECIMAL
5 axis "I" axis vector move. 5 axis next "I" axis vector move. 5 axis previous "I" axis vector move.
DECIMAL
5 axis "J" axis vector move. 5 axis next "J" axis vector move. 5 axis previous "J" axis vector move.
DECIMAL DECIMAL
5 axis "K" axis vector move. 5 axis next "K" axis vector move. 5 axis previous "K" axis vector move.
System Variables 8-5
System Variables
Variable
ARC_RADIUS N_ARC_RADIUS P_ARC_RADIUS O_ARC_RADIUS S_ARC_RADIUS
Type
METRIC DECIMAL
Usage Arc radius. Next arc radius. Previous arc radius. Punch: Original radius. EDM: Secondary surface arc radius. Lathe: Front turret arc radius. EDM: Next secondary surface arc radius. Lathe: Next front turret arc radius. EDM: Previous secondary surface arc radius. Lathe: Previous front turret arc radius.
S_N_ARC_RADIUS
S_P_ARC_RADIUS
METRIC DECIMAL
Length of a move. Length of next move. Length of previous move. EDM: Length of secondary surface move. Lathe: Length of front turret move. EDM: Length of next secondary surface move. Lathe: Length of next front turret move.
S_N_DISTANCE
S_P_DISTANCE
METRIC DECIMAL
EDM: Length of previous secondary surface move. Lathe: Length of previous front turret move. Punch: Original move length.
Absolute arc start angle. Next absolute arc start angle. Previous absolute arc start angle. EDM: Absolute arc start angle of secondary surface. Lathe: Absolute arc start angle of front turret.
System Variables
Variable
S_N_ARC_START_ANGLE
Type
Usage EDM: Next absolute arc start angle of secondary surface. Lathe: Next absolute arc start angle of front turret. EDM: Previous absolute arc start angle of secondary surface. Lathe: Previous absolute arc start angle of front turret. Punch: Original absolute arc start angle.
S_P_ARC_START_ANGLE
Absolute arc end angle. Next absolute arc end angle. Previous absolute arc end angle. EDM: Absolute arc end angle of secondary surface. Lathe: Absolute arc end angle of front turret.
S_N_ARC_END_ANGLE
DECIMAL
EDM: Next absolute arc end angle of secondary surface. Lathe: Next absolute arc end angle of front turret. EDM: Previous absolute arc end angle of secondary surface. Lathe: Previous absolute arc end angle of front turret. Punch: Original absolute arc end angle.
S_P_ARC_END_ANGLE
Signed incremental arc angle. Next signed incremental arc angle. Previous signed incremental arc angle. EDM: Signed incremental arc angle of secondary surface. Lathe: Signed incremental arc angle of front turret.
System Variables
Variable
S_N_ARC_INC_ANGLE
Type
Usage EDM: Next signed incremental arc angle of secondary surface. Lathe: Next signed incremental arc angle of front turret. EDM: Previous signed incremental arc angle of secondary surface. Lathe: Previous signed incremental arc angle of front turret. Punch: Original signed incremental arc angle.
S_P_ARC_INC_ANGLE
O_ARC_INC_ANGLE
ANGLE
DECIMAL
Angle of a Line, Rapid, Grid, Line Pattern or Window move. Angle of next Line, Rapid, Grid, Line Pattern or Window move. Angle of previous Line, Rapid, Grid, Line Pattern or Window move. Punch: Angle of original Line, Rapid, Grid, Line Pattern or Window move.
N_ANGLE
DECIMAL
P_ANGLE
O_ANGLE
DECIMAL
Punch: Autoindex tool angle. Punch: Next autoindex tool angle. Punch: Previous autoindex tool angle. Punch: Signed incremental autoindex tool angle. Punch: Next signed incremental autoindex tool angle. Punch: Previous signed incremental autoindex tool angle.
N_INC_TOOL_INDEX_ANGLE
P_INC_TOOL_INDEX_ANGLE
METRIC DECIMAL
Punch: Nibbling pitch of move. Punch: Nibbling pitch of next move. Punch: Nibbling pitch of previous move. Punch: Original nibbling pitch of move.
System Variables
Variable
N_OPITCH
Type
P_OPITCH
METRIC DECIMAL
Punch: Original nibbling pitch of previous move. Punch: Signed incremental microjoint start distance. Punch: Next signed incremental microjoint start distance. Punch: Previous signed incremental microjoint start distance.
MICRO_START
METRIC DECIMAL
N_MICRO_START
P_MICRO_START
MICRO_END
METRIC DECIMAL
Punch: Signed incremental microjoint end distance. Punch: Next signed incremental microjoint end distance. Punch: Previous signed incremental microjoint end distance.
N_MICRO_END
P_MICRO_END
P_MICROJOINT
METRIC DECIMAL
Punch: Previous signed incremental microjoint distance. Punch: Next signed incremental microjoint distance.
N_MICROJOINT
MACRO_TIME MACRO_A MACRO_B MACRO_C MACRO_D MACRO_E MACRO_F MACRO_G MACRO_H MACRO_I MACRO_J TOOL_ZGL
DECIMAL DECIMAL
METRIC DECIMAL
Mill and Lathe: 2nd field of a fixed external file. Mill and Lathe: 3rd field of a fixed external file.`
TOOL_XGL
METRIC DECIMAL
System Variables
Variable
TOOL_QTN
Type
METRIC DECIMAL
Usage Mill and Lathe 4th field of a fixed external file. Mill and Lathe: 5th field of a fixed external file. Mathematical constant = 3.14159265. Byte count of the text output file *.txt. Line count of the text output file *.txt. Metric in flag: 0=inch 1=metric. Metric out flag: 0=inch 1=metric. Sets the sequence increment. Movement type - Line, Arc, Rapid, etc. Next movement type - Line, Arc, Rapid, etc. Previous movement type - Line, Arc, Rapid, etc. EDM and 4 axis Lathe: Secondary or U,V plane.
TOOL_QT_COMMENT
CHARACTER
METRIC_OUT
INTEGER
INTEGER INTEGER
P_MOVE_TYPE
S_MOVE_TYPE
S_N_MOVE_TYPE
INTEGER
EDM and 4 axis Lathe: Next secondary or U,V plane. EDM and 4 axis Lathe: Previous secondary or U,V plane.
S_P_MOVE_TYPE
SEQ OPR_TYPE
INTEGER INTEGER
Sequence number. Mill or Lathe operation type MILL_DRILLING, PROFILING, etc. : <X:x_preset> - anything after the colon makes ATTROVERRIDE=YES. <S:1000> - since "S" is an INTEGER, the value is ATTRIVALUE.
ATROVERRIDE
INTEGER
ATTRIVALUE
INTEGER
System Variables
Variable
ATTRDVALUE
Type
METRIC DECIMAL
Usage <X:x_preset> since "X" is a DECIMAL, the value is ATTRDVALUE. <P:{MILLING}> since "P" is a CHARACTER, the value is ATTRCVALUE. Signed incremental X and Y distance between holes in a grid. Signed incremental X and Y distance between holes in next grid. Signed incremental X and Y distance between holes in previous grid.
ATTRCVALUE
METRIC DECIMAL
DIST_BET_HOLES_X DIST_BET_HOLES_Y N_DIST_BET_HOLES_X N_DIST_BET_HOLES_Y P_DIST_BET_HOLES_X P_DIST_BET_HOLES_Y DIST_BET_PARTS_X DIST_BET_PARTS_Y N_DIST_BET_PARTS_X N_DIST_BET_PARTS_Y P_DIST_BET_PARTS_X P_DIST_BET_PARTS_Y HEIGHT N_HEIGHT P_HEIGHT
METRIC DECIMAL
METRIC DECIMAL
Signed incremental X and Y distance between parts in a macro. Signed incremental X and Y distance between parts in next macro. Signed incremental X and Y distance between parts in previous macro.
METRIC DECIMAL
METRIC DECIMAL
Tool compensated window Y height. Next tool compensated in window Y height. Previous tool compensated in window Y height.
METRIC DECIMAL
Tool compensated window X width. Next tool compensated in window X width. Previous tool compensated in window X width.
METRIC DECIMAL
Absolute window origin. Next absolute window origin. Previous absolute window origin.
METRIC DECIMAL
System Variables
Variable
N_WINDOW_HEIGHT P_WINDOW_HEIGHT WINDOW_WIDTH N_WINDOW_WIDTH P_WINDOW_WIDTH TOOL_LENGTH TOOL_WIDTH TOOL_DIAMETER N_TOOL_LENGTH N_TOOL_WIDTH N_TOOL_DIAMETER NC_TOOL_LENGTH NC_TOOL_WIDTH NC_TOOL_DIAMETER SCALLOP N_SCALLOP P_SCALLOP TOOL_CORNER_RADIUS
Type
Usage Next CAD entity window Y height. Previous CAD entity window Y height.
METRIC DECIMAL
CAD entity window Y height. Next CAD entity window X width. Previous CAD entity window X width.
METRIC DECIMAL
Tool dimensions.
METRIC DECIMAL
Scallop height when nibbling. Next scallop height when nibbling. Previous scallop height when nibbling.
METRIC DECIMAL
Corner radius value of a corner radius punch tool. Inside scollop height of an arc or circle when nibbling. Outside scollop height of an arc or circle when nibbling. Load angle of the tool in a punch turret. Tool number. Next entity tool number. Next tool change tool number. Tool type for punch - Round, Square, Rectangle, etc. Next entity tool type for punch - Round, Square, Rectangle, etc.
ISCOLLOP
METRIC DECIMAL
OSCOLLOP
METRIC DECIMAL
N_TOOL_TYPE
System Variables
Variable
NC_TOOL_TYPE
Type
Usage Next tool change tool type for punch Round, Square, Rectangle, etc.
INTEGER
Number of hits in X & Y on a grid or window. Number of hits in X & Y on next grid or window. Number of hits in X & Y on previous grid or window.
INTEGER
Total number of hits in a grid or window. Total number of hits on next grid or window. Total number of hits on previous grid or window.
P_NUM_HITS
INTEGER
Number of parts in X & Y in a macro. Number of parts in X & Y in next macro. Number of parts in X & Y in previous macro.
INTEGER
Direction of punching in a grid, window or multiple macro call. Direction of punching in next grid, window or multiple macro call. Direction of punching in previous grid, window or multiple macro call.
N_HORIZ_OR_VERT
INTEGER
P_HORIZ_OR_VERT
O_DIRECTION
INTEGER
SYSTEM_COMP
INTEGER
System Variables
Variable
FIXED FRAME SKIP_1ST_HIT
Type
INTEGER INTEGER INTEGER
Usage Punch: Tool index angle. FIXED=YES or NO. Punch: Grid or window. FRAME=YES or NO Punch: Skip first hit. Mill: Skip first hole. - SKIP_1ST_HIT=YES or
NO
CURRENT_SYSTEM
INTEGER
Plasma/punch post: What system are you currently in. CURRENT_SYSTEM=PLASMA or PUNCH Plasma/punch post: What system are you were in. PREV_SYSTEM=PLASMA or PUNCH Plasma/punch post: What system are you will be in. NEXT_SYSTEM=PLASMA or PUNCH Plasma/punch post: What type of part is it. PART_TYPE=PLASMA or PUNCH Current macro name. End of line parameter. The default is EOL={} Example EOL={*}. Name of the CAD part *.PRT. Name of the post *.CTL Current macro name. Macro name. Tool Description. Next entity tool Description. Next tool change tool Description.
PREV_SYSTEM
INTEGER
NEXT_SYSTEM
INTEGER
PART_TYPE
INTEGER
CURRENT_MACRO_NUMBER EOL
INTEGER CHARACTER
PART_NAME POST_NAME CURRENT_MACRO_NAME MACRO_NAME TOOL_DESCRIPTION N_TOOL_DESCRIPTION NC_TOOL_DESCRIPTION TOOL_COMMENT N_TOOL_COMMENT NC_TOOL_COMMENT
CHARACTER
Tool comment. Next entity tool comment. Next tool change tool comment.
System Variables
Variable
TOOL_MATERIAL N_TOOL_MATERIAL
Type
CHARACTER CHARACTER
Usage Tool material from feed and speed table Next entity tool material from feed and speed table Next tool change tool material from feed and speed table. Tool serial number from feed and speed table. Next entity tool serial number from feed and speed table. Next tool change tool serial number from feed and speed table.
NC_TOOL_MATERIAL
CHARACTER
TOOL_SERIAL_NUM
CHARACTER
N_TOOL_SERIAL_NUM
NC_TOOL_SERIAL_NUM
DIE_SERIAL_NUM
CHARACTER
Die serial number from feed and speed table. Next entity die serial number from feed and speed table. Next tool change die serial number from feed and speed table.
N_DIE_SERIAL_NUM
NC_DIE_SERIAL_NUM
TOOL_DIE_CLEAR
METRIC DECIMAL
Tool die clearance amount from feed and speed table. Next entity tool die clearance amount from feed and speed table. Next tool change tool die clearance amount from feed and speed table.
N_TOOL_DIE_CLEAR
NC_TOOL_DIE_CLEAR
TOOL_SUB_TYPE
INTEGER
N_TOOL_SUB_TYPE
INTEGER
System Variables
Variable
NC_TOOL_SUB_TYPE
Type
TOOL_SPEC_TYPE
INTEGER
N_TOOL_SPEC_TYPE
NC_TOOL_SPEC_TYPE
TOOL_NUM_TEETH
INTEGER
Tool: Number of flutes from feed and speed table. Next tool: Number of flutes from feed and speed table. Previous tool: Number of flutes from feed and speed table.
N_TOOL_NUM_TEETH
NC_TOOL_NUM_TEETH
METRIC DECIMAL
EDM: Fillet radius for XY surface. EDM: Next fillet radius for XY surface. EDM: Previous fillet radius for XY surface. EDM: Fillet radius for UV surface. EDM: Next fillet radius for UV surface. EDM: Previous fillet radius for UV surface.
DECIMAL
EDM: Absolute taper angle start and end. EDM: Next absolute taper angle start and end.
System Variables
Variable
P_TAPER_ANGLE_START
Type
DECIMAL
EDM: Absolute taper angle end. EDM: Next absolute taper angle end. EDM: Previous absolute taper angle end.
EDM: X,Y surface or plane of a part. EDM: U,V surface or plane of a part. EDM: X,Y surface or plane guide offset of a part. EDM: U,V surface or plane guide offset of a part. EDM: Taper corner type:
CORNER_TYPE= SHARP_CORNER EQUAL_CORNER INDEPENDANT_CORNER CONIC_CORNER CHAMFER_CORNER
UV_GUIDE_OFFSET
DECIMAL
CORNER_TYPE
INTEGER
N_CORNER_TYPE
P_CORNER_TYPE
LEADIN
INTEGER
Profile leadin flag: LEADIN=YES or NO Profile next leadin flag: LEADIN=YES or NO. Profile previous leadin flag: LEADIN=YES or NO.
N_LEADIN
P_LEADIN
System Variables
Variable
LEADOUT
Type
INTEGER
Usage Profile leadout flag: LEADOUT=YES or NO. Profile next leadout flag: LEADOUT=YES or NO. Profile previous leadout flag: LEADOUT=YES or NO.
N_LEADOUT
P_LEADOUT
WIRE_INCLINATION
INTEGER
EDM_MODE
INTEGER
EDM mode.
EDM_MODE= EDM4AXIS TAPER
G_RIGHT_PLACES
INTEGER
Global number of places to the right of decimal point. Global number of places to the left of decimal point. EDM: Power register. EDM: Offset tool register. EDM: Path type.
PATH_TYPE=
G_LEFT_PLACES
INTEGER
TURRET
INTEGER
4-axis Lathe: Turret. TURRET=FRONT or REAR. 4-axis Lathe: Turret next operation.
N_TURRET= FRONT REAR
N_TURRET
P_TURRET
FRONT_TOOL REAR_TOOL
INTEGER
INTEGER
System Variables
Variable
STOCK_DIAMETER OD ID OPR_FEED_FPR OPR_FEED_FPM OPR_SPEED_SFPM OPR_SPEED_RPM OPR_FEED_TYPE
Type
METRIC DECIMAL INTEGER INTEGER METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL INTEGER INTEGER
Usage 4-axis Lathe: Stock diameter. Lathe: Outside diameter flag. OD=1 or 0. Lathe: Inside diameter flag: ID=1 or 0. Lathe: Feed per revolution. Lathe: Feed per minute. Lathe: Constant surface feed per minute. Lathe: Spindle speed. Lathe: Feed type. OPR_FEED_TYPE=
FPR FPM.
OPR_SPEED_TYPE
INTEGER
Lathe: X end operation position. Lathe: Z end operation position. Lathe: Unsigned incremental roughing X finish allowance. Lathe: Unsigned incremental roughing Z finish allowance. Lathe: Unsigned incremental cycle clearance. Lathe: Unsigned incremental thread length. Lathe: Thread minor diameter. Lathe: Thread first pass amount. Lathe: Thread unsigned incremental leadin amount.
OPR_Z_PART_CLEARANCE
METRIC DECIMAL
OPR_CYCLE_CLEARANCE
METRIC DECIMAL
System Variables
Variable
OPR_THREAD_CHAMFER
Type
METRIC DECIMAL
Usage Lathe: Thread unsigned incremental chamfer amount. Lathe: Thread unsigned minimum cut amount. Lathe: Thread pitch, feed or lead amount. Lathe: Thread angle. Lathe: Thread infeed angle. Lathe: Thread number of spring passes. Lathe thread infeed type.
OPR_INFEED_TYPE= STRAIGHT_INFEED ANGLE_INFEED
OPR_THREAD_MIN_CUT
METRIC DECIMAL
Lathe/Mill: OD or FACE fixed angle. Lathe: Roughing cycle cut amount. Lathe: Cycle type.
OPR_POST_CYCLE_TYPE= SYSTEM MACHINE
OPR_CYCLE_TYPE
INTEGER
OPR_RETRACT_TYPE
INTEGER
TOOL_TIP_CENTER
INTEGER
(center) (tip)
OPR_DEPTH_TYPE
INTEGER
(tip) (flat)
System Variables
Variable
OPR_END_RETRACT_TYPE
Type
INTEGER
OPR_CMODE OPR_CFIXED
INTEGER INTEGER
Lathe/Mill. Lathe/Mill:
OPR_CFIXED=CFIXED
or CFREE.
MOVE_COUNT
INTEGER
Lathe: Cycle movement count. Used for canned Roughing cycles. Lathe: Tool name. Lathe: Holder name. Mill: Absolute Z face of part. Mill: Absolute Z rapid plane. Mill: Absolute Z clearance plane. Mill: Absolute Z depth. Mill: Incremental Z clearance distance. Mill: Incremental leadin distance. Mill: Incremental leadout distance. Mill/Lathe: Incremental drill first peck amount. Mill/Lathe: Incremental drill subsequent peck amount. Mill/Lathe: Incremental drill minimum peck amount. Mill: Lacing and pocketing Z finish allowance.
System Variables 8-21
LATHE_TOOL_NAME LATHE_HOLDER_NAME OPR_Z_FACE OPR_Z_RAPID_PLANE OPR_Z_CLEARANCE OPR_Z_DEPTH OPR_CLEARANCE OPR_LEADIN OPR_LEADOUT OPR_Z_FIRST_PECK
CHARACTER CHARACTER METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL
OPR_Z_SUB_PECK
METRIC DECIMAL
OPR_Z_MIN_PECK
METRIC DECIMAL
OPT_Z_FINISH
METRIC DECIMAL
System Variables
Variable
OPR_Z_DIST_ALONG OPR_Z_FIRST_CUT
Type
METRIC DECIMAL METRIC DECIMAL
Usage Mill: Z distance along a wall. Mill: Profiling, lacing or pocketing Z first depth. Mill: Profiling, lacing or pocketing Z subsequent depth. Mill: Profiling, lacing or pocketing Z retract amount. Mill: Lacing cut amount. Mill: Profiling corner clearance amount. Mill: Profiling corner extension amount. Mill: Z feed. Mill: XY feed. Mill: variable drill pecking percentage. Mill: lacing angle. Mill: 4th axis rotation about the X axis in degrees. Mill: 4th axis rotation about the Y axis in degrees. Mill: 4th axis rotation about the Z axis in degrees. Mill: Spindle speed. Mill/Lathe: Spindle direction.
OPR_SPEED_DIR=1, CW OPR_SPEED_DIR=2, CCW
OPR_Z_SUB_CUT
METRIC DECIMAL
OPT_Z_RETRACT_AMOUNT
METRIC DECIMAL
METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL METRIC DECIMAL DECIMAL DECIMAL DECIMAL
ROTATE_ANGLE_Y
DECIMAL
ROTATE_ANGLE_Z
DECIMAL
OPR_SPEED OPR_SPEED_DIR
INTEGER INTEGER
System Variables
Variable
OPR_DRILL_CYCLE_TYPE
Type
INTEGER
OPR_RETRACT_TYPE
INTEGER
OPR_CORNER_TYPE
INTEGER
OPR_Z_CYCLE_TYPE
INTEGER
OPR_Z_CUT_METHOD_TYPE
INTEGER
OPR_CLEARANCE_TYPE
INTEGER
MACRO_ROTATE_AXIS
INTEGER
OPR_COMMENT
CHARACTER
System Variables
Variable
NEW_SFPM
Type
INTEGER
Usage Lathe: Flag for figuring out surface feed per minute in versions 70d and above. NEW_SFPM=0 (if part was saved before version 8.0). NEW_SFPM=1 (if part was saved in version 8.0 and above). Macro CCL file status. Mill: Operation type: OPR_AXIS_TYPE= 3333 if 3D 4444 if 4AXIS_X_MILLING 5555 if 4AXIS_Y_MILLING 6666 if 5AXIS_MILLING 4 and 5 axis rotate and tilt combinations.
ROTATE_TILT= 6
CCL_STATUS OPR_AXIS_TYPE
INTEGER INTEGER
ROTATE_TILE
INTEGER
(rotate table and tilt head about xtable and tilt head about y-
axis)
18 (rotate
axis)
10 (rotate table and tilt table about xaxis for 4thaxis rotation use this for rotate x-axis "A" axis is being held on 4thaxis) 34 (rotate table and tilt table about yaxis for 4thaxis rotation use this for rotate y-axis "A" axis is being held on 4thaxis) 11 (rotate arm and tilt head)
5 axis arm extension length. 5 axis head length. The incremental distance between holes in a line pattern when drilling.
System Variables
Variable
Z_AXIS X_AXIS Y_AXIS I_AXIS J_AXIS K_AXIS ABS_PRESET_X ABS_PRESET_Y ABS_PRESET_Z ABS_PRESET_C X_START_POSITION Z_START_POSITION ATTRLVALUE OPR_LOOKAHEAD Q_TAPER_ANGLE_START P_Q_TAPER_ANGLE_START N_Q_TAPER_ANGLE_START Q_TAPER_ANGLE_END P_Q_TAPER_ANGLE_END N_Q_TAPER_ANGLE_END R_TAPER_ANGLE_START P_R_TAPER_ANGLE_START N_R_TAPER_ANGLE_START R_TAPER_ANGLE_END P_R_TAPER_ANGLE_END N_R_TAPER_ANGLE_END DIRECTION ESC RECNUM NEXT_OPR_TOOL MONTH DAY YEAR CURRENT_MACRO_QUADRANT CURRENT_MACRO_DEFINED MACRO_COUNT MACRO_ERROR MACRO_DEFINED SYS_COUNT TIME DISK_DRIVE_1 DISK DRIVE_2 TAB_CHAR INC_ANGLE
Type
METRIC DECIMAL
DECIMAL
INTEGER
CHARACTER
DECIMAL
System Variables
Variable
N_INC_ANGLE
Type
Usage Punch: Incremental angle of next arc pattern. Punch: Incremental angle of previous arc pattern.
P_INC_ANGLE
DECIMAL
The signed incremental distance between parts in a multiple macro call. The signed incremental distance between parts in the next multiple macro call. The signed incremental distance between parts in the previous multiple macro call.
Value
0 1 0 0 1 0 1 0 1 0 1 0 1 2 1 0 POINT LINE ARC | ARC_DIR ARC ARC CIRCLE 0x10 0x10 1 2 3 4 5 1 2 180 360 0 1 2 MILL LATHE PUNCH PLASMA LASER EDM WASINO JIG
Name
BOTH SHARP_CORNER EQUAL_CORNER INDEPENDENT_CORNER CONIC_CORNER CHAMFER_CORNER EDM4AXIS TAPER PROFILE TABCUT OFFSET_LEFT OFFSET_RIGHT CENTER_LEFT CENTER_RIGHT Z_DEPTH Z_WALL Z_EXTRUDE DIST_ALONG SINGLE MULTIPLE CW CCW FPR FPM SFPM RPM SYSTEM MACHINE TIP FLAT CONSTANT PERCENTAGE SINGLE_DEPTH SINGLE_RETRACT MULTIPLE_RETRACT TURNING FACING CONSTANT_DEPTH CONSTANT_CUT STRAIGHT_INFEED ANGLE_INFEED ROUND_CORNERS SHARP_CORNERS SQUARE_CORNERS TRIANGLE_CORNERS FANUC_CORNERS DRILLING SPOT_DRILLING
Value
0 1009 1010 2010 1011 2009 1 2 1 2 0 1 2 3 1 2 3 2 1 2 1 2 1 2 1 2 1 2 0 1 1 2 0 1 0 0 1 0 1 0 1 0 1 2 3 4 1 2
Name
PECKING TAPPING BORING HIGH_SPEED_PECKING VARIABLE_PECKING REVERSE_TAPPING REAMING_DWELL REAMING BORE_DWELL BACK_BORING FINE_BORING CLEARANCE_PLANE RAPID_PLANE FRONT REAR HOME XZPOS CFIXED CFREE MILL_OD MILL_FACE X_AXIS Y_AXIS Z_AXIS ROUND RECTANGLE TRIANGLE CROSS OBROUND SQUARE RECRAD DOUBLED SINGLED SPETOOL PREVIOUS NEXT CURRENT FLAT_BOTTOM HEELED SHEAR_PROOF LOUVER FORM MARKING
Value
3 4 5 6 7 8 10 9 11 12 13 1 2 1 2 2 1 2 1 0x0100 0x0200 7 8 6 1 2 3 4 5 6 7 8 9 10 1 2 0 1 2 3 4 5 6
Value
1001 1002 1003 1004 1005 1006 1007 1007 1008 1009 1010
Value
2001 2002 2003 2004 2005 2006 2007 2008 2010 2009 2011 2012 2013
Value
1011 1012 1013 1014 1015 1016 1017
Value
0 1 2 1 1 1 2 1 2 3
Example 1
Example 1
Adding a Setup Question and Using its Value to Change the Output
1. Make sure you copy the original source files to a folder where you can copy them back into this folder (master.atr, class.src and class.lib). 2. Add an attribute to (master.atr) called head position. This attribute will be a select type as described below. You will place it after ID number 17501.
*----------------------------------:ATTRNAME=shots to be fired :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTRID=17501 :ATTREND *------:ATTRNAME=head position ----------------- Attrname :ATTRTYPE=SELECT :ATTRID=17502 --------------------------- New ID number :ATTREND
3. Change the IDHIGH=17502 at the start of the (master.atr) file. Note: if you use an ID number lower than 17501, then you would not have to do this step. 4. Open (class.src) and add the new attrname you created in master.atr in the setup list as shown below. Since this parameter will be asked in the Setup Information, the value is valid for the whole program.
*---------------------------------------------------------* Define Setup Questions *---------------------------------------------------------:ATTRNAME=setup :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Setup :ATTRLIST=program number :ATTRLISTDEF=1 :ATTRLIST=material :ATTRLISTDEF=STEEL :ATTRLIST=thickness :ATTRLISTDEF=1 *:ATTRLIST=chord length *:ATTRLISTDEF=.01 :ATTRLIST=material_type :ATTRLISTDEF= :ATTRLIST=head position ----------- Add this line :ATTRLISTDEF=1 -------------------- Add this line 10-2 Programming Examples
5. Go to the template section :SECTION=INIT_TOOL_CHANGE_MILL in (class.src) and add the line below. Since this will only happen at the start of the program, you only need to change the init tool change section.
* :SECTION=INIT_TOOL_CHANGE_MILL :T:<N><M:HEAD_P><EOL> ------------------ Add this line :T:<N><TOOL_COMMENT><EOL> :T:<N><T><M:06><EOL> :T:<N><S!><M!:SPINDLE_DIR><EOL> :T:<N><G!:work_coord><EOL> :T:<N><M!:COOLANT_TYPE><EOL>
6. Open (class.lib) file and add the new attribute head position that you created in (master.atr). Even though you defined it in (master.atr), you still need to define it in the library file. See below for position.
*------------------------------ --------------- Add these lines :ATTRNAME=head position :ATTRTYPE=SELECT :ATTREMARK=Spindle Head Position :ATTRSEL=N :ATTRTITLE=Spindle Head Position :ATTRSELSTR=High :ATTRSELSTR=Medium :ATTRSELSTR=Low :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND ----------------------------------------- To here *-----------------------------:ATTRNAME=material type :ATTRTYPE=SELECT :ATTREMARK=Material type :ATTRSEL=N :ATTRTITLE=Material Type :ATTRSELSTR=Rolled Steel :ATTRSELSTR=Aluminum :ATTRSELSTR=Stainless Steel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND
Example 1
9. You need to add some logic to :SECTION=CALC_INIT_TOOL_CHANGE_MILL. Since this section is not in the (class.lib), you need to copy it from (general.lib) file and place it at the end of the (class.lib) file as shown below. Now add the following lines of logic.
*----------------------------------:ATTRNAME=CURRENT MACRO NAME :ATTRTYPE=POST :ATTREMARK= :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|( :VAR=CURRENT MACRO NAME :WORD_ADDRESS_AFT=) :LEFT_PLACES=0 :RIGHT_PLACES=0 :UNITFLAG=NON_CONVERT :ATTRSPACES=YES *:MODAL=YES :ATTRUSED=1 :ATTREND *----------------------------------:SECTION=CALC_INIT_TOOL_CHANGE_MILL :C: IF SECTIONEXIST(DEBUG) THEN :C: DEBUG=4 CALL(DEBUG) :C: ENDIF * *:C: IF OPER_COUNT>1 THEN CALL(CALC_SUB_TOOL_CHANGE_MILL) RETURN ENDIF :C: IF MACH(REG_T2)<>0 THEN CALL(CALC_SUB_TOOL_CHANGE_MILL) RETURN ENDIF *
Example 1 :C: IF MACH(REG_T)<>0 AND MACH(REG_T)=TOOL THEN RETURN ENDIF :C: CALC_CHANGE_TOOL=1 :C: TOOL_ARRAY(ARRAY_COUNT)=NC_TOOL :C: TOOL_DIAM_ARRAY(ARRAY_COUNT)=NC_TOOL_DIAMETER :C: IF NC_TOOL=(-1) THEN TOOL_DIAM_ARRAY(ARRAY_COUNT)=TOOL_DIAM_ARRAY(0) ENDIF :C: NEXT_TOOL=TOOL_ARRAY(ARRAY_COUNT) :C: POT_NUMBER=10 :C: IF TOOL_DIAMETER>LARGE_POT THEN POT_NUMBER=90 ENDIF :C: NEXT_POT_NUMBER=10 :C: IF TOOL_DIAM_ARRAY(ARRAY_COUNT)>LARGE_POT THEN NEXT_POT_NUMBER=90 ENDIF :C: ARRAY_COUNT=(ARRAY_COUNT+1) :C: IF SECTIONEXIST(OUTPUT_ESTIMATED_TIME) THEN :C: CALL(CALC_TOOL_CHANGE_TIME) :C: ENDIF :C: IF TOOL_COMMENT={} THEN :C: SETOFF(<TOOL_COMMENT>) ELSE :C: SETON(<TOOL_COMMENT>) :C: ENDIF :C: IF head_position=1 THEN HEAD_P=101 ENDIF ---- Add these lines :C: IF head_position=2 THEN HEAD_P=102 ENDIF :C: IF head_position=3 THEN HEAD_P=103 ENDIF ---------- To here :C: IF SECTIONEXIST(INIT_PRELOAD_TOOL_CHANGE_MILL) THEN :C: CALL(CALC_INIT_PRELOAD_TOOL_CHANGE) :C: CALL(CALC_CHECK_OPER_COMMENTS) :C: MACH(REG_T)=TOOL :C: FIRST_TOOL=TOOL :C: LAST_TOOL=TOOL :C: RETURN :C: ENDIF :C: IF SECTIONEXIST(INIT_TOOL_CHANGE_MILL) THEN :C: CALL(INIT_TOOL_CHANGE_MILL) :C: ENDIF :C: CALL(CALC_CHECK_OPER_COMMENTS) :C: MACH(REG_T)=TOOL :C: FIRST_TOOL=TOOL :C: LAST_TOOL=TOOL
10. Now assuming you put master.atr in the same folder as your source, you can save all the files you edited and exit your editor. To compile, you will need to type this at your DOS prompt WINMAKE CLASS.SRC MASTER.ATR ?:\PROCAD\CTL. If you have installed the UPG, then you can compile the source in the UPG by selecting the File menu and picking the Compile Post command.
Example 2
Example 2
Adding an Operation Question and Using its Value to Change the Output
1. If you want to save the previous example, then copy the source files (master.atr, class.src and class.lib) to a save folder and recopy the original files back into the class folder. 2. Add an attribute to (master.atr) called changing pallets. This attribute will be a select type as described below. You will place it after ID number 17502
*----------------------------------:ATTRNAME=shots to be fired :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTRID=17501 :ATTREND *------:ATTRNAME=changing pallets ----------------- Attrname :ATTRTYPE=SELECT :ATTRID=17502 ------------------------------ New ID number :ATTREND
3. Change the IDHIGH=17502 at the start of the (master.atr) file. Note: If you use an ID number that is lower than 17501, then you would not have to do this step. 4. Open (class.src) and add the new attrname you created in master.atr to all the operation lists as shown below. Since this question will be asked in the operation list, then the value is valid for that operation only. Make sure you add the line to all the :OPERID= (Operations). If you add it to just the Drilling one in the example below, then the drilling operation is the only operation that will get the question asked.
*---------------------------------------------------------* Operation List Questions *---------------------------------------------------------:OPERID=MILL_DRILLING :OPERSUB=DRILLING :OPERLIST=abs inc :OPERLIST=work coord :OPERLIST=coolant :OPERLIST=changing pallets --------- Add this line to all :OPERID= lists :OPEREND
Example 2
5. Go to the template section :SECTION=INIT_TOOL_CHANGE_MILL in (class.src) and add the line below. Since this will only happen at every tool change , you need to change the init tool change section and the subtool change sections.
* :SECTION=INIT_TOOL_CHANGE_MILL :T:<N><TOOL_COMMENT><EOL> :T:<N><T><M:06><EOL> :T:<N><S!><M!:SPINDLE_DIR><EOL> :T:<N><G!:work_coord><EOL> :T:<N><P_CHANGE><EOL> ------------------------Add this line :T:<N><M!:COOLANT_TYPE><EOL> * :SECTION=SUB_TOOL_CHANGE_MILL :T:<N><G:00><G:91><G:28> Z0<EOL> :T:<N><TOOL_COMMENT><EOL> :T:<N><T><M:06><EOL> :T:<N><S!><M!:SPINDLE_DIR><EOL> :T:<N><G!:work_coord><EOL> :T:<N><P_CHANGE><EOL> ------------------------Add this line :T:<N><M!:COOLANT_TYPE><EOL>
6. Open (class.lib) file and add the new attribute changing pallets you created in (master.atr). Even though you defined it in (master.atr), you still need to define it in the library file. See below for position.
*------------------------------ ---------- Add these lines :ATTRNAME=changing pallets :ATTRTYPE=SELECT :ATTREMARK=Changing Pallets :ATTRSEL=N :ATTRTITLE=Changing Pallets :ATTRSELSTR=No :ATTRSELSTR=Left :ATTRSELSTR=Right :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND --------------------------------------- To here *-----------------------------:ATTRNAME=material type :ATTRTYPE=SELECT :ATTREMARK=Material type :ATTRSEL=N :ATTRTITLE=Material Type :ATTRSELSTR=Rolled Steel :ATTRSELSTR=Aluminum :ATTRSELSTR=Stainless Steel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND Programming Examples 10-7
Example 2
7. Add the attribute listed below at the end of (class.lib) file. Notice that the attrername P CHANGE is a select type attribute. What ever the value of P CHANGE equals is the select value. If the value of P CHANGE is not 2 or 3, then there is no output. In the lower case attribute changing pallets the :ATTRSELSTR= are No, Left or Right. The value of changing pallets equals one (1) if you pick the first one in the list, etc. So if you select No in the operation question, then the value of changing pallets equals one (1) and you will not get any output from P_CHANGE.
*----------------------------------:ATTRNAME=CURRENT MACRO NAME :ATTRTYPE=POST :ATTREMARK= :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|( :VAR=CURRENT MACRO NAME :WORD_ADDRESS_AFT=) :LEFT_PLACES=0 :RIGHT_PLACES=0 :UNITFLAG=NON_CONVERT :ATTRSPACES=YES *:MODAL=YES :ATTRUSED=1 :ATTREND *---------------------------- ------------- Add these lines :ATTRNAME=P CHANGE :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK=Pallet Change :CODETYPE=SELECT :SELECT=2 :CODE=M51 :SELECT=3 :CODE=M52 :ATTREND ---------------------------------- To here
8. Now you need to add some logic to handle the output. You need to have this happen at every tool change, so you have to change the calc sections :SECTION=CALC_INIT_TOOL_CHANGE_MILL and :SECTION=CALC_SUB_TOOL_CHANGE_MILL. Since both of these sections are not in (class.lib), you have to copy them from (general.lib) to the end of (class.lib). See below for position.
*----------------------------------:SECTION=CALC_INIT_TOOL_CHANGE_MILL :C: IF SECTIONEXIST(DEBUG) THEN :C: DEBUG=4 CALL(DEBUG) :C: ENDIF * *:C: IF OPER_COUNT>1 THEN CALL(CALC_SUB_TOOL_CHANGE_MILL) RETURN ENDIF 10-8 Programming Examples
Example 2 :C: IF MACH(REG_T2)<>0 THEN CALL(CALC_SUB_TOOL_CHANGE_MILL) RETURN ENDIF * * If you are defining a macro then you stop here! * :C: P_MOVE_TYPE=TOOL_CHANGE :C: IF DEFINING_MACRO=(YES) THEN CALL(CALC_CHECK_OPER_COMMENTS) RETURN ENDIF :C: IF MACH(REG_T)<>0 AND MACH(REG_T)=TOOL THEN RETURN ENDIF :C: CALC_CHANGE_TOOL=1 :C: TOOL_ARRAY(ARRAY_COUNT)=NC_TOOL :C: TOOL_DIAM_ARRAY(ARRAY_COUNT)=NC_TOOL_DIAMETER :C: IF NC_TOOL=(-1) THEN TOOL_DIAM_ARRAY(ARRAY_COUNT)=TOOL_DIAM_ARRAY(0) ENDIF :C: NEXT_TOOL=TOOL_ARRAY(ARRAY_COUNT) :C: POT_NUMBER=10 :C: IF TOOL_DIAMETER>LARGE_POT THEN POT_NUMBER=90 ENDIF :C: NEXT_POT_NUMBER=10 :C: IF TOOL_DIAM_ARRAY(ARRAY_COUNT)>LARGE_POT THEN NEXT_POT_NUMBER=90 ENDIF :C: ARRAY_COUNT=(ARRAY_COUNT+1) :C: IF SECTIONEXIST(OUTPUT_ESTIMATED_TIME) THEN :C: CALL(CALC_TOOL_CHANGE_TIME) :C: ENDIF :C: IF TOOL_COMMENT={} THEN :C: SETOFF(<TOOL_COMMENT>) ELSE :C: SETON(<TOOL_COMMENT>) :C: ENDIF :C: P_CHANGE=changing_pallets ---------------- Add this line :C: IF SECTIONEXIST(INIT_PRELOAD_TOOL_CHANGE_MILL) THEN :C: CALL(CALC_INIT_PRELOAD_TOOL_CHANGE) :C: CALL(CALC_CHECK_OPER_COMMENTS) :C: MACH(REG_T)=TOOL :C: FIRST_TOOL=TOOL :C: LAST_TOOL=TOOL :C: RETURN :C: ENDIF :C: IF SECTIONEXIST(INIT_TOOL_CHANGE_MILL) THEN :C: CALL(INIT_TOOL_CHANGE_MILL) :C: ENDIF :C: CALL(CALC_CHECK_OPER_COMMENTS) :C: MACH(REG_T)=TOOL :C: FIRST_TOOL=TOOL :C: LAST_TOOL=TOOL * :SECTION=CALC_SUB_TOOL_CHANGE_MILL :C: IF SECTIONEXIST(DEBUG) THEN :C: DEBUG=5 CALL(DEBUG) :C: ENDIF * * Startup Seton Codes * Programming Examples 10-9
Example 2 :C: CALL(CALC_BEF_SETON_CODES) :C: G=GC(G_LEN_COMP) SETON(<G>) :C: M=MC(M_COOL_OFF) SETON(<M>) * * If you are defining a macro then you stop here! * :C: P_MOVE_TYPE=TOOL_CHANGE :C: IF DEFINING_MACRO=(YES) THEN CALL(CALC_CHECK_OPER_COMMENTS) RETURN ENDIF :C: IF MACH(REG_T)<>0 AND MACH(REG_T)=TOOL THEN RETURN ENDIF :C: CALC_CHANGE_TOOL=(CALC_CHANGE_TOOL+1) :C: IF OFFSET_RESIDENT=YES THEN CALL(CALC_REMOVE_OFFSET) ENDIF :C: IF TOOL=NC_TOOL THEN NC_TOOL=(-1) ENDIF :C: TOOL_ARRAY(ARRAY_COUNT)=NC_TOOL :C: TOOL_DIAM_ARRAY(ARRAY_COUNT)=NC_TOOL_DIAMETER :C: IF NC_TOOL=(-1) THEN TOOL_DIAM_ARRAY(ARRAY_COUNT)=TOOL_DIAM_ARRAY(0) ENDIF :C: NEXT_TOOL=TOOL_ARRAY(ARRAY_COUNT) :C: POT_NUMBER=10 :C: IF TOOL_DIAMETER>LARGE_POT THEN POT_NUMBER=90 ENDIF :C: NEXT_POT_NUMBER=10 :C: IF TOOL_DIAM_ARRAY(ARRAY_COUNT)>LARGE_POT THEN NEXT_POT_NUMBER=90 ENDIF :C: ARRAY_COUNT=(ARRAY_COUNT+1) :C: CALL(CALC_TOOL_CHANGE_TIME) :C: IF TOOL_COMMENT={} THEN :C: SETOFF(<TOOL_COMMENT>) ELSE :C: SETON(<TOOL_COMMENT>) :C: ENDIF :C: P_CHANGE=changing_pallets -------------------- Add this line :C: IF SECTIONEXIST(SUB_PRELOAD_TOOL_CHANGE_MILL) THEN :C: CALL(CALC_SUB_PRELOAD_TOOL_CHANGE) :C: CALL(CALC_CHECK_OPER_COMMENTS) :C: CALL(CALC_AFT_SETON_CODES) :C: MACH(REG_T)=TOOL :C: LAST_TOOL=TOOL :C: MACH(REG_Z)=MILL_Z_HOME :C: RETURN :C: ENDIF :C: IF SECTIONEXIST(SUB_TOOL_CHANGE_MILL) THEN :C: CALL(SUB_TOOL_CHANGE_MILL) :C: ENDIF :C: CALL(CALC_CHECK_OPER_COMMENTS) :C: CALL(CALC_AFT_SETON_CODES) :C: MACH(REG_T)=TOOL :C: LAST_TOOL=TOOL :C: MACH(REG_Z)=MILL_Z_HOME
Example 2
9. Assuming you put master.atr in the same folder as your source, you can save all the files you edited and exit your editor. To compile you will need to type this at your DOS prompt WINMAKE CLASS.SRC MASTER.ATR [Drive]:\PROCAD\CTL. If you have installed the UPG, then you can compile the source in the UPG by selecting the File menu and picking "Compile Post".
Example 3
Example 3
Adding an Operation Question and Using its Value to Change the Output Depending on if it is Modal or Not
1. If you want to save the previous example, copy the source files (master.atr, class.src and class.lib) to a save folder and recopy the original files back into the class folder. 2. You are going to add an attribute to (class.lib) called spindle range. Since this attribute is already defined in (master.atr), you do not have to edit (master.atr). Add spindle range to (class.lib) as shown below.
*----------------------------------- ------------ Add these lines :ATTRNAME=spindle range :ATTRTYPE=VALUE :ATTRVTYPE=INTEGER :ATTREMARK=Spindle Range :ATTRSEL=N :ATTRINLEN=3 :ATTRSHORT=Spindle Range :ATTRLONG=ENTER Spindle Range :ATTRHIGH=41 :ATTRLOW=40 :ATTRDEFAULT=40 :ATTRUSED=1 :ATTREND ---------------------------------- To here *-----------------------------:ATTRNAME=material type :ATTRTYPE=SELECT :ATTREMARK=Material type :ATTRSEL=N :ATTRTITLE=Material Type :ATTRSELSTR=Rolled Steel :ATTRSELSTR=Aluminum :ATTRSELSTR=Stainless Steel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND
Example 3
3. Open (class.src) and add the new attrname you created to all the operation lists as shown below. Since this question will be asked in the operation list, then the value is valid for that operation only. Make sure you add the line to all the :OPERID= (Operations). If you add it to just the Drilling one in the example below, then the drilling operation is the only operation that will get the question asked.
*---------------------------------------------------------* Operation List Questions *---------------------------------------------------------:OPERID=MILL_DRILLING :OPERSUB=DRILLING :OPERLIST=abs inc :OPERLIST=work coord :OPERLIST=coolant :OPERLIST=spindle range -- Add this line to all :OPERID= lists :OPEREND
4. Find :SECTION=INIT_TOOL_CHANGE_MILL and add the following code to both tool change sections as shown below.
* :SECTION=INIT_TOOL_CHANGE_MILL :T:<N><TOOL_COMMENT><EOL> :T:<N><T><M:06><EOL> :T:<N><M:spindle_range><EOL> ------------------ Add this line :T:<N><S!><M!:SPINDLE_DIR><EOL> :T:<N><G!:work_coord><EOL> :T:<N><M!:COOLANT_TYPE><EOL> * :SECTION=SUB_TOOL_CHANGE_MILL :T:<N><G:00><G:91><G:28> Z0<EOL> :T:<N><TOOL_COMMENT><EOL> :T:<N><T><M:06><EOL> :T:<N><M:spindle_range><EOL> ------------------ Add this line :T:<N><S!><M!:SPINDLE_DIR><EOL> :T:<N><G!:work_coord><EOL> :T:<N><M!:COOLANT_TYPE><EOL>
Example 3
5. In the same file go to :SECTION=CALC_INIT_MCODES and add the bold underlined lines as shown below. Adding these lines of code to the (class.src) makes these codes modal.
:SECTION=CALC_INIT_MCODES *------------------------------------------------------------------------* * M Code M Group M Modal * *------------------------------------------------------------------------* :C: MC(M_STOP) = 0 MG(M_STOP) = 0 MM(M_STOP) = NO :C: MC(M_OPT_STOP) = 1 MG(M_OPT_STOP) = 0 MM(M_OPT_STOP) = NO :C: MC(M_PROG_END) = 2 MG(M_PROG_END) = 0 MM(M_PROG_END) = NO :C: MC(M_SPIN_CW) = 3 MG(M_SPIN_CW) = 1 MM(M_SPIN_CW) = YES :C: MC(M_SPIN_CCW) = 4 MG(M_SPIN_CCW) = 1 MM(M_SPIN_CCW) = YES :C: MC(M_SPIN_STOP) = 5 MG(M_SPIN_STOP) = 1 MM(M_SPIN_STOP) = YES :C: MC(M_TOOL_CHANGE = 6 MG(M_TOOL_CHANGE) = 0 MM(M_TOOL_CHANGE) = NO :C: MC(M_COOL_MIST) = 7 MG(M_COOL_MIST) = 2 MM(M_COOL_MIST) = YES :C: MC(M_COOL_FLOOD) = 8 MG(M_COOL_FLOOD) = 2 MM(M_COOL_FLOOD) = YES :C: MC(M_COOL_OFF) = 9 MG(M_COOL_OFF) = 2 MM(M_COOL_OFF) = YES :C: MC(M_LOCK_OFF) = 10 MG(M_LOCK_OFF) = 3 MM(M_LOCK_OFF) = YES :C: MC(M_LOCK_ON) = 11 MG(M_LOCK_ON) = 3 MM(M_LOCK_ON) = YES :C: MC(M_ORIENT) = 19 MG(M_ORIENT) = 0 MM(M_ORIENT) = NO :C: MC(M_SPIN_LOW) = 40 MG(M_SPIN_LOW) = 4 MM(M_SPIN_LOW) = YES :C: MC(M_SPIN_HI) = 41 MG(M_SPIN_HI) = 4 MM(M_SPIN_HI) = YES :C: MC(M_END_PROG) = 30 MG(M_END_PROG) = 0 MM(M_END_PROG) = NO :C: MC(M_SUB_CALL) = 98 MG(M_SUB_CALL) = 0 MM(M_SUB_CALL) = NO :C: MC(M_SUB_END) = 99 MG(M_SUB_END) = 0 MM(M_SUB_END) = NO
6. Assuming you put master.atr in the same folder as your source, you can save all the files you edited and exit your editor. 7. To compile you will need to type this at your DOS prompt WINMAKE CLASS.SRC MASTER.ATR ?:\PROCAD\CTL. If you have installed the UPG, then you can compile the source in the UPG by selecting the File menu and picking "Compile Post".
WORLD_POSITIONING
WORLD_POSITIONING
Purpose
Allows world coordinate posted output when indexing in 4 and 5 axis assembly parts using CAMWorks 2005 or newer versions.
Syntax
:WORLD_POSITIONING=TRUE or FALSE
Comments
This command should be set to FALSE if you no not need world coordinate posted output in 4 and 5 axis indexing. This command should be set to TRUE if you need world coordinate posted output in 4 and 5 axis indexing, which means that the posted output will not translate the numbers when indexing to another plane.
RIGHT_ANGLE_SHEAR_ATTACHED
RIGHT_ANGLE_SHEAR_ATTACHED
Purpose
Allows the system to exit into Shear for a combination PUNCH/SHEAR machine.
Syntax
:RIGHT_ANGLE_SHEAR_ATTACHED=TRUE or FALSE
Comments
This command should be set to FALSE if you dont need shear. This command should be set to TRUE if you need shear and even though the post :SYSTEM=PUNCH you can use this header command to exit into shear.
LASER_PLASMA_CUT_DATA
LASER_PLASMA_CUT_DATA
Purpose
Allows the laser and plasma systems to use the external fabrication database for special cutting parameters while posting.
Syntax
:LASER_PLASMA_CUT_DATA=TRUE or FALSE
Comments
This command should be set to FALSE if you dont need special cutting parameters output to the post. This command should be set to TRUE if you need special cutting parameters output to the post. The files that are used when accessing the data are FABDBENGLISH.MDB in Inch or FABDBMETRIC.MDB in metric. The post needs to be setup to use this function. See using access database in the online help.
VECTOR_COMP
VECTOR_COMP
Purpose
Allows a CAMWorks mill post to output X,Y,Z,I, and J in vector coordinates.
Syntax
:VECTOR_COMP=TRUE or FALSE
Comments
This command should be set to FALSE if you do not need vector coordinates output. This command should be set to TRUE if you need vector coordinates output. This will only apply in the CAMWorks advanced cutting operations. The post system variable V_COMP will be set to 0 if operations not using this option and will be set to 1 if it is. Post system variables XC, YC, ZC, IC, JC and KC hold endpoints for the posted output. XC=ABS_X_END, YC=ABS_Y_END, ZC=ABS_Z_END, IC=I_VECTOR, JC=J_VECTOR and KC=K_VECTOR.
NO_SET_FILE
NO_SET_FILE
Purpose
Allows the posted *.set file to be created or not.
Syntax
:NO_SET_FILE=TRUE or FALSE
Comments
This command should be set to FALSE if you want the *.set file to be created every time you post. If you do not want the *.set file to be created then this needs to be set to TRUE.
TRAPDOOR
TRAPDOOR
Purpose
Allows post to create an auto Open Chute to be attached to a closed boundary.
Command
:TRAPDOOR=FALSE, DROP or TILT
Comments
This command should be set to FALSE if you do not have a trap door. If you have a trap door you can set this to DROP or TILT depending on the style of the machines trap door. Only one style of trap door can be set per post.
MOVE_CLAMP
MOVE_CLAMP
Purpose
Allows punch system to move a clamp manually and then passes information to the post for output.
Command
:MOVE_CLAMP=TRUE or FALSE
Comments
This command should be set to FALSE if you do not have a machine that supports commands to move the clamps. Set this command to TRUE if you have a machine that supports output code to move the clamps. When you trigger a clamp move it is then passed to the punch post calc section CALC_MOVE_CLAMPS. It stores the clamp positioned amount in absolute numbers only in post system variables CLAMP1_POSITION, CLAMP2_POSITION, CLAMP3_POSITION, CLAMP4_POSITION. Up to 4 clamps are supported for this command.
SORTER_ARM
SORTER_ARM
Purpose
Allows Laser, Plasma or Punch system to have sorter arm options available in ProCAM 2D.
Command
:SORTER_ARM=TRUE or FALSE
Comments
This command should be set to FALSE if you do not have a machine that supports sorter arm commands. Set this command to TRUE if you have a machine that supports output code to support sorter arm commands. When you trigger a sorter arm move it does an auto attachment of sorter arm pickup attribute, then it attaches a sorter arm release attribute and then attaches a sorter arm hit releases part attribute. In the definition of each of these attributes is or should be defined an ATTRFUNC command to call a calc section for necessary output for this operation. Available post variables are ARM_PICKUP_X, ARM_PICKUP_Y, ARM_DESTINATION_X, ARM_DESTINATION_Y, ARM_OFFSET, ARM_ACTIVE_CUPS.
MILL_OD_CYLINDRICAL
MILL_OD_CYLINDRICAL
Purpose
Allows Lathe/Mill (Live C) machines to use special G-code for doing milling on the OD in CAMWorks only.
Command
:MILL_OD_CYLINDRICAL=TRUE or FALSE
Comments
This command should be set to FALSE if your machine does not support special G-code for doing milling on the OD. Set this command to TRUE if you have a machine that supports the special G-code for doing milling on the OD. When your machine supports this the post will output cylindrical G-code output. The reason for using this is the feedrate is in either IPM or MMPM and not degree minutes, which requires a different degree minute feedrate on almost every line of code. Another reason is it can have machine compensation added, plus it is shorter code to do the same operation then in degree minutes.
MILL_FACE_POLAR
MILL_FACE_POLAR
Purpose
Allows Lathe/Mill (Live C) machines to use special G-code for doing milling on the FACE in CAMWorks only.
Command
:MILL_FACE_POLAR=TRUE or FALSE
Comments
This command should be set to FALSE if your machine does not support special G-code for doing milling on the FACE. Set this command to TRUE if you have a machine that supports the special G-code for doing milling on the FACE. When your machine supports this the post will output polar G-code output. The reason for using this is the feedrate is in either IPM or MMPM and not degree minutes, which requires a different degree minute feedrate on almost every line of code. Another reason is it can have machine compensation added, plus it is shorter code to do the same operation then in degree minutes.
MACROS_ROTATE
MACROS_ROTATE
Purpose
Allows Laser or Plasma controllers to utilize rotating a macro and then call it with a subroutine call.
Command
:MACROS_ROTATE=TRUE or FALSE
Comments
This command should be set to FALSE if your machine does not support rotating a macro and then call it. Most machines do not allow you to create a macro at lets say zero degrees and call it then rotate it at 90 degrees and call the same subroutine. Normally what has to happen is once you rotate the macro the system has to recreate another macro define and then call that macro. The post variable that holds the rotated angle is ROTATE_ANGLE_Z.
:DUAL_SPINDLE
:DUAL_SPINDLE
Purpose
Allows Turn and Mill-Turn systems to machine on different spindles.
Syntax
:DUAL_SPINDLE=TRUE or FALSE
Comments
For more information, see DSPINDLE in Chapter 12.
:DUAL_SPINDLE
System Variables
System Variables
Variable DRILL_RAPID_X Type
METRIC DECIMAL
Usage
Drilled cycle rapid plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle rapid plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle rapid plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle clearance plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle clearance plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle clearance plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post.
DRILL_RAPID_Y
METRIC DECIMAL
DRILL_RAPID_Z
METRIC DECIMAL
DRILL_CLEAR_X
METRIC DECIMAL
DRILL_CLEAR_Y
METRIC DECIMAL
DRILL_CLEAR_Z
METRIC DECIMAL
Usage
Drilled cycle face plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle face plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle face plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle drill depth in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle drill depth in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle drill depth in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post.
DRILL_FACE_Y
METRIC DECIMAL
DRILL_FACE_Z
METRIC DECIMAL
DRILL_DEPTH_X
METRIC DECIMAL
DRILL_DEPTH_Y
METRIC DECIMAL
DRILL_DEPTH_Z
METRIC DECIMAL
Usage
Drilled cycle safe retract plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle safe retract plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Drilled cycle safe retract plane in X, Y and Z. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Pecking cycle peck depth per peck in X, Y and Z. Works in conjunction with SYS_CANNED(????). See SYS_CANNED. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Pecking cycle peck depth per peck in X, Y and Z. Works in conjunction with SYS_CANNED(????). See SYS_CANNED. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post.
DRILL_SAFE_Y
METRIC DECIMAL
DRILL_SAFE_Z
METRIC DECIMAL
DRILL_PECK_DEPTH_X
METRIC DECIMAL
DRILL_PECK_DEPTH_Y
METRIC DECIMAL
Usage
Pecking cycle peck depth per peck in X, Y and Z. Works in conjunction with SYS_CANNED(????). See SYS_CANNED. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Pecking cycle rapid back into hole clearance plane in X, Y and Z. Works in conjunction with SYS_CANNED(????). See SYS_CANNED. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Pecking cycle rapid back into hole clearance plane in X, Y and Z. Works in conjunction with SYS_CANNED(????). See SYS_CANNED. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post. Pecking cycle rapid back into hole clearance plane in X, Y and Z. Works in conjunction with SYS_CANNED(????). See SYS_CANNED. CAMWorks 2005 or later: this variable will output the world coordinate correctly if the post has WORLD_POSITIONING set to TRUE. ProCAM II 2004 or later: WORLD_POSITIONING does not need to be set in the post.
DRILL_PECK_RAPID_TO_X
METRIC DECIMAL
DRILL_PECK_RAPID_TO_Y
METRIC DECIMAL
DRILL_PECK_RAPID_TO_Z
METRIC DECIMAL
Usage
Stores the internal tool length that is defined in the tool definition and is used in the system calc section called :SECTION=CALC_TOOL_INITIALIZE. This is used when the machine is 4 or 5 axis and the head rotates and or tilts. In this case the posted output may need to have the numbers modified for tool length. Note: Can be used only with CAMWorks 2005 or ProCAM II 2004 or later versions. Stores a deviation amount for doing a SYS_CANNED(5,???) arc breakup in 4 and 5 axis milling with arcs that are not on the top plane. This is also used in a CAMWorks Live C post for OD and FACE milling for arc breakup, but not using SYS_CANNED. Stores a 0 or 1 and is used if the laser or plasma tool path is closed. If it stores a 0, then the tool path is to the outside of the geometry if it stores a 1, then the toolpath is to the inside of the geometry. This variable stores a 0, 1 or 2 and is used for checking the type of laser or plasma tool path. If it stores a 0, then the tool path is open. If it stores a 1, then the tool path is closed. If it stores a 2, then it is a full circle toolpath. The system constants that are associated are
OPEN_SHAPE=0 CLOSED_SHAPE=1 CIRCLE_SHAPE=2
ARC_DEVIATION
METRIC DECIMAL
SHAPE_INSIDE
INTEGER
SHAPE_TYPE
INTEGER
SHAPE_DIAMETER
METRIC DECIMAL
BOUNDARY_AREA
METRIC DECIMAL
Stores the boundary area of a closed laser of plasma toolpath. Used in conjunction with the external database. If it is not a closed toolpath, then the value will be set to a -1.
Usage
Stores a 0 or 1 depending on whether the post has a header command :VECTOR_COMP set to TRUE and you are in CAMWorks 3 Axis cutting operations. It will store a 1 if you are in an Advanced cutting operation, if not then the value is 0. Stores the X end point of a line movement in a CAMWorks 3 Axis cutting operation if the post has the :VECTOR_COMP header set to TRUE. Stores the Y end point of a line movement in a CAMWorks 3 Axis cutting operation if the post has the :VECTOR_COMP header set to TRUE. Stores the Z end point of a line movement in a CAMWorks 3 Axis cutting operation if the post has the :VECTOR_COMP header set to TRUE. Stores the vector of I in a line movement in a CAMWorks 3 Axis cutting operation if the post has the :VECTOR_COMP header set to TRUE. Stores the vector of J in a line movement in a CAMWorks 3 Axis cutting operation if the post has the :VECTOR_COMP header set to TRUE. This variable stores the vector of K in a line movement in a CAMWorks 3 Axis cutting operation if the post has the :VECTOR_COMP header set to TRUE. Stores the EDM operation clearance amount. Stores the EDM Glue Stop option setting. If you are using a glue stop, it is set to 1 (YES). If not, then it is set to 0 (NO). Stores the EDM Glue Stop distance amount. If you are using a glue stop, it is set the distance entered in the operation dialog box. Stores the punch manual clamp move, which will be an absolute distance. This will be available only if the post has the post header command : MOVE_CLAMP=TRUE.
XC
METRIC DECIMAL
YC
METRIC DECIMAL
ZC
METRIC DECIMAL
IC
METRIC DECIMAL
JC
METRIC DECIMAL
KC
METRIC DECIMAL
OPR_CLEARANCE OPR_GLUE_STOP
INTEGER INTEGER
OPR_GLUE_DISTANCE
INTEGER
CLAMP1_POSITION
METRIC DECIMAL
Usage
Stores the punch manual clamp move, which will be an absolute distance. This will be available only if the post has the post header command : MOVE_CLAMP=TRUE. Stores the punch manual clamp move, which will be an absolute distance. This will be available only if the post has the post header command : MOVE_CLAMP=TRUE. Stores the punch manual clamp move, which will be an absolute distance. This will be available only if the post has the post header command : MOVE_CLAMP=TRUE. Stores CAMWorks assembly mode tool ID information per tool change. Stores CAMWorks assembly mode tool ID information per tool change for the next tool to be output. Stores CAMWorks assembly mode tool ID information for the next movement. Stores the CAMWorks assembly mode operation global retract plane in Z axis when you are doing a 4 or 5 axis rotary position move to another plane. The value is also assigned to the last Z value (ABS_Z_END) just before you rotate to another plane. Stores the ProCAM 2D sorter arm operations pickup position in the X axis. Stores the ProCAM 2D sorter arm operations pickup position in the Y axis. Stores the ProCAM 2D sorter arm operations destination position in the X axis Stores the ProCAM 2D sorter arm operations destination position in the Y axis.
CLAMP3_POSITION
METRIC DECIMAL
CLAMP4_POSITION
METRIC DECIMAL
KOMBID
CHARACTER
NEXT_KOMBID
CHARACTER
NEXT_MOVE_KOMBID
CHARACTER
OPR_Z_ROTARY_RETRACT_PLANE
METRIC DECIMAL
ARM_PICKUP_X
ARM_PICKUP_Y
ARM_DESTINATION_X
ARM_DESTINATION_Y
Usage
Stores the ProCAM 2D sorter arm operations offset distance. Stores the ProCAM 2D sorter arm operations active cups.
OPR_POLAR=TRUE or FALSE Set to FALSE if your machine does not support
ARM_ACTIVE_CUPS
OPR_POLAR
INTEGER
special G-code for doing milling on the OD and or FACE. Set this command to TRUE if you have a machine that supports the special G-code for milling on the OD and or FACE. When you are in a lathe/mill milling operation, you can select Fixed or Free for the Rotary Axis Mode on the NC tab. If you select Free, you can select Polar/Cylindrical interpolation. When you select the Polar/Cylindrical interpolation, this variable will store a value of 1. Otherwise, it is set to zero.
OPR_B_AXIS
METRIC DECIMAL
Stores the B axis in an absolute angle from defined setup parameters. This variable can be used only in CAMWorks 2005 or later versions for lathe/mill (live c) combination machines Stores the B axis in an incremental angle from last position. This variable will be available in a future CAMWorks version that has implemented 5 axis cutting in the lathe/mill (live c) system. Options:
N_INC_B_END N_ = next move P_INC_B_END P_ = previous move
INC_B_END
METRIC DECIMAL
ABS_B_END
METRIC DECIMAL
Stores the B axis in an absolute end angle from zero position. This variable will be available in a future CAMWorks version that has implemented 5 axis cutting in the lathe/mill (live c) system. Options:
N_ABS_B_END N_ = next move P_ABS_B_END P_ = previous move
Usage
Stores the B axis in an absolute start angle from zero position. This variable will be available in a future CAMWorks version that has implemented 5 axis cutting in the lathe/mill (live c) system. Options
N_ABS_B_START N_ = next move P_ABS_B_START P_ = previous move
MCS_X_OFFSET
METRIC DECIMAL
Stores the Machine Coordinate System as an absolute position in X using ProCAM II or CAMWorks assembly mode. Stores the Machine coordinate System as an absolute position in Y using ProCAM II or CAMWorks assembly mode. Stores the Machine coordinate System as an absolute position in Z using ProCAM II or CAMWorks assembly mode. Laser or Plasma: Stores the system database path. Is used with the OPENDB command. It stores either the Metric database path or the English database path depending on the current system selected when posting. Laser or Plasma: Stores the system database path. Is used with the OPENDB command. It stores the English database path. Laser or Plasma: Stores the system database path. Is used with the OPENDB command. It stores the Metric database path. Laser or Plasma: When using the standard database, this variable stores what units the database is using. Either English or Metric. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
MCS_Y_OFFSET
METRIC DECIMAL
MCS_Z_OFFSET
METRIC DECIMAL
LASER_DBPATH
CHARACTER
ENGLISH_LASERDB
CHARACTER
METRIC_LASERDB
CHARACTER
LD_METRIC
CHARACTER
Usage
Laser or Plasma: When using the standard database, this variable stores what Material type is being used. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the Material thickness is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_THICKNESS
DECIMAL
Usage
Laser or Plasma: When using the standard database, this variable stores the Data Group. These are the different data groups:
General Pierce Conditions Area size 1 Cut Conditions Area size 2 Cut Conditions Area size 3 Cut Conditions Area size 4 Cut Conditions Area size 5 Cut Conditions Line Length 1 Cut Conditions Line Length 2 Cut Conditions Line Length 3 Cut Conditions Line Length 4 Cut Conditions Line Length 5 Cut Conditions Arc Radius 1 Cut Conditions Arc Radius 2 Cut Conditions Arc Radius 3 Cut Conditions Arc Radius 4 Cut Conditions Arc Radius 5 Cut Conditions External Boundary Parameters Internal Boundary Parameters Hole size 1 Parameters Hole size 2 Parameters Hole size 3 Parameters Hole size 4 Parameters Hole size 5 Parameters Hole size 1 cut Conditions Hole size 2 cut Conditions Hole size 3cut Conditions Hole size 4 cut Conditions Hole size 5 cut Conditions Microjoints
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_PART_CLEARANCE
DECIMAL
Laser or Plasma: When using the standard database, this variable stores what the Part clearance is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
Usage
Laser or Plasma: When using the standard database, this variable stores what the Sensor radius is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the Go around distance is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the Auto break distance into the cut is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the Auto break distance out of the cut is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the System comp is:
(3) for n/a (2) for Off (1) for On
LD_GO_AROUND_DISTANCE
DECIMAL
LD_AUTOBREAK_IN_LENGTH
DECIMAL
LD_AUTOBREAK_OUT_LENGTH
DECIMAL
LD_SYSTEM_COMP
INTEGER
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
Additional System Variables 12-13
Usage
Laser or Plasma: When using the standard database, this variable stores what the Cutting condition mode is:
(1) Area (2) Line Length/Arc Radius The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files
are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_DIRECTION
INTEGER
Laser or Plasma: When using the standard database, this variable stores what the Cutting direction is:
Clockwise Counter Clockwise Original n/a The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files (1) (2) (3) (4)
are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_START_POSITION
INTEGER
Laser or Plasma: When using the standard database, this variable stores what the where cutting is to start from:
(1) Auto (2) Long edge midpoint (3) n/a The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files
are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_LIFTHEAD
INTEGER
Laser or Plasma: When using the standard database, this variable stores whether you need the Lift Head option or not:
(1) On (2) Off (3) n/a
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
Usage
Laser or Plasma: When using the standard database, this variable stores if you want to start at hole center or not:
(1) On (2) Off (3) n/a
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_LEADIN_MODE
INTEGER
Laser or Plasma: When using the standard database, this variable stores what type of leadin is used.
(1) (2) (3) (4) (5) Arc n/a None Parallel Perpendicular
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_LEADIN_LENGTH
DECIMAL
Laser or Plasma: When using the standard database, this variable stores what the leadin distance is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the leadin angle is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_LEADIN_ANGLE
DECIMAL
Usage
Laser or Plasma: When using the standard database, this variable stores what the leadin arc radius is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the leadin arc angle is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the leadin overlap is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what type of leadout is used.
Clockwise Counter Clockwise Original None The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files (1) (2) (3) (4)
LD_LEADIN_ARC_ANGLE
DECIMAL
LD_OVERLAP
INTEGER
LD_LEADOUT_MODE
INTEGER
are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
Usage
Laser or Plasma: When using the standard database, this variable stores what the leadout length is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the leadout angle is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the leadout arc radius is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the leadout arc angle is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores what the leadout overlap distance is. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_LEADOUT_ANGLE
DECIMAL
LD_LEADOUT_ARC_RADIUS
DECIMAL
LD_LEADOUT_ARC_ANGLE
DECIMAL
LD_LEADOUT_OVERLAP
DECIMAL
Usage
Laser or Plasma: When using the standard database, this variable stores the size of the Area, Line Length, Arc Radius and Holes. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores the color of the different path sizes and shapes.
(1) BLACK (2) BLUE (3) GREEN (4) CYAN (5) RED (6) MAGENTA (7) BROWN (8) GRAY (9) WHITE (10)LTBLUE (11)LTGREEN (12)LTCYAN (13)LTRED (14)LTMAGEN (15)YELLOW (16)HIWHITE
LD_COLOR
INTEGER
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_SUBROUTINE_NUMBER
INTEGER
Laser or Plasma: When using the standard database, this variable stores the subroutine number used. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores the federate used. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_FEEDRATE
DECIMAL
Usage
Laser or Plasma: When using the standard database, this variable stores the federate percentage used. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores the size of the Area, Line Length, Arc Radius and Holes. The file used for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores the assist gas type.
(1)Oxygen (2)Nitrogen (3)Carbon Dioxide (4)n/a The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files
LD_POWER_LEVEL
INTEGER
LD_ASSIST_GAS
CHARACTER
are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_GAS_PRESSURE
INTEGER
Laser or Plasma: When using the standard database, this variable stores the gas pressure used. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
Usage
Laser or Plasma: When using the standard database, this variable stores the second assist gas type: (1) Oxygen
(2) Nitrogen (3) Carbon Dioxide (4) n/a The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files
are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_2ND_GAS_PRESSURE
INTEGER
Laser or Plasma: When using the standard database, this variable stores the second gas pressure used. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores the laser mode type:
(3)Continuous Wave (4)Dynamic Power (1)Gated Pulse (5) n/a (2) Super Power The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files
LD_LASER_MODE
CHARACTER
are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_FREQUENCY
INTEGER
Laser or Plasma: When using the standard database, this variable stores the laser frequency. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
Usage
Laser or Plasma: When using the standard database, this variable stores the laser duty cycle. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores the coolant type used.
(1)On (2)Off (3)n/a
LD_COOLANT_MODE
CHARACTER
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_OFFSET_VALUE
INTEGER
Laser or Plasma: When using the standard database, this variable stores the offset value used. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the r standard database, this variable stores the duration amount. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_DURATION
INTEGER
Usage
Laser or Plasma: When using the standard database, this variable stores whether you are using microjoints:
(1)On (2)Off (3)n/a
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_COMMENT
CHARACTER
Laser or Plasma: When using the standard database, this variable stores the comment. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores whether you are ending at hole center or not.
(1)On (2)Off (3)n/a
LD_END_AT_HOLE_CENTER
INTEGER
The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
LD_OPTION_START_POSITION
INTEGER
Laser or Plasma: When using the standard database, this variable stores the optional start position. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE.
Usage
Laser or Plasma: When using the standard database, this variable stores the user's choice start position. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. Laser or Plasma: When using the standard database, this variable stores the expansion integer fields. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. When using the Plasma or Laser standard database this variable stores the expansion decimal fields. The file for English is FABDBENGLISH.MDB and for Metric FABDBMETRIC.MDB. These files are in the \procad\defaults folder. The post header command called LASER_PLASMA_CUT_DATA must be set to TRUE. The current running system.
RUNNING_SYSTEM=CAMWORKS RUNNING_SYSTEM=PROCAM_2D RUNNING_SYSTEM=PROCAM_3D CAMWORKS=1 PROCAM_2D=2 PROCAM_3D=3
INTEGER
DECIMAL
RUNNING_SYSTEM
INTEGER
SKIM_CUT
INTEGER
TAB_CUT
INTEGER
Usage
ProCAM 2D: Stores the total number of skim cuts in a part file. ProCAM 2D: Stores the total number of tab cuts in a part file. ProCAM 2D: Stores the total number of skim cuts in an operation. ProCAM 2D: Stores the total number of tab cuts in an operation. ProCAM 2D EDM: Stores the EDM operation type.
SKIM_CUT=CURRENT SKIM_CUT=PREVIOUS SKIM_CUT=NEXT CURRENT=0 PREVIOUS=1 NEXT=2
PART_TOTAL_TAB_CUTS
INTEGER
OPER_TOTAL_SKIM_CUTS
INTEGER
OPER_TOTAL_TAB_CUTS
INTEGER
OPER_CURRENT_SKIM_CUT
INTEGER
OPER_CURRENT_TAB_CUT
INTEGER
DSPINDLE
INTEGER
CAMWorks and ProCAM 2D: Stores whether you are using a main or sub spindle in the lathe system.
DSPINDLE=MAIN_SPINDLE DSPINDLE=SUB_SPINDLE MAIN_SPINDLE =1 SUB_SPINDLE =2
POST_PATH OPR_LATHE_TAPPING
CHARACTER INTEGER
Stores the posted output path. ProCAM 2D Lathe: Stores whether you need to do a lathe tapping cycle while in the lathe drilling operation. OPR_LATHE_TAPPING=FALSE
OPR_LATHE_TAPPING=TRUE
LASER_MATERIAL
CHARACTER
Stores the material name from the setup information and updates the material name in the laser, plasma database, so it matches.
Usage
Stores the sheet thickness from the setup information and updates the sheet thickness in the laser, plasma database, so it matches. Stores Punch system sorter arm database path. Is used with the OPENDB command. It stores either the Metric or English database path depending on the current system selected when posting. Stores the Punch system sorter arm English database path. Is used with the OPENDB command. Stores the Punch system sorter arm Metric database path. Is used with the OPENDB command. Stores the retract type when using Lathe canned cycles:
(1) Z then X (2) X then Z (3) Direct
ARM_SORTER_DBPATH
CHARACTER
ARM_ENGLISH_LASERDB
CHARACTER
ARM_METRIC_LASERDB
CHARACTER
OPR_LATHE_RETRACT_TYPE
INTEGER
TOOL_SPEC_NAME
CHARACTER
ProCAM 2D Punch: Stores the special tool name for the current tool station. There will be a name for each station that uses a special tool. This variable can also be used in the GETTOOLS(???) command. ProCAM 2D Punch: Stores the special tool path for the current tool station. There will be a path for each station that uses a special tool. This variable can also be used in the GETTOOLS(???) command. CAMWorks: Stores the absolute value of the Lathe Sub Spindle transfer location along the Z axis. CAMWorks: Stores the incremental value of the Lathe Sub Spindle transfer location along the Z axis. CAMWorks: Stores the distance traveled when a transfer takes place between the lathe main and sub spindle along the Z axis.
TOOL_SPEC_PATH
CHARACTER
ABS_PICK_LOCATION
DECIMAL
INC_PICK_LOCATION
DECIMAL
TRANSFER_DISTANCE
DECIMAL
Usage
CAMWorks 2007 and later: Stores the current lathe operation's approach strategy to the start of the cut.
OPR_LATHE_APPROACH_STRATEGY=Z_THEN_X OPR_LATHE_APPROACH_STRATEGY=X_THEN_Z OPR_LATHE_APPROACH_STRATEGY=DIRECT OPR_LATHE_APPROACH_STRATEGY=AUTO Z_THEN_X=0 X_THEN_Z=1 DIRECT=2 AUTO=3
OPR_LATHE_RETRACT_STRATEGY
INTEGER
CAMWorks 2007 and later: Stores the current lathe operation's retract strategy at the end of the cut.
OPR_LATHE_RETRACT_STRATEGY=Z_THEN_X OPR_LATHE_RETRACT_STRATEGY=X_THEN_Z OPR_LATHE_RETRACT_STRATEGY=DIRECT OPR_LATHE_RETRACT_STRATEGY=AUTO Z_THEN_X=0 X_THEN_Z=1 DIRECT=2 AUTO=3
CAM_MOVE_FLAG
INTEGER
CAMWorks 2007 and later: Shows what type of lathe move you are doing.
:C: IF FLAGGED(CAM_MOVE_FLAG,CAM_APPROACH)=TRUE THEN :C: IF FLAGGED(CAM_MOVE_FLAG, CAM_MOVE_X)=TRUE AND :C: FLAGGED(CAM_MOVE_FLAG, CAM_MOVE_Z)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE) :C: RETURN :C: ELSE :C: IF FLAGGED(CAM_MOVE_FLAG,CAM_MOVE_X)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE_X) :C: RETURN :C: ELSE :C: IF FLAGGED(CAM_MOVE_FLAG,CAM_MOVE_Z)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE_Z) :C: RETURN :C: ENDIF :C: ENDIF :C: ENDIF :C: ENDIF CAM_MOVE_FLAG=CAM_RAPID CAM_MOVE_FLAG=CAM_APPROACH CAM_MOVE_FLAG=CAM_RETRACT CAM_MOVE_FLAG=CAM_MOVE_X CAM_MOVE_FLAG=CAM_MOVE_Y CAM_MOVE_FLAG=CAM_MOVE_Z CAM_MOVE_FLAG=CAM_LEADIN CAM_MOVE_FLAG=CAM_LEADOUT
Bit Values CAM_RAPID=1 CAM_APPROACH =2 CAM_RETRACT=4 CAM_MOVE_X=8 CAM_MOVE_Y=16 CAM_MOVE_Z=32 CAM_LEADIN=64 CAM_LEADOUT=128 Options N_CAM_MOVE_FLAG P_CAM_MOVE_FLAG N_ = next move P_ = previous move
TOOL_ORIENT
INTEGER
CAMWORKS_VER
INTEGER
CAMWorks: Stores the version you are running. Any version below CW2006 will register as zero. As new commands are inserted into the posting system, they will be available when new CAMWorks versions are released. If a post was to run on two different versions of CAMWorks, then you may need to use this variable depending on the commands used in the post.
CAMWORKS_VER= CAM_REV2006 CAMWORKS_VER= CAM_REV2006EX CAMWORKS_VER= CAM_REV2007 CAM_REV2006=0 CAM_REV2006EX=0 CAM_REV2007=1
:C: IF CAMWORKS_VER>CAM_REV2006EX THEN :C: IF FLAGGED(CAM_MOVE_FLAG,CAM_APPROACH)=TRUE THEN :C: IF FLAGGED(CAM_MOVE_FLAG, CAM_MOVE_X)=TRUE AND :C: FLAGGED(CAM_MOVE_FLAG, CAM_MOVE_Z)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE) :C: RETURN :C: ELSE :C: IF FLAGGED(CAM_MOVE_FLAG,CAM_MOVE_X)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE_X) :C: RETURN :C: ELSE :C: IF FLAGGED(CAM_MOVE_FLAG,CAM_MOVE_Z)=TRUE THEN :C: CALL(RAPID_MOVE_LATHE_Z) :C: RETURN :C: ENDIF :C: ENDIF :C: ENDIF :C: ENDIF :C: ENDIF
OPR_SHIFT_TYPE
INTEGER
INTEGER
Stores the shift orientation selected in the Lathe finish grooving cycle. This will be the called section at the time of a shift CALC_SHIFT_TOOL_LATHE. This section will be called for selecting cutter comp direction "CALC_CUTTER_COMP_LATHE". Supported in CAMWorks 2007 and later. Not supported in any ProCAM product. This variable stores the drive point of a finish grooving cycle tool during posting. This variable will be updated in a called section CALC_SHIFT_TOOL_LATHE.
DRIVE_CENTER=0 DRIVE _RIGHT=1 DRIVE _LEFT=2 DRIVE _TOOL_NOSE=3
INTEGER
Supported in CAMWorks 2007 and later. Not supported in any ProCAM product. Stores the current touch off point of a finish grooving cycle tool during posting. This is the current active edge when you are in a called section CALC_SHIFT_TOOL_LATHE.
PROG_POINT_CENTER=0 PROG_POINT _PRIMARY=1 PROG_POINT _SECONDARY=2
Supported in CAMWorks 2007 and later. Not supported in any ProCAM product.
Usage
Tells the system whether your post supports a rapid move in a drilling cycle via editing the toolpath. This section will be called to check for its value CALC_ALLOW_RAPID_DURING_DRILL. If this variable or section is not in the post, then it will assume the post does not support this option.
RAPID_DURING_DRILL_CYCLE=TRUE RAPID_DURING_DRILL_CYCLE=FALSE
OPR_THREAD_CHAMFER_ANG
DECIMAL
CAMWORKS_MATERIAL
CHARACTER
DECIMAL
DECIMAL
Supported in CAMWorks 2007 and later. Not supported in any ProCAM product. This variable stores the lathe threading cycles chamfer angle from entered angle. Supported in CAMWorks 2007 and later. Not supported in any ProCAM product. Stores the selected material from CAMWorks Stock Manager. Currently, the post used a variable called material which was asked in the posting setup tab. If you are loading old parts that used the material and it was set, then we will use that string. If you are creating new parts, you can ignore that question and CAMWorks will set material to the same value as CAMWORKS_MATERIAL. You can also remove the material question from the post and just use CAMWORKS_MATERIAL. It will still set material because that variable is used in the post's setup output. Supported in CAMWorks 2007 and later. Not supported in any ProCAM product. Stores the lathe finish grooving cycle's shift amount. This is an incremental signed distance from the center of the groove tool to the driven touch off point in the X direction. Supported in CAMWorks 2007 and later. Not supported in any ProCAM product. Stores the lathe finish grooving cycle's shift amount. This is an incremental signed distance from the center of the groove tool to the driven touch off point in the Z direction. Supported in CAMWorks 2007 and later. Not supported in any ProCAM product.
System Variables
SYS_CANNED
SYS_CANNED
Purpose
To break an entity not supported by the post into a series of entities that are supported by the post. Typically, this command is used the explode line, grid, arc, bolt hole patterns and pecking canned cycles into single points
Syntax
SYS_CANNED(type,section)
Comments
Parameter Description
type
the type of breakup and is a constant 1 Single points 2 Lines, arcs and bolt holes (use only on grids and big hole patterns) 3 Breaks a thread cycle into diameters (use only on threading cycles) 4 Breaks a Live C post Mill OD or Mill Face line move into increments defined by post variable MILL_FACE_INC as a chord length(use only in ProCAM 2D with post set to :SYSTEM=LATHE/MILL and on Mill line moves only. It will also break the angle rotation of the C axis in the line move). 5 Breaks an arc that is not on the top plane by ARC_DEVIATION set in the arc calc section (use only in 4 and 5 axis posts that have arcs that are not on the top plane. This command can only be used in ProCAM II 2004 and CAMWorks 2005 or newer versions). 6 Breaks a canned peck drilling cycle into operation defined increments (use only in CAMWorks 2005 or newer version for mill pecking canned cycles). section that will handle the exploded entity The word SYSTEM instructs the system to call the appropriate sections.
section
Example
SYS_CANNED(1,?????) :SECTION=CALC_ARC_PATTERN_PUNCH :C: SYS_CANNED(1,CALC_SINGLE_HIT_PUNCH) :SECTION=CALC_GRID_PATTERN_PUNCH :C: SYS_CANNED(2,SYSTEM) :SECTION=CALC_MACHINE_THREAD_LATHE :C: SYS_CANNED(3,CALC_MULTIPLE_THREAD_LATHE)
SYS_CANNED
Warning: A SYS_CANNED command cannot be executed while inside of another SYS_CANNED cycle. In the example below, grids are broken into line patterns, but since the post does not support line patterns, another SYS_CANNED command is executed. This is an error.
SYS_CANNED(2,?????) :SECTION=CALC_GRID_PATTERN_PUNCH :C: SYS_CANNED(2,SYSTEM) :SECTION=CALC_LINE_PATTERN_PUNCH :C: SYS_CANNED(1,CALC_SINGLE_HIT_PUNCH)
GETID
GETID
Purpose
To allow a string, which is the attribute name that defines the record list in the OPENDB or LOOKUPDB commands.
Syntax
GETID(cutdata_fields)
Comments
Basically to use a POST string attribute that will store the Record list and Lookup list attributes. The "cutdata_fields" is the attrname that defines the RECORD_LIST. Since you can have up to 20 different databases open at anytime, you would need to have 20 different OPENDB and LOOKUPDB calc sections. With this function you can put a string in place of the "cutdata_fields attrname. As an example, you would use GETID(cutdata_fields) in a calc section and then call the calc section that does the OPENDB or LOOKUPDB command and all you need is one calc section to do the OPENDB or LOOKUPDB commands for as many databases that are open. (RECORD_LIST is an integer variable)
RECORD_LIST=GETID(cutdata_fields) OPENDB(1,LASER_DBPATH,{FABDB},RECORD_LIST,DATABASE_STATUS)
OPENTXT
OPENTXT
Purpose
Allows the post to open external files and write to them while posting.
Syntax
OPENTXT(FileNumber,FileName,Status)
Comments
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT FileName Alternate text filename character string or character variable with full path. Status Integer variable to return status of the command 1 = Success, 0 = Fail.
CLOSETXT
CLOSETXT
Purpose
Allows the post to close external files and write to them while posting.
Syntax
CLOSETXT(FileNumber)
Comments
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT.
SETTXT
SETTXT
Purpose
To set the current FileNumber as the file to receive output from the posts template lines.
Syntax
SETTXT(FileNumber)
Comments
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT. The FileNumber must be opened before you can write to it.
UPPERTXT
UPPERTXT
Purpose
To set the output from the post's template lines as all upper case letters in the current FileNumber.
Syntax
UPPERTXT(FileNumber)
Comments
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT. The FileNumber must be opened before you can write to it. You can do a SETTXT(?) command and then do the UPPERTXT(?) command before you output any post template lines.
LOWERTXT
LOWERTXT
Purpose
To set the output from the post's template lines as all lower case letters in the current FileNumber.
Syntax
LOWERTXT(FileNumber)
Comments
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT. The FileNumber must be opened before you can write to it. You can do a SETTXT(?) command and then do the LOWERTXT(?) command before you output any post template lines.
ORIGINALTXT
ORIGINALTXT
Purpose
To set the output from the post's template lines as either upper or lower case letters in the current FileNumber.
Syntax
ORIGINALTXT(FileNumber)
Comments
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT. The FileNumber must be opened before you can write to it. You can do a SETTXT(?) command and then do the ORIGINALTXT(?). This is the standard format if not specified to be upper or lower case.
OPENRWTXT
OPENRWTXT
Purpose
Allows the post to open external files to read and write line by line while posting.
Syntax
OPENRWTXT(FileNumber,FileName,Status)
Comments
When reading line by line, you will use GETTXT(FileNumber, StringVar, Status) until Status = 0 then you are at the end of the file. If you want to append to an existing file, you can use the GETTXT command to get to the end of the file, then use SETTXT command to append. To open a new file, you use either OPENTXT or OPENRWTXT command. You can use this command with these commands: CLOSETXT , SETTXT, UPPERTXT, LOWERTXT and ORIGINALTXT.
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT. FileName Alternate text filename character string or character variable with full path. Status Integer variable to return status of the command 1 = Success, 0 = Fail.
GETTXT
GETTXT
Purpose
To set the current FileNumber to read line by line.
Syntax
GETTXT(FileNumber,StringVar,Status)
Comments
This command will work only if the current file has been opened by OPENRWTXT only. This will not work with OPENTXT.
Parameter Description
FileNumber Alternate text file ID number - range (0 to 20) 0 reserved for Post Text file and cannot be used in OPENTXT or CLOSETXT. The FileNumber must be opened before you can read it. StringVar Stores the read string variable. Status Integer variable to return status of the command 1 = Success, 0 = Fail or at end of line.
GETMCS
GETMCS
Purpose
To get all the different MCS offsets inserted in the current part file using ProCAM II or CAMWorks.
Syntax
GETMCS(2,calc_section)
Comments
This command will do a search through the whole part file and gather all the different MCS offsets along with the Tool, Tool Comment, Rotation angles and the Work Coordinate Offset values. The calc_section is any calc section you want to use for getting that information. The GETMCS will call that calc section every time it finds a different MCS offset. This can be used for machines that need to call out all the MCS offsets at the start of the program like Fanucs G10 command. Variables that will have information stored during this command are MCS_X_OFFSET, MCS_Y_OFFSET, MCS_Z_OFFSET, TOOL, TOOL_COMMENT, ROT_TILT_A, ROT_TILT_B, work_coord, sub_work_coord and fixture_offset.
STRGLEN
STRGLEN
Purpose
Allows the post to get the string length of any string.
Syntax
STRGLEN(string_var)
Comments
Parameter Description
string_var Is the string variable or hard coded. Hard coded means using the {} braces and putting characters between them.
:C: STRG={TEST} :C: STRG_LENGTH=STRGLEN(STRG) The STRG_LENGTH would equal 4
LEFTSTRG
LEFTSTRG
Purpose
Allows the post to capture a string starting from the left of the string to the right by a character count (length).
Syntax
LEFTSTRG(target_string,string_var,length)
Comments
Parameter Description
target_string The receiving string variable. This can only be a defined POST character variable. string_var The string variable or hard coded. Hard coded means using the {} braces and putting characters between them.
:C: STRG={TEST} :C: LEFTSTRG(STRGA , STRG, 2) The STRGA would equal TE :C: :C: :C: The LENGTH=2 STRG={TEST} LEFTSTRG(STRGA , STRG, LENGTH) STRGA would equal TE
RIGHTSTRG
RIGHTSTRG
Purpose
Allows the post to capture a string starting from the right of the string to the left by a character count (length).
Syntax
RIGHTSTRG(target_string,string_var,length)
Comments
Parameter Description
target_string The receiving string variable. This can only be a defined POST character variable. string_var The string variable or hard coded. Hard coded means using the {} braces and putting characters between them.
:C: STRG={TEST} :C: RIGHTSTRG(STRGA , STRG, 2) The STRGA would equal ST :C: :C: :C: The LENGTH=2 STRG={TEST} RIGHTSTRG(STRGA , STRG, LENGTH) STRGA would equal ST
MIDSTRG
MIDSTRG
Purpose
Allows the post to capture a string starting from a given character count from the left of the string to the right by a character count (length).
Syntax
MIDSTRG(target_string,string_var,start,length)
Comments
Parameter Description
target_string The receiving string variable. This can only be a defined POST character variable. string_var The string variable or hard coded. Hard coded means using the {} braces and putting characters between them. start An integer or integer variable that defines the starting character to capture. length An integer or integer variable that stores the given character count from the left of the string starting character to the right.
:C: STRG={JOHN DOE} :C: MIDSTRG(STRGA , STRG, 6, 3) The STRGA would equal DOE :C: :C: :C: :C: The START=6 LENGTH=3 STRG={TEST} MIDSTRG(STRGA , STRG, START, STRGA would equal DOE
LENGTH)
STRGUPPER
STRGUPPER
Purpose
Allows the post to change the given string to have all upper case characters.
Syntax
STRGUPPER(target_string,string_var)
Comments
Parameter Description
target_string The receiving string variable. This can only be a defined POST character variable. string_var The string variable or hard coded. Hard coded means using the {} braces and putting characters between them.
:C: STRG={test} :C: STRGUPPER(STRGA , STRG) The STRGA would equal TEST
STRGLOWER
STRGLOWER
Purpose
Allows the post to change the given string to have all lower case characters.
Syntax
STRGLOWER(target_string,string_var)
Comments
Parameter Description
target_string The receiving string variable. This can only be a defined POST character variable. string_var The string variable or hard coded. Hard coded means using the {} braces and putting characters between them.
:C: STRG={TEST} :C: STRGLOWER(STRGA , STRG) The STRGA would equal test
GET_SELECT STRING
GET_SELECT STRING
Purpose
To gather a string list from a life that will update the list selection from the Setup Info. It lets the user put more materials in the file and not have to recompile the post. The file that will store the string lists corresponds to the name of the compiled post. If the compiled post is FANUC6M.CTL, then the file used will be FANUC6M.CNF.
Syntax
These commands are associated with this command, which will be in the *.CNF file.
Command Description
The name of the lowercase attribute that will show the list in the Setup Info. CONFIG_SELECT_OPTION The string that you want to select from. You can have as many of these in a row as needed. It basically creates the list. CONFIG_SELECT_DEFAULT Sets the default selection from the list. If you wanted the 3rd string in the list as the default, then this would equal 3. CONFIG_SELECT_END Lets the post know you are done with the list. CONFIG_SELECT_NAME This is what would be in the *.CNF file. :CONFIG_SELECT_NAME=material type :CONFIG_SELECT_OPTION=STEEL :CONFIG_SELECT_OPTION=STAINLESS STEEL :CONFIG_SELECT_OPTION=ALUMINUM :CONFIG_SELECT_OPTION=COPPER :CONFIG_SELECT_DEFAULT=3 :CONFIG_SELECT_END
Comments
Below is an example of using this for gathering a list of materials. *-----------------------------:ATTRNAME=material type :ATTRTYPE=SELECT :ATTREMARK=Material type :ATTRSEL=N :ATTRTITLE=Material Type :ATTRSELSTR=Rolled Steel :ATTRSELSTR=Aluminum :ATTRSELSTR=Stainless Steel :ATTRDEFAULT=1 :ATTRUSED=1 :ATTREND *----------------------------------:ATTRNAME=S MATERIAL TYPE
13-20 Additional System Commands
GET_SELECT STRING
:ATTRTYPE=POST :ATTRVTYPE=CHARACTER :ATTREMARK= :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|( :WORD_ADDRESS_AFT=) :LEFT_PLACES=0 :RIGHT_PLACES=0 :UNITFLAG=NON_CONVERT :ATTRSPACES=YES :MODAL=YES :ATTRUSED=1 :ATTREND
*----------------------------------:SECTION=CALC_INIT_TOOL_CHANGE_MILL :C: IF SECTIONEXIST(DEBUG) THEN :C: DEBUG=4 CALL(DEBUG) :C: ENDIF * :C: GET_SELECT_STRING(material_type,S_MATERIAL_TYPE) :C: CALL(OUPTUT_MATERIAL) *----------------------------------:SECTION=OUTPUT_MATERIAL :T:<S_MATERIAL_TYPE> GET_SELECT_STRING(material_type,S_MATERIAL_TYPE) Material_type is an attribute that is defined and is lower case, plus it needs to be defined in the master.atr file. You can insert a few :ATTRSELSTR= in this definition as shown above. The next attribute defined is the output post attribute S_MATERIAL_CODE, which can be any name you give it. The section called :SECTION=CALC_INIT_TOOL_CHANGE_MILL is where I will start the command. GET_SELECT_STRING(material_type,S_MATERIAL_TYPE), then call a template section to test out the selection :C: CALL(OUTPUT_MATERIAL). Make sure you have a template section created for the call. You do not need to do this step if you do not need to output the selected string.
FASTLINE
FASTLINE
Purpose
To output lines of code at a faster rate then normal. This is only available in the 3 axis milling operations.
Syntax
FASTLINE(template_section)
Comments
Parameter Description
template_section
The template section that will output the lines of code. You will need to define the ATTRNAMES listed below.
*---------------------------------------------------------:ATTRNAME=FX :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=X End :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|X :VAR=ABS_X_END :MODAL=YES :ATTREND *----------------------------------:ATTRNAME=FY :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Y End :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|Y :VAR=ABS_Y_END :MODAL=YES :ATTREND *----------------------------------:ATTRNAME=FZ :ATTRTYPE=POST :ATTRVTYPE=DECIMAL :ATTREMARK=Z End :CODETYPE=FORMAT :WORD_ADDRESS_BEF=|Z :VAR=ABS_Z_END :MODAL=YES :ATTREND Normally you will need to start this command in the CALC_START_OPERATION section as shown below.
13-22 Additional System Commands
FASTLINE
:C: IF SECTIONEXIST(FASTLINE) THEN :C: IF OPR_TYPE=MILL_UV_CUT :C: OR OPR_TYPE=MILL_SLICE_CUT :C: OR OPR_TYPE=MILL_ROUGH_CUT :C: OR OPR_TYPE=MILL_CURVE_CUT :C: OR OPR_TYPE=MILL_TOPO_CUT :C: OR OPR_TYPE=MILL_FREEFORM_CUT THEN :C: FASTLINE(FASTLINE) :C: ENDIF :C: ENDIF The template section should look like this. :SECTION=FASTLINE :T:<N><G:01><FX><FY><FZ><EOL>
FASTLINE
CALC_ARC_MOVE_ZX
CALC_ARC_MOVE_ZX
Purpose
Mill calc section for arc moves on ZX plane using CAMWorks 2005 or ProCAM II 2004 or newer versions.
Syntax
:SECTION=CALC_ARC_MOVE_ZX
Comments
The post will only get to this section when you are doing an arc movement that is on the ZX plane. If section does not exist then post outputs line moves.
CALC_ARC_MOVE_YZ
CALC_ARC_MOVE_YZ
Purpose
Mill calc section for arc moves on YZ plane using CAMWorks 2005 or ProCAM II 2004 or newer versions.
Syntax
:SECTION=CALC_ARC_MOVE_YZ
Comments
The post will only get to this section when you are doing an arc movement that is on the YZ plane. If section does not exist then post outputs line moves.
CALC_ARC_MOVE_ANYPLANE
CALC_ARC_MOVE_ANYPLANE
Purpose
Mill calc section for arc moves on none standard planes using CAMWorks 2005 or ProCAM II 2004 or newer versions.
Syntax
:SECTION=CALC_ARC_MOVE_ANYPLANE
Comments
The post will only get to this section when you are doing an arc movement that is on none standard planes. If section does not exist then post outputs line moves.
CALC_POST_INITIALIZE
CALC_POST_INITIALIZE
Purpose
Mill calc section for setting 4 and 5 axis parameters used in ProCAM II only.
Syntax
:SECTION= CALC_POST_INITIALIZE :C: IF SECTIONEXIST(FIVE_AXIS_LINE_MOVE_MILL) THEN :C: CALL(CALC_RESET_REGISTERS) :C: CALL(CALC_RESET_FIVE_AXIS_REGISTERS) :C: ENDIF
Comments
The post will only get to this section when you have either :4AXIS_X_MILLING=TRUE, :4AXIS_Y_MILLING=TRUE or :5AXIS_MILLING=TRUE, It will get to this section before it gets to CALC_START_OPERATION for the first time.
CALC_TOOL_INITIALIZE
CALC_TOOL_INITIALIZE
Purpose
Mill calc section for setting 4 and 5 axis HEAD_LEN tool parameters. When you have a machine that has the Head that rotates or tilts and you need to add the tool length on to the posted output. Used in ProCAM II 2004 or CAMWorks 2005 or newer versions only.
Syntax
:SECTION= CALC_TOOL_INITIALIZE :C: HEAD_LEN=(INIT_TOOL_LENGTH+head_length)
Comments
The post will only get to this section when you have either :4AXIS_X_MILLING=TRUE, :4AXIS_Y_MILLING=TRUE or :5AXIS_MILLING=TRUE, It will get to this section before it gets to CALC_START_OPERATION for the first time. INIT_TOOL_LENGTH is a system post variable INIT_TOOL_LENGTH holds the tool length from tool definition. Head_length = is a post question and it can be added or subtracted
CALC_RAPID_MOVE_SHEAR
CALC_RAPID_MOVE_SHEAR
Purpose
Shear system rapid move calc section.
Syntax
:SECTION= CALC_RAPID_MOVE_SHEAR
Comments
This section will be called for every rapid move that occurs while you are shearing.
CALC_INIT_TOOL_CHANGE_SHEAR
CALC_INIT_TOOL_CHANGE_SHEAR
Purpose
Shear system initial tool change calc section.
Syntax
:SECTION= CALC_INIT_TOOL_CHANGE_SHEAR
Comments
This section will be called for the first tool change that occurs while you are shearing.
CALC_SUB_TOOL_CHANGE_SHEAR
CALC_SUB_TOOL_CHANGE_SHEAR
Purpose
Shear system sub tool change calc section.
Syntax
:SECTION= CALC_SUB_TOOL_CHANGE_SHEAR
Comments
This section will be called for every tool change that occurs after the first tool change while you are shearing.
CALC_EVERY_MOVE_SHEAR
CALC_EVERY_MOVE_SHEAR
Purpose
Shear system every move calc section.
Syntax
:SECTION= CALC_EVERY_MOVE_SHEAR
Comments
This section will be called for every move type that occurs while you are shearing.
CALC_FULL_SHEAR
CALC_FULL_SHEAR
Purpose
Shear system full shear calc section.
Syntax
:SECTION= CALC_FULL_SHEAR
Comments
This section will be called for every stroke that uses a full shear while you are shearing.
CALC_HALF_SHEAR_X
CALC_HALF_SHEAR_X
Purpose
Shear system half shear in X calc section.
Syntax
:SECTION= CALC_HALF_SHEAR_X
Comments
This section will be called for every stroke that only uses half the shear tool in the X direction while you are shearing.
CALC_HALF_SHEAR_Y
CALC_HALF_SHEAR_Y
Purpose
Shear system half shear in Y calc section.
Syntax
:SECTION= CALC_HALF_SHEAR_Y
Comments
This section will be called for every stroke that only uses half the shear tool in the Y direction while you are shearing.
CALC_FULL_SHEAR_DIAGONAL
CALC_FULL_SHEAR_DIAGONAL
Purpose
Shear system full shear diagonally calc section.
Syntax
:SECTION= CALC_FULL_SHEAR_DIAGONAL
Comments
This section will be called for every stroke that uses the full shear tool in a diagonal direction while you are shearing.
CALC_HALF_SHEAR_DIAGONAL
CALC_HALF_SHEAR_DIAGONAL
Purpose
Shear system half shear diagonally calc section.
Syntax
:SECTION= CALC_HALF_SHEAR_DIAGONAL
Comments
This section will be called for every stroke that uses half of the shear tool in a diagonal direction while you are shearing.
CALC_REPOSITION_SHEAR
CALC_REPOSITION_SHEAR
Purpose
Shear system reposition calc section.
Syntax
:SECTION= CALC_REPOSITION_SHEAR
Comments
This section will be called for every reposition created while you are shearing.
CALC_RAPID_TO_TRAP DOOR
CALC_RAPID_TO_TRAP DOOR
Purpose
Laser or Plasma system rapid move to trap door calc section.
Syntax
:SECTION= CALC_RAPID_TO_TRAP_DOOR
Comments
This section will be called when a trap door is attached to any entity. The header command :TRAPDOOR must equal either DROP or TILT. If this header command is not in the post or is set to FALSE, then you will not get to this calc section.
CALC_PROFILE_DRILL_LASER
CALC_PROFILE_DRILL_LASER
Purpose
Used when you have a PUNCH/PLASMA or a PUNCH/LASER combination machine that uses a prepunched hole for starting a plasma or laser profile.
Syntax
:SECTION= CALC_PROFILE_DRILL_LASER
Comments
This section will be called when you do prepunch hole for the plasma or laser profile. Normally, you would do a punch single hit and this, then give the plasma or laser a place to start the cut if not on the edge of the sheet.
CALC_GET_TAPER_EDM
CALC_GET_TAPER_EDM
Purpose
Used when when you need to get all the different taper angles used in the current part and output them at the start of the program.
Syntax
:SECTION= CALC_GET_TAPER_EDM
Comments
This section will be called only when it is inserted into the post source. When you start to post out, the current EDM part file the system will go through the complete tool paths of the part file to gather all the different taper changes, then it will start calling this section for each different taper angle and you can store this information in post arrays. Now it will start the normal post output.
:OPERID
:OPERID
Purpose
EDM operations ID names.
Syntax
Syntax Purpose
:OPERID=EDM_PROFILE :OPERID=EDM_SKIM
EDM operation ID for creating an EDM Profile operation. EDM operation ID for creating an EDM Skimcut operation. This operid was added when operations were added to the ProCAM 2d EDM system. EDM operation ID for creating an EDM core removal operation. This operid was added when operations were added to the ProCAM 2d EDM system. EDM operation ID for creating an EDM macro call operation. This operid was added when operations were added to the ProCAM 2d EDM system.
:OPERID=EDM_CORE
:OPERID=EDM_MACRO
CALC_SLOWDOWN_SPEED
CALC_SLOWDOWN_SPEED
Purpose
Called in a lathe cutoff cycle if a slowdown is selected in the cutoff operation.
Syntax
:SECTION=CALC_SLOWDOWN_SPEED
Comments
Supported in CAMWorks 2007 and later. Not supported in any ProCAM product.
CALC_SHIFT_TOOL_LATHE
CALC_SHIFT_TOOL_LATHE
Purpose
Called in a lathe finish grooving cycle if a shift from one side of the groove tool to the opposite side is detected.
Syntax
:SECTION=CALC_SHIFT_TOOL_LATHE
Comments
Supported in CAMWorks 2007 and later. Not supported in any ProCAM product.
CALC_CUTTER_COMP_LATHE
CALC_CUTTER_COMP_LATHE
Purpose
Called in a lathe finish grooving cycle if a shift from one side of the groove tool to the opposite side is detected. This will support machine cutter comp values.
Syntax
:SECTION=CALC_CUTTER_COMP_LATHE
Comments
Supported in CAMWorks 2007 and later. Not supported in any ProCAM product.
CALC_ALLOW_RAPID_DURING_DRILL
CALC_ALLOW_RAPID_DURING_DRILL
Purpose
Called in a mill drilling cycle. This will looks for a post variable called RAPID_DURING_DRILL_CYCLE.
Syntax
:SECTION=CALC_ALLOW_RAPID_DURING_DRILL
Comments
The post will either set this to a TRUE or FALSE value. If the post does not have this section or variable then the posting system assumes a FALSE value. When the value is set to TRUE then the system assumes that the post can support rapids in a drilling cycle that are added in the Edit toolpath area of CAMWorks. Supported in CAMWorks 2007 and later. Not supported in any ProCAM product.
CALC_SET_PRE_POSITION_ROTARY_TYPE
CALC_SET_PRE_POSITION_ROTARY_TYPE
Purpose
This system section will be called in a Mill 4th or 5th axis Preposition operation to set the preferred rotary axis output values, either in ROT_TILT_A or ROT_TILT_B.
Syntax
Integer variable: PRE_POSITION_ROTARY_TYPE System Constants
ROTARY_TYPE_A=4 ROTARY_TYPE_B=5
Comments
Currently, posting will assume ROT_TILT_B for a 4th axis preposition move. PRE_POSITION_ROTARY_TYPE will be set by two constants ROTARY_TYPE_A and ROTARY_TYPE_B. Supported in CAMWorks 2007 and later. Not supported in any ProCAM product.
CALC_SET_PRE_POSITION_ROTARY_TYPE
Appendix A A-1
Commands
Commands
OPENDB
Purpose
Opens database and defines record variables.
Syntax
OPENDB(FileNumber, FileName, TableName, RecordList, Status)
CLOSEDB
Purpose
Closes database.
Syntax
CLOSEDB(FileNumber)
LOOKUPDB
Purpose
Lookup record based on variables in KeyList.
Syntax
LOOKUPDB(FileNumber, KeyList, Status)
Comments
Parameter Description
FileNumber Access database file ID number - range (0 to 19) FileName Access database filename character string or character variable with full path TableName Access database table name character string or character variable RecordList Attribute list that describes database fields 1 to 1 KeyList Attribute list that describes key fields to be used for lookup all members of This list must also be members of the RecordList Status Integer variable to return status of the command 1 = Success, 0 = Fail
A-2 Appendix A
Example
Example
For this example, the database has three fields Material, Thickness and Feedrate. In this demo post, you are going to use the database to lookup values in the fld1 and fld2 attributes to find a match and set the posts feedrate=fld3. 1. Unzip Demo.zip on any drive and in any folder. 2. Edit Demo.lib. Look at the attributes that were created for the use of this database. For this example, the database has three fields Material, Thickness and Feedrate. You will open the database later in this example. The attribute fld1 represents the material and it is a character type, fld2 represents the thickness and it is a decimal type, fld3 represents the feedrate and it is a decimal type. Below is the list of attributes needed for this example. In this demo post, you are going to use the database to lookup values in fld1 and fld2 to find a match and set the posts feedrate=fld3.
*---------------------------------------------------------* Define Database Attributes *---------------------------------------------------------:ATTRNAME=fld1 :ATTRTYPE=VALUE :ATTRVTYPE=CHARACTER :ATTREMARK=Material :ATTRSEL=N :ATTRINLEN=25 :ATTRSHORT=Material :ATTRLONG=ENTER Material Type :ATTRHIGH=~ :ATTRLOW= :ATTRDEFAULT= :ATTRUSED=1 :ATTREND *----------------------------------:ATTRNAME=fld2 :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=Thickness :ATTRSEL=N :ATTRSHORT=Thickness :ATTRLONG=ENTER Thickness :ATTRHIGH=9999 :ATTRLOW=0 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
Appendix A A-3
Example *----------------------------------:ATTRNAME=fld3 :ATTRTYPE=VALUE :ATTRVTYPE=DECIMAL :ATTREMARK=Feedrate :ATTRSEL=N :ATTRSHORT=Feedrate :ATTRLONG=ENTER Feedrate :ATTRHIGH=9999 :ATTRLOW=0 :ATTRDEFAULT=0 :ATTRUSED=1 :ATTREND
3. Along with defining the fields, you must also define the field attributes in a List type attribute. In this post it is called demo fields. You must place these attributes in the position that matches the database. See below.
*---------------------------------------------------------:ATTRNAME=demo fields :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Demo Database Fields :ATTRLIST=fld1 :ATTRLIST=fld2 :ATTRLIST=fld3 :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND
4. You must also define the lookup attributes in a list type attribute. In this post, it is called demo lookup. Since you are going to use fields 1 and 2 for the lookup, then fld1 & fld2 are placed in the lookup attribute list as shown below.
*---------------------------------------------------------:ATTRNAME=demo lookup :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Demo Database Lookup :ATTRLIST=fld1 :ATTRLIST=fld2 :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND
A-4 Appendix A
Example
5. In this demo post, you are allowing the user to enter the path and filename of the database from the Setup Information command on the CAM menu. As shown below, the default path and name are C:\DEMO\DEMO.MDB.
*----------------------------------:ATTRNAME=comment 1 :ATTRTYPE=VALUE :ATTRVTYPE=CHARACTER :ATTREMARK=Database Name & Location :ATTRSEL=N :ATTRINLEN=25 :ATTRSHORT=Database Name & Location :ATTRLONG=ENTER Database Name & Location :ATTRHIGH=~ :ATTRLOW= :ATTRDEFAULT=C:\DEMO\DEMO.MDB :ATTRUSED=1 :ATTREND
6. You also need to define an attribute to represent the status of opening the database and the lookup of the database as shown below.
*----------------------------------:ATTRNAME=DATABASE_STATUS :ATTRTYPE=POST :ATTRVTYPE=INTEGER :ATTREMARK= :ATTREND *-----------------------------------
7. Edit Demo.src and search for :ATTRNAME=attachable, as shown below. You also need to place all the field attributes and list attributes that were defined in demo.lib in the attachable list. Since all these attributes have the :ATTRSEL=N, none of these will show up in the attachable list in CAM.
---------------------------------------------------------* Define Attachable Questions *---------------------------------------------------------:ATTRNAME=attachable :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Attachable :ATTRLIST=program stop :ATTRLISTDEF=1 :ATTRLIST=optional stop :ATTRLISTDEF= :ATTRLIST=machine compensation :ATTRLISTDEF=1 :ATTRLIST=feedrate :ATTRLISTDEF=10
Appendix A A-5
Example :ATTRLIST=abs inc :ATTRLISTDEF=1 *************** Add the database attributes to the Attachable list :ATTRLIST=fld1 :ATTRLIST=fld2 :ATTRLIST=fld3 :ATTRLIST=demo fields :ATTRLIST=demo lookup ****************** :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND
8. In demo.src, search for :ATTRNAME=setup, as shown below. Notice that the material, and thickness are in most posts already, but the attribute comment 1 has been added that will ask the database path and filename.
*---------------------------------------------------------* Define Setup Questions *---------------------------------------------------------:ATTRNAME=setup :ATTRTYPE=LIST :ATTRSEL=N :ATTRTITLE=Setup :ATTRLIST=program number :ATTRLISTDEF=1 :ATTRLIST=x sheet width :ATTRLISTDEF=0 :ATTRLIST=y sheet height :ATTRLISTDEF=0 :ATTRLIST=material --------------------------:ATTRLISTDEF= :ATTRLIST=thickness -------------------------:ATTRLISTDEF=.125 :ATTRLIST=init abs inc :ATTRLISTDEF=1 :ATTRLIST=init feedrate :ATTRLISTDEF=10 :ATTRLIST=i machine compensation :ATTRLISTDEF=1 :ATTRLIST=d offset reg :ATTRLISTDEF=1 **************** Add this for the database name and path :ATTRLIST=comment 1 :ATTRLISTDEF= **************** :ATTRUSED=1 :ATTRDEFAULT=1 :ATTREND
A-6 Appendix A
Example
9. In Demo.src, search for :SECTION=CALC_INIT_CODES, as shown below. Now look for the CALL(CALC_OPEN_DATABASE) command.
*----------------------------------:SECTION=CALC_INIT_CODES :C: DEFINING_MACRO=NO :C: OFFSET_RESIDENT=NO * * Sequence number configuration * :C: SEQ=10 :C: SEQ_INCREMENT=10 :C: MAX_SEQUENCE=9999 :C: LASER_ON=NO * * Sequence Number configuration * * SEQ_CONFIG = 0 - Floating Sequence N1, N2 etc. * SEQ_CONFIG = 1 - Four Place Sequence N0001, N0002 etc. * SEQ_CONFIG = 2 - Three Place Sequence N001, N002 etc. * SEQ_CONFIG > 2 - No Sequence Numbers. * :C: SEQ_CONFIG=3 * * Arc Center configuration * * AIC = 0 - Absolute Center * AIC = 1 - Incremental distance from Start to Center * AIC = 2 - Absolute or Incremental distance from Start to Center * AIC = 3 - Incremental distance from Center to Start :C: AIC = 1 * * D Offset Register Number * * If COMP_OFFSET=20 and TOOL=1 then COMP_NUMBER=(TOOL+COMP_OFFSET) * COMP_NUMBER=21 - <COMP_NUMBER> * :C: COMP_OFFSET=0 * * Open the database and call the lookup *
10. Now I called a calc section to do the open database. Six lines down in the src file shows the OPENDB command line.
:C: CALL(CALC_OPEN_DATABASE)
Appendix A A-7
Example
11. Once I have opened the database, then I can do a lookup or multiple lookups until I close the database.
:C: CALL(CALC_LOOKUP_DATABASE)
13. In the example below, comment_1 stores the path and file name of the database, DEMO is the databases table name, demo_fields stores a list of the fields in the database and DATABASE_STATUS stores the status of the open database command. Notice that if it cannot open the database then, we call an error message close the database. In this case, you might want to set a flag to not do a lookup, because the database is not open and might error out.
:SECTION=CALC_OPEN_DATABASE :C: OPENDB(1,comment_1,{DEMO},demo_fields,DATABASE_STATUS) :C: IF DATABASE_STATUS=0 THEN CALL(OPEN_ERROR) CLOSEDB(1) RETURN ENDIF *----------------------------------* :SECTION=OPEN_ERROR :T: Could Not Open Demo Database<EOL> *----------------------------------*
14. In the example below, you can set fld1=material and fld2=thickness because material and thickness are asked in the Setup info. In the example below, the lookup command uses demo_lookup list attribute that uses fld1 and fld2 to find a match. If it finds a match, then feedrate is set to fld3. If it cannot find a match, then we will default the feedrate to 999.
:SECTION=CALC_LOOKUP_DATABASE :C: fld1=material :C: fld2=thickness :C: LOOKUPDB(1,demo_lookup,DATABASE_STATUS) :C: IF DATABASE_STATUS=0 THEN :C: CALL(LOOKUP_ERROR) :C: fld1={0} :C: fld2=0 :C: fld3=999 :C: ENDIF :C: feedrate=fld3 * :SECTION=LOOKUP_ERROR :T: Error in Lookup In Demo Database or<EOL> :T: Lookup found no matches in Demo Database<EOL> * A-8 Appendix A
Example
15. Open the Demo.mdb and select the design button. Notice that all the fields are set to text and the field length is set to 255. All fields must always be set to text. You do not need to set an index field. Access will ask you that, but you do not have to.
16. Close the design window in the Demo.mdb and select the open button. The form below shows the three fields with information filled in. This example only has 6 records. You can have as many fields and records as you want.
Appendix A A-9
Example
A-10 Appendix A
Appendix B B-1
CALC Sections
CALC Sections
The SECTION command determines the name of a section and what type of section it is. If the :SECTION=CALC_? section equals starts with a CALC, then it is a calculation section; otherwise, it is a template section. Calc sections:
Mill CALC_LINE_MOVE_MILL CALC_ARC_MOVE_MILL CALC_RAPID_MOVE_MILL CALC_SINGLE_DRILL_MILL CALC_INIT_TOOL_CHANGE_MILL CALC_SUB_TOOL_CHANGE_MILL CALC_EVERY_MOVE_MILL CALC_GRID_PATTERN_DRILL CALC_DRILL_INCREMENT_DRILL CALC_BOLT_HOLE_CIR_DRILL CALC_ARC_PATTERN_DRILL CALC_RAPID_Z_UP_MILL CALC_RAPID_Z_DOWN_MILL CALC_FEED_Z_MILL CALC_ROTATE_X CALC_ROTATE_Y CALC_ROTATE_Z CALC_ARC_MOVE_MILL_ZX Description
CALC_ARC_MOVE_MILL_YZ
:SECTION=CALC_ARC_MOVE_ZX Mill calc section for arc moves on ZX plane using CAMWorks 2005 or ProCAM II 2004 or newer versions. The post will only get to this section when you are doing an arc movement that is on the ZX plane. If section does not exist then post outputs line moves. :SECTION=CALC_ARC_MOVE_YZ Mill calc section for arc moves on YZ plane using CAMWorks 2005 or ProCAM II 2004 or newer versions. The post will only get to this section when you are doing an arc movement that is on the YZ plane. If section does not exist then post outputs line moves.
CALC_ARC_MOVE_MILL_ANYPLANE :SECTION=CALC_ARC_MOVE_ANYPLANE Mill calc section for arc moves on none standard planes using CAMWorks 2005 or ProCAM II 2004 or newer versions. The post will only get to this section when you are doing an arc movement that is on none standard planes. If section does not exist then post outputs line moves.
B-2 Appendix B
CALC Sections
CALC_POST_INITIALIZE
:SECTION= CALC_POST_INITIALIZE :C: IF SECTIONEXIST(FIVE_AXIS_LINE_MOVE_MILL) THEN :C: CALL(CALC_RESET_REGISTERS) :C: CALL(CALC_RESET_FIVE_AXIS_REGISTERS) :C: ENDIF
Mill calc section for setting 4 and 5 axis parameters used in ProCAM II only. The post will only get to this section when you have either :4AXIS_X_MILLING=TRUE, :4AXIS_Y_MILLING=TRUE or :5AXIS_MILLING=TRUE, It will get to this section before it gets to CALC_START_OPERATION for the first time. CALC_TOOL_INITIALIZE Mill calc section for setting 4 and 5 axis HEAD_LEN tool parameters. When you have a machine that has the Head that rotates or tilts and you need to add the tool length on to the posted output. Used in ProCAM II 2004 or CAMWorks 2005 or newer versions only. The post will only get to this section when you have either :4AXIS_X_MILLING=TRUE, :4AXIS_Y_MILLING=TRUE or :5AXIS_MILLING=TRUE, It will get to this section before it gets to CALC_START_OPERATION for the first time. INIT_TOOL_LENGTH is a system post variable. INIT_TOOL_LENGTH holds the tool length from tool definition. Head_length = is a post question and it can be added or subtracted. Lathe CALC_LINE_MOVE_LATHE CALC_ARC_MOVE_LATHE CALC_RAPID_MOVE_LATHE CALC_SYSTEM_THREAD_LATHE CALC_INIT_TOOL_CHANGE_LATHE CALC_SUB_TOOL_CHANGE_LATHE CALC_EVERY_MOVE_LATHE CALC_MACHINE_THREAD_LATHE CALC_SYSTEM_DRILL_LATHE CALC_MACHINE_DRILL_LATHE CALC_START_BOUNDARY_LATHE CALC_END_BOUNDARY_LATHE Punch CALC_LINE_MOVE_PUNCH CALC_ARC_MOVE_PUNCH CALC_RAPID_MOVE_PUNCH CALC_SINGLE_HIT_PUNCH CALC_INIT_TOOL_CHANGE_PUNCH CALC_SUB_TOOL_CHANGE_PUNCH CALC_EVERY_MOVE_PUNCH CALC_START_OF_TAPE_PUNCH CALC_END_OF_TAPE_PUNCH
:SECTION= CALC_TOOL_INITIALIZE :C: HEAD_LEN=(INIT_TOOL_LENGTH+head_length)
Appendix B B-3
CALC Sections
Punch CALC_GRID_PATTERN_PUNCH CALC_PUNCH_INCREMENT_PUNCH CALC_BOLT_HOLE_CIR_PUNCH CALC_ARC_PATTERN_PUNCH CALC_WINDOW_PUNCH CALC_WINDOW_FRAME_PUNCH CALC_REPOSITION_PUNCH CALC_OFFSET_PART_PUNCH CALC_BEG_MACRO_PUNCH CALC_END_MACRO_PUNCH CALC_MULTIPLE_MACRO_CALL_PUNCH CALC_MIRROR_MACRO_CALL_PUNCH CALC_MACRO_CALL_PUNCH CALC_MULTIPLE_MACRO_DEFINE_PUNCH CALC_SETUP_SHEET_PUNCH Plasma CALC_LINE_MOVE_PLASMA CALC_ARC_MOVE_PLASMA CALC_RAPID_MOVE_PLASMA CALC_INIT_TOOL_CHANGE_PLASMA CALC_SUB_TOOL_CHANGE_PLASMA CALC_EVERY_MOVE_PLASMA CALC_GRID_PATTERN_PLASMA CALC_PLASMA_INCREMENT_PLASMA CALC_BOLT_HOLE_CIR_PLASMA CALC_ARC_PATTERN_PLASMA CALC_REPOSITION_PLASMA CALC_RAPID_TO_TRAPDOOR_PLASMA Description
:SECTION= CALC_RAPID_TO_TRAP_DOOR
Plasma system rapid move to trap door calc section. This section will be called when a trap door is attached to any entity. The header command :TRAPDOOR must equal either DROP or TILT. If this header command is not in the post or is set to FALSE, then you will not get to this calc section.
:SECTION= CALC_PROFILE_DRILL_PLASMA
CALC_PROFILE_DRILL_PLASMA
Used when you have a PUNCH/PLASMA or a PUNCH/LASER combination machine that uses a prepunched hole for starting a plasma or laser profile. This section will be called when you do prepunch hole for the plasma or laser profile. Normally, you would do a punch single hit and this, then give the plasma or laser a place to start the cut if not on the edge of the sheet.
B-4 Appendix B
CALC Sections
Laser CALC_LINE_MOVE_LASER CALC_ARC_MOVE_LASER CALC_RAPID_MOVE_LASER CALC_PROFILE_DRILL_LASER CALC_INIT_TOOL_CHANGE_LASER CALC_SUB_TOOL_CHANGE_LASER CALC_EVERY_MOVE_LASER CALC_GRID_PATTERN_LASER CALC_LASER_INCREMENT_LASER CALC_BOLT_HOLE_CIR_LASER CALC_ARC_PATTERN_LASER CALC_REPOSITION_LASER CALC_RAPID_TO_TRAPDOOR_LASER
Description
Laser system rapid move to trap door calc section. This section will be called when a trap door is attached to any entity. The header command :TRAPDOOR must equal either DROP or TILT. If this header command is not in the post or is set to FALSE, then you will not get to this calc section.
:SECTION= CALC_PROFILE_DRILL_LASER
:SECTION= CALC_RAPID_TO_TRAP_DOOR
CALC_PROFILE_DRILL_LASER
Used when you have a PUNCH/PLASMA or a PUNCH/LASER combination machine that uses a prepunched hole for starting a plasma or laser profile. This section will be called when you do prepunch hole for the plasma or laser profile. Normally, you would do a punch single hit and this, then give the plasma or laser a place to start the cut if not on the edge of the sheet.
Shear CALC_RAPID_MOVE_SHEAR CALC_INIT_TOOL_CHANGE_SHEAR CALC_SUB_TOOL_CHANGE_SHEAR CALC_EVERY_MOVE_SHEAR CALC_FULL_SHEAR CALC_HALF_SHEAR_X CALC_HALF_SHEAR_Y CALC_FULL_SHEAR_DIAGONAL CALC_HALF_SHEAR_DIAGONAL CALC_REPOSITION_SHEAR
Appendix B B-5
CALC Sections
EDM CALC_LINE_MOVE_EDM CALC_ARC_MOVE_EDM CALC_POINT_MOVE_EDM CALC_RAPID_MOVE_EDM CALC_INIT_TOOL_CHANGE_EDM CALC_SUB_TOOL_CHANGE_EDM CALC_EVERY_MOVE_EDM CALC_START_HOLE_EDM CALC_END_HOLE_EDM CALC_GET_TAPER_EDM
Description
:SECTION= CALC_GET_TAPER_EDM
Used when you need to get all the different taper angles used in the current part and output them at the start of the program. This section will be called only when it is inserted into the post source. When you start to post out, the current EDM part file the system will go through the complete tool paths of the part file to gather all the different taper changes, then it will start calling this section for each different taper angle and you can store this information in post arrays. Now it will start the normal post output.
Misc CALC_BEFORE_ATTRIBUTES CALC_DURING_ATTRIBUTES CALC_AFTER_ATTRIBUTES CALC_SWITCH_TO_PLASMA CALC_SWITCH_TO_PUNCH CALC_START_OF_TAPE CALC_END_OF_TAPE CALC_OFFSET_PART CALC_BEG_MACRO CALC_END_MACRO CALC_MULTIPLE_MACRO_CALL CALC_MIRROR_MACRO_CALL CALC_MACRO_CALL CALC_MULTIPLE_MACRO_DEFINE CALC_SETUP_SHEET CALC_START_OPERATION CALC_END_OPERATION
B-6 Appendix B