Home Forums CNC Technology CNC lathe programming

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1869
    CNC design
    Participant

    What is CNC lathe programming and are there any examples?

    #1870
    max green
    Moderator

    CNC Lathe Programming uses repetitive cycles to reduce the amount of code that must be written and offer us greater control over complex shapes and operations. The control system will comprehend the operation and execute the repeating cycle according to the programmer’s instructions until the feature is complete.

    CNC Lathe Programming Example 1 – Lathe Program of Chamfering Instruction:
    N10 G92 X70 Z10 (set up the coordinate system and define the position of tool setting point)
    N20 G00 U-70 W-10 (from the programming starting point to the center of the front end face of the workpiece)
    N30 G01 U26 C3 F100 (chamfering 3 × 45 °right angle)
    N40 W-22 R3 (chamfering R3 fillet)
    N50 U39 W-14 C3 (inverted side length is 3 isosceles right angle)
    N60 W-34 (machining Φ 65 outer circle)
    N70 G00 U5 W80 (back to the starting point of programming)
    N80 M30 (spindle stop, main program end and reset)

    CNC Lathe Programming Example 2 – Lathe Program of Circular Interpolation G02/G03 Instruction:
    N1 G92 X40 Z5 (set up the workpiece coordinate system and define the position of tool setting point)
    N2 M03 S400 (the spindle rotates at 400R / min)
    N3 G00 X0 (to workpiece center)
    N4 G01 Z0 F60 (contact workpiece blank)
    N5 G03 U24 W-24 R15 (machining R15 arc section)
    N6 G02 X26 Z-31 R5 (machining R5 arc section)
    N7 G01 Z-40 (machining Φ 26 outer circle)
    N8 X40 Z5 (tool return the setting point)
    N9 M30 (spindle stop, main program end and reset)

    #1871
    Amelia doo
    Participant

    These codes (cycles) are commonly used in CNC lathe turning:
    G70 – Finishing Cycle
    This cycle is utilized after one of the roughing cycles and follows the contour that was programmed for the roughing cycle. The ‘P’ and ‘Q’ values are used to locate the profile within the cycle and to execute a finishing cut after it.

    G71 – Roughing Cycle
    The G71 roughing cycle adheres to the programmed contour between the N numbers. It is used to remove material by cutting along the Z-axis and leaving a small amount of material for a finishing cut using the G70 cycle.

    G72 – Facing Cycle
    The G72 roughing cycle adheres to the programmed contour between the N numbers. It functions similarly to the G71 cycle, but is used to remove material via X-axis cutting.

    G73 – Pattern Repeating Cycle
    The G73 cycle is a roughing pattern used in boring and turning. Following this is the G70 finishing cycle.

    G75 – Peck Grooving Cycle
    The G75 cycle is used to groove a larger area than the grooving tool can reach.

    G76- Screw Thread Cycle (Single Line)
    If the machine’s parameters are correctly set, one block can be used to machine a screw thread. Note that this may not work on all lathes or machining centers, so the following technique is also provided.

    G83 – Z-axis Peck Drilling Cycle
    The G83 peck drilling cycle is utilized with live tools to drill offset from the Z-axis centerline.

    G84 – Z-axis Tapping Cycle
    The G84 cycle is used for tapping along the Z-axis when the part’s centerline is not being tapped.

    G87 – X-axis Peck Drilling Cycle
    The G87 cycle is used for peck drilling with live tools on the X-axis.

    G88 – X-axis Tapping Cycle
    The G88 cycle is used for tapping with live tooling on the X-axis.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.