Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

37

Share

Download to read offline

Cnc Programming Basics

Download to read offline

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Cnc Programming Basics

  1. 1. CNC Programming Basics <ul><li>Program structure </li></ul><ul><li>Every program consists of: </li></ul><ul><li>Program Start The program start is the program number. The program number begins with character/letter O . </li></ul><ul><li>Program Contents NC blocks </li></ul><ul><li>Program End M30 for a main program M17 for a sub-program </li></ul>
  2. 2. CNC Program Numbers Program Numbers O 6999 . . . O 0256 O 0255 . . . O 0000
  3. 3. CNC Program Blocks (1) <ul><li>N is the address </li></ul><ul><li>Block numbers from N0000 to </li></ul><ul><li>N9999 </li></ul><ul><li>A block consists of number and words </li></ul><ul><li>Words are contents of a block </li></ul><ul><li>Block numbers are selected in the jumps of ten for the purpose of insertion </li></ul>
  4. 4. CNC Program Blocks (2) <ul><li>A block consists of one or more blocks </li></ul><ul><li>A Word consists of a character (address) and a number. </li></ul><ul><li>Every address has a certain meaning, on which the corresponding number depends </li></ul>
  5. 5. CNC Prg. Syntax Regulations <ul><li>The maximum block length must not exceeded four lines. If max. length exceeded alarm 650 occurs. </li></ul><ul><li>Every block starts with a block number. </li></ul><ul><li>After the block numbers follows the G command. </li></ul><ul><li>Words consists of coordinates X(U) , Z(W) . </li></ul><ul><li>For G02 , G03 program interpolation parameter I and K are placed after X(U), Z(W). </li></ul><ul><li>The F word (feed, thread pitch). </li></ul><ul><li>The S word (cutting speed). </li></ul><ul><li>The T word (tool address). </li></ul><ul><li>The M word (additional functions). </li></ul>
  6. 6. Absolute Value Programming  P0 N… … P0  P1 N… G01 X40. Z25. F… P1  P2 N… G01 X60. Z-40. F… P2  N… … Absolute coordinate system Example:
  7. 7. Incremental Value Programming Incremental coordinate system Example:  P0 N… … P0  P1 N… G01 U5. W-25. F… P1  P2 N… G01 X10. Z-15. F… P2  N… …
  8. 8. Mixed Programming Mixed coordinate system Example:  P0 N… … P0  P1 N… G01 U5. W-25. F… P1  P2 N… G01 X60. Z-15. F… P2  N… …
  9. 9. Self-holding Functions (1) <ul><li>The majority of G and M commands and other words are self-holding, remain active until overwritten or deactivated/deselected. </li></ul><ul><li>Aimed to simplify and to reduce programming tasks. Example: G41 can be deactivated by issuing G40 command . </li></ul>
  10. 10. Self-holding Functions (2) Take-over of G00 commands in block N0110 In block N0120 G00 is deactivated by G01. G01 is active. N0050 M03 N0060 … … N0120 M04 Example 1: Example 2: M03 activated at N0050 and effective from N0050 through N120. M03 deactivated at N0120 by M04 command N0100 G00 X50. Z+10. N0110 X36. Z+2. N0120 G01 X40. Z-10. F…
  11. 11. Reference Points M = Machine zero point. (unchangeable ref. Point determined by machine manufacturer) N = Tool mounting reference point W = Work piece zero point. (can be freely determined by the programmer and can be moved within program
  12. 12. Work piece (1)
  13. 13. Work piece (2)
  14. 14. G & M Commands G00: Rapid traverse G01: Linear interpolation G02: Circular interpolation clockwise G03: Circular interpolation counter clockwise G70: Measuring in Inch (USA) G71: Measuring in mm (Other countries) M03: Spindle ON clockwise M04: Spindle ON counter clockwise M20: Tailstock back M21: Tailstock forward
  15. 15. G 00, Rapid Traverse Absolute dimensions of the target point coordinates: N030 G90 N040 G00 X48 Z-26 An absolute X coordinate related to the diameter. Incremental dimensions of the target point coordinates: N030 G91 N040 G00 X-10,5 Z-31 Tool position X69 Z5
  16. 16. G 01, Linear Interpolation P0: tool position G90: N030 G00 X39 Z2 N040 G01 X39 Z0 N050 G90 N060 G01 X48 Z-37 G91: N030 G00 X39 Z2 N040 G01 X39 Z0 N050 G91 N060 G01 X4.5 Z-37 G01 X… Z…
  17. 17. G 90 & G91 Commands G90 G01 X+140 Z-90 Target point abs. G91 G01 X+40 Z-60 Target point incr. PO: Start Point P1: Target Point
  • AntwiAgyemang

    Sep. 10, 2021
  • AnujVishwakarma16

    Sep. 20, 2019
  • NiteenSabale

    Jun. 12, 2019
  • PiyushRanjan43

    Apr. 16, 2019
  • RohitRG1

    Mar. 16, 2019
  • HARIKRISHNANM8

    Jan. 1, 2019
  • AkashGupta761

    Sep. 9, 2018
  • DHILIPJ1

    Jul. 12, 2018
  • AjitVarma10

    Dec. 22, 2017
  • NeerajSinghNagarkoti

    Nov. 25, 2017
  • RavindraNath33

    Nov. 12, 2017
  • SusmitaGhosh18

    Oct. 13, 2017
  • RajdeepGodhani

    Oct. 12, 2017
  • SunilKumarPal7

    Aug. 26, 2017
  • VivekChauhan106

    Jun. 11, 2017
  • vikramgolchha

    Apr. 17, 2017
  • SvastikvachanYadav

    Mar. 12, 2017
  • NisheshPunia

    Mar. 1, 2017
  • KrishnaChintaChinta

    Feb. 25, 2017
  • reyraido

    Dec. 26, 2016

Views

Total views

67,077

On Slideshare

0

From embeds

0

Number of embeds

960

Actions

Downloads

2,484

Shares

0

Comments

0

Likes

37

×