SPINDL

The term spindle refers to both lathes and mills.

 
APT Command

 

Description:

This command generates code to control spindle rotation.

 

Parameter Definitions:

1. "LOCK" causes the spindle to stop and orient to the spindle keylock position.

2. "ORIENT[,n]" causes the spindle to stop and orient to the degree position specified by "n". "n" is specified in degrees from 1 to 360. If "n" is not programmed, "0" is assumed.

3. "OFF" outputs code in a separate block which stops the rotation of the spindle and coolant flow. No other parameters can be specified after "OFF".

4. "s" and "RPM,s" define the desired spindle speed in revolutions per minute. Code will be output to turn the spindle on at the desired speed.

5. "ON" with no other parameters directs the postprocessor to turn the spindle on using the parameters of the last specified spindle statement (the initial value if SPINDL has not been previously specified). Other parameters specified after "ON" will replace the corresponding parameters of the last specified spindle statement.

6. "CLW" and "CCLW" specify the clockwise and counterclockwise spindle rotation, respectively. Code will be generated to start the spindle in either the clockwise or counterclockwise direction. If this parameter is not specified, the previous direction will be maintained.

7. "RANGE,n selects the spindle speed range. If this parameter is not specified, the previous range will be maintained.

8. "SFM,s" defines the desired surface feet per minute. Code will be generated to put the control in the Constant Surface Speed mode. The controller calculates the increase or decrease in revolution per minute to maintain the programmed SFM. Similar action is used for "SMM" (Surface meters per minute).

9. "MAXRPM,r" defines the maximum RPM to be reached during SFM motion. Code will be output to preset the desired maximum RPM.

10. "AUTO" calls for the automatic output of codes to inhibit or activate spindle speed changes in Constant Surface Speed (CSS) mode. RAPID moves will be output with spindle speed changes inhibited; non-Rapid moves will be output with spindle speed changes activated.

11. "NOMORE" cancels the automatic output of codes to inhibit or activate spindle speed changes in CSS mode.

12. "FRONT", "REAR", "RIGHT", "LEFT", "SIDE" or "SADDLE" will cause output to designate the head to be in control of the spindle during CSS operations.

13. "RADIUS,r" establishes the initial radius to be used for CSS mode. If not programmed postprocessor will use the current tool tip radius for the initial radius.

 

Considerations:

1. Not all minor words are applicable to all types of machines.

2. At program start, the conditions of SPINDL/OFF and COOLNT/OFF are assumed.

3. SPINDL/OFF, when programmed, cannot have any other parameters in the command statement.

4. The IPR mode should be programmed prior to the SFM mode of operation.

5. Spindle speed range selection should be made before entering SFM or SMM mode, if a different range is required

6. Spindle range is normally programmed as a numeric value; however, LOW, MEDIUM and HIGH can be used as follows:

LOW will always equate to 1

MEDIUM will always equate to 2

HIGH will equate to 2 if there are only 2 ranges.

If more than 2 ranges,

HIGH will equate to 3.

 

ISO Command

For Lathe

Parameter Definitions:

1."CSS" becomes SFM or SMM depending upon the UNITS command.

 
ISO Command

For Mill

 

SPINDL - MDFG Options

This command allows you to output code to the following control spindle parameters:

 
LOCK and ORIENT

Spindle/Lock - allows you to define the M code that GPM outputs to stop and orient the spindle to the "key lock" position.

Spindle/Orient - allows you to define the M code that GPM outputs to stop and orient the spindle to the angle specified in the SPINDLE/ORIENT,n command. If no degree is programmed, 0 is assumed. You can then specify the Word Address format for the Orient Angle code.

 
RPM

RPM -This section defines how the spindle speed code (usually "S") is output by the GPM. Define the Word Address format for the RPM spindle speed code. You have the following options:

G Code For RPM Mode Is - Enter the validity and value for the spindle speed RPM output mode G code. This is intended for lathes only.

Is Spindle Table Required? - This is a table of codes you will create (or edit.) Use this option when the spindle speed codes do not represent the actual RPM. The table is composed of two other tables - one of S codes and a table of associated spindle speeds (RPMs.) For example, SPINDL/RPM,100,RANGE,1 could output an S12 and SPINDL/RPM,120,RANGE,2 could output an S13.

This toggles between Yes or No. If you select Yes you have the following options to determine how the S codes are matched to a programmed RPM :

Next Smaller Than Programmed RPM - The GPM always selects the closest smaller number on the table of spindle speeds. Example, in the spindle table a spindle speed of 100 outputs an S12 and a spindle speed of 110 outputs an S13. If a SPINDL/RPM,103 is programmed in the CLF, the spindle speed output in this case would be S12.

Next Larger Than Programmed RPM - The GPM always selects the closest larger number on the table of spindle speeds. Example, in the spindle table a spindle speed of 100 outputs an S12 and a spindle speed of 110 outputs an S13. If a SPINDL/RPM,103 is programmed in the CLF, the spindle speed output in this case would be S13.

Closest To Programmed RPM - The GPM always selects the closest number on the table of spindle speeds. Example, in the spindle table a spindle speed of 100 outputs an S12 and a spindle speed of 110 outputs an S13. If a SPINDL/RPM,103 is programmed in the CLF, the spindle speed output in this case would be S12.

Next, you can specify the number of spindle ranges (maximum of 10) and entries per range. The GPM allows a total of 360 number entries. For example, if there are 6 ranges, each range could have 60 number entries.

 
Creating the Table

You must specify both the spindle codes and their (associated) programmed RPMs. It is recommended that you first enter the all the spindle codes in to the Spindle Code table before entering the RPM values into the Spindle RPM table.

For example: after selecting Spindle Codes, specify the range no. for entering spindle codes, then select the area within that range (e.g., 1 thru 15), then enter the S code for the first table entry (Number 1.) This does not create an S1 code unless you enter a 1. Continue entering the S codes for all the ranges. Then create the RPM table following the same sequence.

Should S Code Go Out With T Code - Indicate whether the S code is to be output in the same block as the T code. If you want the S code to be output in block with the T code, you must program the SPINDL command immediately preceding the LOAD command.

Spindle Speed Change M Code Required With S Code - You can specify the validity and value for the M code that is output with the S code.

 
Direction

The following menus determine how the spindle direction is controlled.

Is Spindle Direction Tape Controlled? - Yes allows you to specify the spindle direction codes to be output by the GPM.

Does M Code Control Spindle Direction? - Yes causes the GPM to output M codes to control the spindle direction. You can define the following M codes for spindle direction:

Code For CLW - You can specify the M code that the GPM outputs to cause the spindle to rotate clockwise.

Code For CCLW - You can specify the M code that the GPM outputs to cause the spindle to rotate counter clockwise.

Default Code For On - You can specify the default direction code.

Code For Off - You can specify the M code that the GPM outputs to stop spindle rotation.

Does Sign Of S Code Control Spindle Direction? - Yes causes the GPM to output a plus or minus sign with the S code to control the spindle direction. You can define the following sign usage for spindle direction:

Code For CLW - indicate whether a + or - character causes clockwise rotation. The character is inserted between the S and the number (e.g., S+100 causes the spindle to rotate clockwise at 100 RPM.)

Code For CCLW -indicate whether a + or - character causes counter clockwise rotation. The character is inserted between the S and the number (e.g., S-100 causes the spindle to rotate counter clockwise at 100 RPM.)

Default Code For On - You can specify the default direction character (+ or -.)

Code For Off - Enter the S code value that the GPM outputs to stops the rotation of the spindle (usually "S0")

Off Code Required For Direction Change? - If you select Yes, the GPM outputs a spindle off code before it outputs the new direction code.

Direction Code Required With S Code? - Yes specifies that the GPM always outputs the direction code when the S code is output. It does not necessarily mean the direction code is output in the same block as the S code. Yes is recommended.

Must Direction Code Be In Block Before S Code? - Yes indicates that the direction code is output in the block before the S block.

 

STAN

This command defines the wire angle constant and intersecting corner solution for wire EDM.

 
APT Command

 

Description:

For Wire EDM, this command defines the wire angle constant and intersecting corner solution for wire EDM. (Note: this is required for 2 1/2 axis with tilting wire customers.)

 

Parameter Definitions:

1. "SLOPE,aSpecifies the wire angle measured perpendicular to the direction of travel looking toward the direction of travel when a negative (a) value is clockwise and a positive (a) value is counterclockwise."

2. "ANGLE,b"Specifies the wire angle measured in a plane parallel to the direction of travel looking toward the part.

3. "PERPTO"Specifies maintaining the wire slope (a) perpendicular to direction of travel resulting in a sweeping corner rounding at the open end of the slope

4. "INTOF"Specifies extending the plane of slope (a) to an intersecting slope (a) plane resulting in an intersecting corner at both the top and lower levels.

5. "RADIUS,c"Specifies a constant corner radius (c) be maintained at both the upper and lower wire guides.

6. "NOW"Specifies apply immediately.

7. "NEXT"Specifies apply during the next move.

 

ISO Command

Same

 

STLOOP

 
APT Command

STLOOP/n

 

Description:

This command assigns the next sequence number to the number programmed for later use by the NDLOOP command for repetitive programming.

 

Parameter Definitions:

 "n" is a number to designate a specific loop to be called by NDLOOP.

 

Considerations:

1. Sequence numbers must be ON when STLOOP is programmed.

2. Ten is the maximum number of STLOOPs that can be nested.

3. "n" is useful in clarifying the program for the programmer. It is not used by GPM for selecting the sequence number to be output by NDLOOP. See NDLOOP command.

4. This command is useful only with controls that support this type of repetitive programming.

 

ISO Command

None