Computer Numerical Control

download Computer Numerical Control

of 12

Transcript of Computer Numerical Control

Nama :Iqbal NugrohoNPM:23411660Kelas:SMTM-03

Computer Numerical ControlG-CodeG-Code atau yang disebut juga dengan bahasa pemrograman G merupakan bahasa grafis yang digunakan untuk mendeskripsikan hubungan/koneksi antara beberapa objek, dalam bentuk diagram blok. G-Code berbeda dengan bahasa-bahasa pemrograman lainnya. Dalam G-Code, program dijalankan secara linear, artinya hanya satu perintah yang dapat dieksekusi dalam satu waktu dan perintah selanjutnya akan tereksekusi setelah perintah sebelumnya selesai dieksekusi.LinuxCNC G-CodesCodeDescription

G0Coordinated Straight Motion Rapid Rate

G1Coordinated Straight Motion Feed Rate

G2, G3Coordinated Helical Motion Feed Rate

G4Dwell

G5.1Quadratic B-Spline

G5.2, G5.3NURBs Block

G7Diameter Mode (Lathe)

G8Radius Mode (Lathe)

G10 L1Set Tool Table Entry

G10 L10Set Tool Table, Calculated, Workpiece

G10 L11Set Tool Table, Calculated, Fixture

G10 L2Coordinate System Origin Setting

G10 L20Coordinate System Origin Setting Calculated

G17 - G19.1Plane Select

G20, G21Units of Measure

G28 - G28.1Go to Predefined Position

G30 - G30.1Go to Predefined Position

G33Spindle Synchronized Motion

G33.1Rigid Tapping

G38.2 - G38.5Probing

G40Cancel Cutter Compensation

G41, G42Cutter Compensation

G41.1, G42.1Dynamic Cutter Compensation

G43Use Tool Length Offset from Tool Table

G43.1Dynamic Tool Length Offset

G49Cancel Tool Length Offset

G53Motion in Machine Coordinate System

G54 - G59Select Coordinate System (1 - 6)

G59.1 - G59.3Select Coordinate System (7 - 9)

G61, G61.1Path Control Mode

G64Path Control Mode with Optional Tolerance

G73Drilling Cycle with Chip Breaking

G76Multi-pass Threading Cycle (Lathe)

G80Cancel Motion Modes

G81Drilling Cycle

G82Drilling Cycle with Dwell

G83Drilling Cycle with Peck

G85Boring Cycle, No Dwell, Feed Out

G86Boring Cycle, Stop, Rapid Out

G89Boring Cycle, Dwell, Feed Out

G90, G91Distance Mode

G90.1, G91.1Arc Distance Mode

G92Coordinate System Offset

G92.1, G92.2Cancel Coordinate System Offsets

G92.3Restore Axis Offsets

G93, G94, G95Feed Modes

G96Constant Surface Speed

G97RPM Mode

G98, G99Canned Cycle Z Retract Mode

G0 Rapid MoveDigunakan untuk menghasilkan gerakan lurus pada sumbu menuju titik yang ditentukan dengan kecepatan maksimum (atau lebih lambat). Pada saat perintah G0 ini sedang dieksekusi, tidak akan terjadi pemotongan.G1 Linear MoveDigunakan untuk gerakan pemakanan lurus.

G2, G3 Arc MoveDigunakan untuk membentuk busur lingkaran atau spiral, G2 (searah jarum jam) dan G3 (berlawanan jarum jam).G4 DwellDigunakan untuk menunda kerja mesin selama P detik atau yang disebut dengan Dwell. P adalah waktu dalam detik dimana semua sumbu akan tetap diam. Dwell tidak berpengaruh pada spindle, coolant, dan I/O lainnya.G5.1 Quadratic B-splinePerintah ini membentuk kuadrat B-spline pada bidang XY.G5.2, G5.3 NURBs BlockG5.2 digunakan sebagai pembuka blok data NURBs dan G5.3 sebagai penutupnya. Diantara kedua kode tersebut, titik-titik pengatur kurva ditentukan dengan berdasarkan berat (P) dan parameternya (L) dimana akan diperoleh urutan dan derajat (k - 1) dari kurva (k) tersebut.G7 Lathe Diameter ModeDigunakan untuk masuk ke dalam mode diameter untuk sumbu X pada mesin bubut. Ketika dalam mode diameter, pergerakkan sumbu X akan menjadi setengah dari jarak center mesin bubut.G8 Lathe Radius ModeDigunakan untuk masuk ke dalam mode radius (jari-jari) untuk sumbu X pada mesin bubut. Ketika dalam mode radius, pergerakkan sumbu X akan sama dengan jarak dari center mesin bubut.G10 L1 Set Tool TableSets the tool table for the P tool number to the values of the words.

G10 L2 Set Coordinate SystemOffsets the origin of the axes in the coordinate system specified to the value of the axis word. The offset is from the machine origin establishing during homing. The offset value will replace any current offsets in effect for the coordinate system specified.G10 L10 Set Tool TableChanges the tool table entry for tool P so that if the tool offset is reloaded, with the machine in its current position and with the current G5x and G92 offsets active, the current coordinates for the given axes will become the given values. The axes that are not specified in the G10 L10 command will not be changed.G10 L11 Set Tool TableJust like G10 L10, except that instead of setting the entry according to the current offsets, it is set so that the current coordinates would become the given value if the new tool offset is reloaded and the machine is placed in the G59.3 coordinate system without any G92 offset active.G10 L20 Set Coordinate SystemSimilar to G10 L2, except that instead of setting the offset/entry to the given value, it is set to calculated value that makes the current coordinates become the given value.G17 - G19.1 Plane SelectionThese codes set the current plane as follows: G17 - XY (default) G18 - ZX G19 - YZ G17.1 - UV G18.1 - WU G19.1 - VWThe UV, WU, and VW planes do not support arcs.G20, G21 Units G20 - Untuk menggunakan inchi sebagai satuan panjang. G21 - Untuk menggunakan milimeter sebagai satuan panjang.G28, G28.1 Go to Predefined Position G28 makes rapid move from the current position to the absolute position of the values in parameters 5161-5166. G28.1 stores the current absolute position into parameters 5161-5166.G30, G30.1 Go to Predefined Position G30 makes rapid move from current position to the absolute position of the values in parameters 5181-5186. G30.1 stores the current absolute position into parameters 5181-5186.G33 Spindle Synchronized MotionUntuk penyearahan putaran spindle, digunakan perintah G33 X- Y- Z- K- dimana K adalah jarak yang harus ditempuh sumbu XYZ untuk setiap putaran.G33.1 Rigid TappingFor rigid tapping (spindle synchronized motion with return), code G33.1 X- Y- Z- K- where K- gives the distance moved for each revolution of the spindle.G38.2 - G38.5 Straight Probe G38.2 probe toward workpiece, stop on contact, signal error if failure. G38.3 probe toward workpiece, stop on contact. G38.4 probe away from workpiece, stop on loss of contact, signal error if failure. G38.5 probe away from workpiece, stop on loss of contact.G40 Compensation OffTurn cutter compensation off. If tool compensation was on the next move must be a linear move and longer than the tool diameter.G41, G42 Cutter Compensation G41 starts cutter compensation to the left of the part profile, from the positive end of the axis perpendicular to the plane. G42 starts cutter compensation to the right of the part profile, from the positive end of the axis perpendicular to the plane.G41.1, G42.1 Dynamic Cutter CompensationFungsi dari G41.1 dan G42.1 sama dengan G41 dan G42, namun kali ini diameter alat bisa diatur.G43 Tool Length OffsetEnables tool length compensation. G43 changes subsequent motions by offsetting the Z and/or X coordinates by the length of the tool. G43 doesn't cause any motion.G43.1 Dynamic Tool Length OffsetChange subsequent motions by offsetting the Z and/or X offsets stored in the tool table. G43.1 doesn't cause any motion.G49 Cancel Tool Length CompensationCancels tool length compensation.G53 Move in Machine CoordinatesTo move in the machine coordinate system. G53 is not modal and must be programmed on each line. G0 or G1 doesn't have to be programmed on the same line if one is currently active.G54 - G59.3 Select Coordinate System G54 select coordinate system 1 G55 select coordinate system 2 G56 select coordinate system 3 G57 select coordinate system 4 G58 select coordinate system 5 G59 select coordinate system 6 G59.1 select coordinate system 7 G59.2 select coordinate system 8 G59.3 select coordinate system 9G61, G61.1 Exact Path Mode G61 - exact path mode. G61 visits the programmed point exactly, even though that means temporarily coming to a complete stop. G61.1 - exact stop mode. Same as G61.G64 Path Blending

G64 P - motion blending tolerance Q - naive cam tolerance G64 - best possible speed G64 P- - blending with tolerance G64 - without P means to keep the best speed possible, no matter how far away from the programmed point you end up. G64 P- Q- - is a way to fine tune your system for best compromise between speed and accuracy.G73 Drilling Cycle with Chip BreakingDrilling or milling with chip breaking.G76 Threading CycleG80 Cancel Canned CycleCancel canned cycle modal motion. G80 is part of modal group 1, so programming any other G code from modal group 1 will also cancel the canned cycle.G81 Drilling CycleThe G81 cycle is intended for drilling. The cycle functions as follows: Preliminary motion Move the Z-axis at the current feed rate to the Z position The Z-axis does a rapid move to clear ZG82 Drilling Cycle, DwellThis cycle is intended for drilling with a dwell at the bottom of the hole.G83 Peck Drilling CycleThis cycle (often called peck drilling) is intended for deep drilling or milling with chip breaking. The retracts in this cycle clear the hole of chips and cut off any long stringers (which are common when drilling in aluminum).G85 Boring Cycle, Feed OutSiklus ini digunakan untuk boring atau reaming, tapi bisa juga digunakan untuk drilling atau milling.G86 Boring Cycle, Spindle Stop, Rapid Move OutThe G86 cycle is intended for boring. This cycle uses a P number for the number of seconds to dwell.G87 Back Boring CycleG88 Boring Cycle, Spindle Stop Manual OutG89 Boring Cycle, Dwell, Feed OutThe G89 cycle is intended for boring. This cycle uses a P number, where P specifies the number of seconds to dwell.G90, G91 Distance Mode G90 - absolute distance mode in absolute distance mode, axis numbers (X, Y, Z, A, B, C, U, V, W) usually represent positions in terms of the currently active coordinate system. G91 - incremental distance mode in incremental distance mode, axis numbers usually represent increments from the current coordinate.G90.1, G91.1 Arc Distance Mode G90.1 - absolute distance mode for I, J, and K offsets. G91.1 - incremental distance mode for I, J, and K offsets.G92 Coordinate System OffsetG92 makes the current point have the coordinates tou want (without motion), where the axis words contain the axis numbers you want.G92.1, G92.2 Reset Coordinate System Offsets G92.1 - reset axis offsets to zero and set parameters 5211 - 5219 to zero. G92.2 - reset axis offsets to zero.G92.3 Restore Axis OffsetsSet the axis offset to the values saved in parameters 5211 - 5219G93, G94, G95 Feed Rate Mode G93 - Inverse Time Mode. G94 - Units per Minute Mode G95 - Units per Revolution ModeG96, G97 Spindle Control Mode G96 - selects constant surface speed. G97 - selects RPM mode. G98, G99 Canned Cycle Return Level G98 - retract to the position that axis was in just before this series of one or more contiguous canned cycles was started. G99 - retract to the position specified by the R word of the canned cycle.

M-CodeM-Code adalah perintah untuk menggerakkan alat-alat bantu seperti coolant dan arah putaran spindle. Dalam suatu blok program, hanya satu M-Code yang dapat muncul.

LinuxCNC M-CodesCodeDescription

M0, M1Program Pause

M2, M30Program End

M60Pallet Change Pause

M3, M4, M5Spindle Control

M6Tool Change

M7, M8, M9Coolant Control

M48, M49Feed & Spindle Overrides Enable/Disable

M50Feed Override Control

M51Spindle Override Control

M52Adaptive Feed Control

M53Feed Stop Control

M61Set Current Tool Number

M62 - M65Output Control

M66Input Control

M67Analog Output Control

M68Analog Output Control

M100 - M199User Defined M Codes

M0, M1 Program Pause M0 - Menunda sementara program yang sedang berjalan. M1 - pause a running program temporarily if the optional stop switch is on.M2, M30 Program End M2 - end the program. Pressing cycle start will start the program at the beginning of the file. M30 - exchange pallet shuttles and end the program. Pressing cycle start will start the program at the beginning of the file.

M60 Pallet Change PauseExchange pallet shuttles and then pause a running program temporarily (regardless of the setting of the optional stop switch).M3, M4, M5 Spindle Control M3 - memutar spindle searah jarum jam dengan kecepatan S. M4 - memutar spindle berlawanan jarum jam dengan kecepatan S. M5 - menghentikan spindle.M6 Tool ChangeM7, M8, M9 Coolant Control M7 - menyalakan pendingin kabut (mist). M8 - menyalakan pendingin banjir (flood). M9 - mematikan semua pendingin.M48, M49 Speed and Feed Override Control M48 - enable the spindle speed and feed rate override controls. M49 - disable both controls.M50 Feed Override Control M50 - enable the the feed rate override control. The P1 is optional. M50 P0 - disable the feed rate control.M51 Spindle Speed Override Control M51 - enable the the spindle speed override control. The P1 is optional M51 P0 - disable the spindle speed override control program.M52 Adaptive Feed Control M52 - use an adaptive feed. The P1 is optional. M52 P0 - stop using adaptive feed.

M53 Feed Stop Control M53 - enable the feed stop switch. The P1 is optional. M52 P0 - disable the feed stop switch.M61 Set Current Tool NumberChange The current tool number while in MDI or Manual mode.M62 - M65 Output Control M62 P- - turn on digital output synchronized with motion. The P- word specifies the digital output number. M63 P- - turn off digital output synchronized with motion. The P- word specifies the digital output number. M64 P- - turn on digital output immediately. The P- word specifies the digital output number. M65 P- - turn off digital output immediately. The P- word specifies the digital output number.M66 Wait on InputM67 Synchronized Analog OutputSet an analog output synchronized with motion.M68 Analog OutputSet an analog output immediately.M100 - M199 User Defined Commands