Anda di halaman 1dari 16

Introduction about CNC and EMC2

Zhang Wei
zhang_wei06@lzu.cn
Distributed & Embedded Systems Lab
Lanzhou Universtiy, P.R.China
dslab.lzu.edu.cn
2007.6.7

Power Open Day http://dslab.lzu.edu.cn


Content

What is CNC

EMC & EMC2 introduction

RS274/NGC language introduction

What we do for CNC and EMC2

Power Open Day http://dslab.lzu.edu.cn


What is CNC

Computer Numerical Control

Control automatically

Manufacture complex parts

Compare with NC

Easy to control

Process various materials and shapes

Widely used
Power Open Day http://dslab.lzu.edu.cn
What is EMC

Enhanced Machine Controller

Free and open source CNC controller program

Control automated devices

Robot ...

Control the devices related to machine tools

Step motor

Servo motor ...

Power Open Day http://dslab.lzu.edu.cn


Comparison

Traditional CNC controller program

Expensive

Difficult to extend

Open Architecture EMC

Free

Modularization

Transportability

Power Open Day http://dslab.lzu.edu.cn


EMC2 introduction

New generation of EMC

Friendly interface

Compiled on almost any real time linux

Benefit from Linux

Stability

Performance

Use CNC language RS274/NGC

Can not take in CAD or any image
Power Open Day http://dslab.lzu.edu.cn
Typical 3-axis EMC2 system

Power Open Day http://dslab.lzu.edu.cn


EMC2 graphical interface

Power Open Day


http://dslab.lzu.edu.cn
Three major modes


Manual mode: Enter command separately

Auto mode: Run a whole file

MDI mode: Type in a block of code

Power Open Day http://dslab.lzu.edu.cn


RS274/NGC language

Standardized language

Based on lines of code

Consists of one or more “words”

Word: letter + number

Example: G0 X0 Y2

Power Open Day http://dslab.lzu.edu.cn


Letters and their meanings

Power Open Day http://dslab.lzu.edu.cn


Command

Power Open Day http://dslab.lzu.edu.cn


Application demo
G21 (mm)
G17 (xy plane)

#100 = 200 (feed rate)


#101 = 70 (x length)
......

G0 Y0
G0 X40
G1 X#101 Y4.8 F#100
......

M2
Power Open Day http://dslab.lzu.edu.cn
Application demo

Power Open Day http://dslab.lzu.edu.cn


What we do for CNC


New version of RTLinux

XtratuM to PowerPC

RTLinux to PowerPC

Power Open Day http://dslab.lzu.edu.cn


Thanks!

Power Open Day http://dslab.lzu.edu.cn

Anda mungkin juga menyukai