SlideShare ist ein Scribd-Unternehmen logo
1 von 37
CNC Machine 2D
Plotter
   Supervisor
D.R Eman Shaban
T.A Mahmoud Fayez
Team Members….

Hassan Awad Abd El-Aziz
Mahmoud Mohamed Hussein
 Mahmoud Salah Salam
 Marwan Ezz El-Deen
 Mohamed Momen Gamal El-Deen
Agenda….
•   Introduction
•   History
•   System Features
•   System Architecture
        Software subsystem
        Mechanical subsystem
        Electronic subsystem

• Mode of Operation
• Algorithms
• Testing and Simulations
Introduction,,,,
Introduction
 CNC Machine
Computer numerical control (CNC) machines are automated
  milling machines that make industrial components without
  human assistance. This is possible because CNC machines are
  fed a series of instructions that are delivered to an internal
  computer controller. These instructions are in the form of
  codes that belong to the numerical control programming
  language.
  The code used to program CNC machines is generically called
   G-code. However, G-code instructions are only part of the
  programming language. Specifically, G-codes give CNC
  machines the coordinates .
Introduction
  Project Idea
• Automation of 3 Motors to control the
  coordinates (X,Y,Z)of a pen with flexible
  head can be used as Plotter.
History
                             The first commercial NC
                              machines were built in
                              the 1950's, and ran from
                              punched tape.
                             CNC, and later CNC,
                              allowed for tremendous
                              increases in productivity
                              for machine tools
                              because the machines
                              could be run
                              automatically without
The first commercial NC       requiring constant
www.cnccookbook.com           attention from their
                              operator.
System Features…
System Features
• Rapid speed positioning using G00
• Plot line using G01
• Plot Circles using G02,G03 clockwise or
  anti-clock wise.
• Manual Mode control the position of the
  Plotter using Keyboard
• Programming Mode write full program
  includes moving plotter, Arithmetic
  operation and decisions instructions
System Architecture
System Architecture
Software Subsystem
User Interface
Terminal App

        Send G-Code Programs,
        Control Instruction
Interpreter



                                   Move Motors
                 Geometry                        Motors
                 Kernel

                          invoke
Configure
Timers           Timers
System Architecture cont
   Software Subsystem
There are 6 Main Software Modules
• MotorLib.h : Configure, Monitor and Move Motors.
• TimersLib.h : Configure periodic task.
• Interperter.h : Parse G-line program separate tokens and
  execute instruction
   – [simple Arithmetic instructions ADD MUL].
   – [Motor Instructions Operation G00,G01,G02,G03].
   – [Decision instruction JEQ,JNE].
System Architecture cont.
    Software Subsystem cont.
 • UART.h
    – Serial communication port driver to send the G-code
      program and control instruction to the machine
 • BresenhamLineDrawing.h
 • MidPointCircleDrawing.h
System Architecture
 Mechanical Subsystem
 3 Motors each one attached to AXIS (X,Y,Z)
   Stepper Motor with the following Description
      Step angle 1.8°
      Holding Torque: 3.9 Kg.cm (40 N.cm)
      Current 2 A
      leads: 6 wires (4 per coils 2 COM)
System Architecture cont
   CNC Machine Mechanical Design:




     Figure-1 Different views of Our CNC Machine
System Architecture cont
   Electronic Subsystem

  It consists of 8 bit At mega 328P microcontroller and stepper
   motor control drivers BAL 35 for controlling all the three
   stepper motors. Microcontroller generates necessary STEP and
   DIRECTION signals for each stepper motor controller to
   achieve desired speed and rotation. A RS 232 is used for
   communicating data between PC and microcontroller.
Control Modes

• We have three types of control mode:
  -Calibration Mode (CL).
  -Load Mode (LD).
  -Execution Mode (EXE).
Control Mode instruction


Command Description
CL       Manual Mode
LD       Program Mode
START    Executed the program stored on RAM
EXE      Read G_Line from serial and executed it immediately and
         acknowledge the next instruction
RESET     Reset the machine to the initial X_co,Y_co_Z_co coordinates
SETBX    Set border of our board on X-axis
SETBY    Set border of our board on Y-axis
SETBZ    Set border of our board on Z-axis
State Chart




State chart illustrates how to switch between modes
Machine Language Program instruction

      Command   Description

      G00       Rapid speed X,Y,Z Vector.
      G01       .linear interpolation between 2 points Bresenham line drawing

      G02       Clockwise circular interpolation.
      G03       Anti Clockwise circular interpolation.
      ADD       ADD operand [2] and operand [3] then put result set on
                Operand [1].


      MUL       MUL operand [2] and operand [3] then put result on Operand
                [1].
      JEQ       Jump if flag is set.
      JNE       Jump if flag is reset.
      CMP       Compare operand [1] and operand [2] and set Equal flag.


      EOP       End of program.
Syntax Language Program


• G00
   <Operation> {X [R|I] #} {Y [R|I] #} {Z [R|I] #}
   EX: G00 XI1000 YI1000 ZI1000

• G01
   <Operation> {X [R|I] #} {Y [R|I] #}
   EX: G01 XI1000 YI500
Syntax Language Program cont.


• G02 and G03
   <Operation> {R [R|I] #} {Q [R|I] #} {C [R|I] #}
   EX: G02 RI4000 QI0

• ADD and MUL
   <Operation> {R [R|I] n}, operand1, operand2
   EX: ADD RR1,RR2,II100 ; RR1=RR2+100
Example of G-Code programs

Hello CNC
CNC>Controll$
LD                        ;the following program describe of “CNC” text with G-code
G02 RI5000 QI2 CI2       ;draw "C"
G00 ZI1500              ;Lift Plotter
G00 XI1500 YI-10000     ;space between char
G00 ZI-1500            ;down Plotter
G00 YI10000            ;draw "|"
G01 XI5000 YI-10000    ;draw ""
G00 YI10000            ;draw "|"
G00 ZI1500             ;Lift Plotter
G00 XI6500 YI-10000    ;space between char
G00 ZI-1500           ;down Plotter
G02 RI5000 QI2 CI2    ; draw "C”
EOP
START
Algorithms…
Bresenham Line Drawing
        G01 Implementation
• Algorithm which determines which points
  in an n-dimensional raster should be
  plotted in order to form a close
  approximation to a straight line between
  two given points. It is commonly used to
  draw lines on a computer screen, as it
  uses only integer addition, subtraction and
  bit shifting, all of which are very cheap
  operations in standard computer
  architectures.
Similarities between computer
   screen and Our board

                                • Computer screen is divided into
                                  very small units called pixels and
                                  out board is divided into small
                                  movements called steps and we
                                  replaced the function of
                                   put pixel(X,Y); with step(Motor);



Figure-2 Sub-pixel display
http://en.wikipedia.org/wiki/Pixel
Example
Code written for screen   Code written for Out machine
)Put _pixel(X+1,Y+1       );Set_Direction(MotorX,Positive
                          );Set_Direction(MotroY,Positive
                          );parallerStep(MotorX,MotorY

)put_pixel(X+1,Y          Set_Direction(MotorX,Positive);
                          Step(&MotorX);

put_pixel(X,Y+1)          Set_Direction(MotorY,Positive);
                          Step(&MotorY);
)Put_pixel(X-1,Y          );Set_Direction(MotorX,Negative
                          );Step(&MotorX
Example of Bresenham Line
             Drawing
 Bresenham for drawing Line




   7°               60°                30°          45°

    Figure 3 our Implementation of Bresenham line
    drawing on Console Screen Different slope
Midpoint Algorithm
      G02,G03 Implementation
• the Midpoint circle algorithm is an
  algorithm used to determine the points
  needed for drawing a circle actually
  drawing one octant but we draw the other
  using mirroring. The algorithm is a variant
  of Bresenham's line algorithm, and is thus
  sometimes known as Bresenham's circle
  algorithm.
Midpoint Algorithm Example
      Bresenham's Circle algorithm




Figure-3 Rasterisation of a circle by the Bresenham algorithm
http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
G00 Implementation
• Implementation phases
  – Enable Interrupt handler of Each Timer[0,1,2]
  – Configure Timer to trigger event
    (On_TimerOverFlow)(void**); when Timer
    overflow
• The foreground program is free to do
  useful work as it is occasionally
  interrupted output operations.
Context switching between
         Motors on G00 command
                      Foreground
                       Foreground   Step    Step    Step
            Time      process
                       process      MotoX   MotoZ   MotoY




Figure-4
Context switching between
Step(&MotorX),
Step(&MotorY) and
Step(&MotorZ)
Testing and Simulations…
Testing and Simulations…
   (PROTEUS)
 • We simulate the behavior of motors
   [#of performed step, frequency of the pulses] using
   PROTEUS simulator. It enables us to test and debug
   faster than the physical level.
 • DEMO OF PROTEUS
Testing and Simulations…
  (Final Demo)


           Start
THANKS 

Weitere ähnliche Inhalte

Was ist angesagt?

INTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESS
INTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESSINTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESS
INTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESS
Abhilash kk
 

Was ist angesagt? (20)

CNC MACHINE
CNC MACHINECNC MACHINE
CNC MACHINE
 
Nc part programming
Nc part programmingNc part programming
Nc part programming
 
CAD/CAM/CIM (Lecture 1 CAD)
CAD/CAM/CIM  (Lecture 1 CAD)CAD/CAM/CIM  (Lecture 1 CAD)
CAD/CAM/CIM (Lecture 1 CAD)
 
Cncpresentation CNC lathe machine
Cncpresentation CNC lathe machineCncpresentation CNC lathe machine
Cncpresentation CNC lathe machine
 
CAD AND CAM PPT.pptx
CAD AND CAM PPT.pptxCAD AND CAM PPT.pptx
CAD AND CAM PPT.pptx
 
Mechanical CNC machine
Mechanical CNC machineMechanical CNC machine
Mechanical CNC machine
 
Cad cam input output devices
Cad cam input output devicesCad cam input output devices
Cad cam input output devices
 
Numeric control
Numeric controlNumeric control
Numeric control
 
ppt on cnc
ppt on cncppt on cnc
ppt on cnc
 
Numerical control machines
Numerical control machines Numerical control machines
Numerical control machines
 
Apt programming
Apt programmingApt programming
Apt programming
 
APT part programming
APT part programmingAPT part programming
APT part programming
 
DNC SYSTEMS
DNC SYSTEMSDNC SYSTEMS
DNC SYSTEMS
 
Cnc Milling (Heidenhain ISO)
Cnc Milling (Heidenhain ISO)Cnc Milling (Heidenhain ISO)
Cnc Milling (Heidenhain ISO)
 
CNC machine\ and its types
CNC machine\ and its typesCNC machine\ and its types
CNC machine\ and its types
 
INTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESS
INTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESSINTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESS
INTRODUCTION TO CAD,WORKSTATION & DESIGN PROCESS
 
CAD/CAM -PPT UNIT NO-I
CAD/CAM -PPT UNIT NO-ICAD/CAM -PPT UNIT NO-I
CAD/CAM -PPT UNIT NO-I
 
NX training Report
NX training ReportNX training Report
NX training Report
 
Solidworks training report
Solidworks training reportSolidworks training report
Solidworks training report
 
Introduction to CAD/CAM
Introduction to CAD/CAMIntroduction to CAD/CAM
Introduction to CAD/CAM
 

Andere mochten auch

Capstone phase 2 Online Overview: 3-Axis Motorized PIC Machine
Capstone phase 2 Online Overview: 3-Axis Motorized PIC MachineCapstone phase 2 Online Overview: 3-Axis Motorized PIC Machine
Capstone phase 2 Online Overview: 3-Axis Motorized PIC Machine
bri_rep_45
 
Printers vs. Plotters
Printers vs. PlottersPrinters vs. Plotters
Printers vs. Plotters
Danish Parkar
 
scanners and plotters
scanners and plottersscanners and plotters
scanners and plotters
HeenM
 
line following robot
line following robotline following robot
line following robot
Rehnaz Razvi
 
Project report-format by vishal
Project report-format by vishalProject report-format by vishal
Project report-format by vishal
vishal18900
 
Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)
Muhammad Ahkam Khan
 

Andere mochten auch (20)

2D ROBOTIC PLOTTER
2D ROBOTIC PLOTTER2D ROBOTIC PLOTTER
2D ROBOTIC PLOTTER
 
Mini CNC (Router Machine)
Mini CNC (Router Machine)Mini CNC (Router Machine)
Mini CNC (Router Machine)
 
Printer Plotter (special printers )
Printer Plotter (special printers )Printer Plotter (special printers )
Printer Plotter (special printers )
 
CNC Machines
CNC MachinesCNC Machines
CNC Machines
 
Introduction to cnc machines (1)
Introduction to cnc machines (1)Introduction to cnc machines (1)
Introduction to cnc machines (1)
 
Plotters
PlottersPlotters
Plotters
 
Gesture control robot using by Ardiuno
Gesture control robot using by ArdiunoGesture control robot using by Ardiuno
Gesture control robot using by Ardiuno
 
Capstone phase 2 Online Overview: 3-Axis Motorized PIC Machine
Capstone phase 2 Online Overview: 3-Axis Motorized PIC MachineCapstone phase 2 Online Overview: 3-Axis Motorized PIC Machine
Capstone phase 2 Online Overview: 3-Axis Motorized PIC Machine
 
Printers vs. Plotters
Printers vs. PlottersPrinters vs. Plotters
Printers vs. Plotters
 
Universal CNC Milling Machine
Universal CNC Milling MachineUniversal CNC Milling Machine
Universal CNC Milling Machine
 
What is a cnc machine
What is a cnc machineWhat is a cnc machine
What is a cnc machine
 
Footstep Power Generation
Footstep Power GenerationFootstep Power Generation
Footstep Power Generation
 
scanners and plotters
scanners and plottersscanners and plotters
scanners and plotters
 
Slotting machine
Slotting machineSlotting machine
Slotting machine
 
line following robot
line following robotline following robot
line following robot
 
Slotting machine (slotter)
Slotting machine (slotter)Slotting machine (slotter)
Slotting machine (slotter)
 
Annual Report (FY-2015-16) of Kuwer Industries Ltd.
Annual Report (FY-2015-16) of Kuwer Industries Ltd.Annual Report (FY-2015-16) of Kuwer Industries Ltd.
Annual Report (FY-2015-16) of Kuwer Industries Ltd.
 
Cnc Milling
Cnc MillingCnc Milling
Cnc Milling
 
Project report-format by vishal
Project report-format by vishalProject report-format by vishal
Project report-format by vishal
 
Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)Wireless Gesture Controlled Robot (FYP Report)
Wireless Gesture Controlled Robot (FYP Report)
 

Ähnlich wie 2D Plotter Presentation

Lo #5 manufacturing technology (jan 2016)
Lo #5 manufacturing technology (jan  2016)Lo #5 manufacturing technology (jan  2016)
Lo #5 manufacturing technology (jan 2016)
Abdulaziz AlSuwaidi
 
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdfCh-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
JAYANTKUMAR469151
 

Ähnlich wie 2D Plotter Presentation (20)

Me3m02 expt p3
Me3m02 expt p3Me3m02 expt p3
Me3m02 expt p3
 
A project report of map of india made by the CNC SIMULATOR PRO software Mech...
A  project report of map of india made by the CNC SIMULATOR PRO software Mech...A  project report of map of india made by the CNC SIMULATOR PRO software Mech...
A project report of map of india made by the CNC SIMULATOR PRO software Mech...
 
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using ArduinoIRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
IRJET- Automatic Mini CNC Machine for PCB Drawing using Arduino
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASHCNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
 
CNC.ppt
CNC.pptCNC.ppt
CNC.ppt
 
3-Axis Motion Control of CNC Machine based on G-Code, M-Code using FPGA and a...
3-Axis Motion Control of CNC Machine based on G-Code, M-Code using FPGA and a...3-Axis Motion Control of CNC Machine based on G-Code, M-Code using FPGA and a...
3-Axis Motion Control of CNC Machine based on G-Code, M-Code using FPGA and a...
 
Predefence.pptx
Predefence.pptxPredefence.pptx
Predefence.pptx
 
Lo #5 manufacturing technology (jan 2016)
Lo #5 manufacturing technology (jan  2016)Lo #5 manufacturing technology (jan  2016)
Lo #5 manufacturing technology (jan 2016)
 
Numerical control and CNC
Numerical control and CNCNumerical control and CNC
Numerical control and CNC
 
Recent Advancement of CNC Technology
Recent Advancement of CNC TechnologyRecent Advancement of CNC Technology
Recent Advancement of CNC Technology
 
Cnc programming
Cnc programmingCnc programming
Cnc programming
 
Mechatronics and manufacturing automation7 program.
Mechatronics and manufacturing automation7 program.Mechatronics and manufacturing automation7 program.
Mechatronics and manufacturing automation7 program.
 
Mechatronics and manufacturing automation7 program.
Mechatronics and manufacturing automation7 program.Mechatronics and manufacturing automation7 program.
Mechatronics and manufacturing automation7 program.
 
Bhel ppt
Bhel pptBhel ppt
Bhel ppt
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdfCh-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
 
Cnc programming basics.doc
Cnc programming basics.docCnc programming basics.doc
Cnc programming basics.doc
 
cnc machining
cnc machiningcnc machining
cnc machining
 
CNC part programming
CNC part programmingCNC part programming
CNC part programming
 

Kürzlich hochgeladen

Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
amitlee9823
 
Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...
VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...
VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...
amitlee9823
 
Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...
gajnagarg
 
Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...
Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...
Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...
nirzagarg
 
Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...
Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...
Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...
gajnagarg
 
➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men 🔝Bhiwandi🔝 Escor...
➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men  🔝Bhiwandi🔝   Escor...➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men  🔝Bhiwandi🔝   Escor...
➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men 🔝Bhiwandi🔝 Escor...
amitlee9823
 
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitoutELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
ssjews46
 
Call Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
amitlee9823
 
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
gajnagarg
 
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
amitlee9823
 
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
Health
 

Kürzlich hochgeladen (20)

Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Kanakapura Road Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Hongasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Mumbai Call On 9920725232 With Body to body massage wit...
 
Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Bangalore Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
(ISHITA) Call Girls Service Jammu Call Now 8617697112 Jammu Escorts 24x7
(ISHITA) Call Girls Service Jammu Call Now 8617697112 Jammu Escorts 24x7(ISHITA) Call Girls Service Jammu Call Now 8617697112 Jammu Escorts 24x7
(ISHITA) Call Girls Service Jammu Call Now 8617697112 Jammu Escorts 24x7
 
VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...
VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...
VVIP Mumbai Call Girls Mumbai Central Call On 9920725232 With Elite Staff And...
 
Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Kovalam Escorts ☎️9352988975 Two shot with one girl ...
 
Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...
Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...
Rekha Agarkar Escorts Service Kollam ❣️ 7014168258 ❣️ High Cost Unlimited Har...
 
Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...
Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...
Just Call Vip call girls Ankleshwar Escorts ☎️9352988975 Two shot with one gi...
 
➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men 🔝Bhiwandi🔝 Escor...
➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men  🔝Bhiwandi🔝   Escor...➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men  🔝Bhiwandi🔝   Escor...
➥🔝 7737669865 🔝▻ Bhiwandi Call-girls in Women Seeking Men 🔝Bhiwandi🔝 Escor...
 
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitoutELECTRICITÉ TMT 55.pdf electrick diagram manitout
ELECTRICITÉ TMT 55.pdf electrick diagram manitout
 
Call Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Patel Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Dubai Call Girls R0yalty O525547819 Call Girls Dubai
Dubai Call Girls R0yalty O525547819 Call Girls DubaiDubai Call Girls R0yalty O525547819 Call Girls Dubai
Dubai Call Girls R0yalty O525547819 Call Girls Dubai
 
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
Top Rated Call Girls Mumbai Central : 9920725232 We offer Beautiful and sexy ...
 
FARIDABAD CALL GIRL Anal shot #8168257667 BOOK Shilpa 7999/-
FARIDABAD  CALL GIRL Anal shot #8168257667  BOOK Shilpa 7999/-FARIDABAD  CALL GIRL Anal shot #8168257667  BOOK Shilpa 7999/-
FARIDABAD CALL GIRL Anal shot #8168257667 BOOK Shilpa 7999/-
 
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
 
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
Madiwala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore Es...
 
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
 

2D Plotter Presentation

  • 1. CNC Machine 2D Plotter Supervisor D.R Eman Shaban T.A Mahmoud Fayez
  • 2. Team Members…. Hassan Awad Abd El-Aziz Mahmoud Mohamed Hussein  Mahmoud Salah Salam  Marwan Ezz El-Deen  Mohamed Momen Gamal El-Deen
  • 3. Agenda…. • Introduction • History • System Features • System Architecture  Software subsystem  Mechanical subsystem  Electronic subsystem • Mode of Operation • Algorithms • Testing and Simulations
  • 5. Introduction CNC Machine Computer numerical control (CNC) machines are automated milling machines that make industrial components without human assistance. This is possible because CNC machines are fed a series of instructions that are delivered to an internal computer controller. These instructions are in the form of codes that belong to the numerical control programming language. The code used to program CNC machines is generically called G-code. However, G-code instructions are only part of the programming language. Specifically, G-codes give CNC machines the coordinates .
  • 6. Introduction Project Idea • Automation of 3 Motors to control the coordinates (X,Y,Z)of a pen with flexible head can be used as Plotter.
  • 7. History  The first commercial NC machines were built in the 1950's, and ran from punched tape.  CNC, and later CNC, allowed for tremendous increases in productivity for machine tools because the machines could be run automatically without The first commercial NC requiring constant www.cnccookbook.com attention from their operator.
  • 9. System Features • Rapid speed positioning using G00 • Plot line using G01 • Plot Circles using G02,G03 clockwise or anti-clock wise. • Manual Mode control the position of the Plotter using Keyboard • Programming Mode write full program includes moving plotter, Arithmetic operation and decisions instructions
  • 12. Software Subsystem User Interface Terminal App Send G-Code Programs, Control Instruction Interpreter Move Motors Geometry Motors Kernel invoke Configure Timers Timers
  • 13. System Architecture cont Software Subsystem There are 6 Main Software Modules • MotorLib.h : Configure, Monitor and Move Motors. • TimersLib.h : Configure periodic task. • Interperter.h : Parse G-line program separate tokens and execute instruction – [simple Arithmetic instructions ADD MUL]. – [Motor Instructions Operation G00,G01,G02,G03]. – [Decision instruction JEQ,JNE].
  • 14. System Architecture cont. Software Subsystem cont. • UART.h – Serial communication port driver to send the G-code program and control instruction to the machine • BresenhamLineDrawing.h • MidPointCircleDrawing.h
  • 15. System Architecture Mechanical Subsystem  3 Motors each one attached to AXIS (X,Y,Z)  Stepper Motor with the following Description  Step angle 1.8°  Holding Torque: 3.9 Kg.cm (40 N.cm)  Current 2 A  leads: 6 wires (4 per coils 2 COM)
  • 16. System Architecture cont CNC Machine Mechanical Design: Figure-1 Different views of Our CNC Machine
  • 17. System Architecture cont Electronic Subsystem  It consists of 8 bit At mega 328P microcontroller and stepper motor control drivers BAL 35 for controlling all the three stepper motors. Microcontroller generates necessary STEP and DIRECTION signals for each stepper motor controller to achieve desired speed and rotation. A RS 232 is used for communicating data between PC and microcontroller.
  • 18. Control Modes • We have three types of control mode: -Calibration Mode (CL). -Load Mode (LD). -Execution Mode (EXE).
  • 19. Control Mode instruction Command Description CL Manual Mode LD Program Mode START Executed the program stored on RAM EXE Read G_Line from serial and executed it immediately and acknowledge the next instruction RESET Reset the machine to the initial X_co,Y_co_Z_co coordinates SETBX Set border of our board on X-axis SETBY Set border of our board on Y-axis SETBZ Set border of our board on Z-axis
  • 20. State Chart State chart illustrates how to switch between modes
  • 21. Machine Language Program instruction Command Description G00 Rapid speed X,Y,Z Vector. G01 .linear interpolation between 2 points Bresenham line drawing G02 Clockwise circular interpolation. G03 Anti Clockwise circular interpolation. ADD ADD operand [2] and operand [3] then put result set on Operand [1]. MUL MUL operand [2] and operand [3] then put result on Operand [1]. JEQ Jump if flag is set. JNE Jump if flag is reset. CMP Compare operand [1] and operand [2] and set Equal flag. EOP End of program.
  • 22. Syntax Language Program • G00 <Operation> {X [R|I] #} {Y [R|I] #} {Z [R|I] #} EX: G00 XI1000 YI1000 ZI1000 • G01 <Operation> {X [R|I] #} {Y [R|I] #} EX: G01 XI1000 YI500
  • 23. Syntax Language Program cont. • G02 and G03 <Operation> {R [R|I] #} {Q [R|I] #} {C [R|I] #} EX: G02 RI4000 QI0 • ADD and MUL <Operation> {R [R|I] n}, operand1, operand2 EX: ADD RR1,RR2,II100 ; RR1=RR2+100
  • 24. Example of G-Code programs Hello CNC CNC>Controll$ LD ;the following program describe of “CNC” text with G-code G02 RI5000 QI2 CI2 ;draw "C" G00 ZI1500 ;Lift Plotter G00 XI1500 YI-10000 ;space between char G00 ZI-1500 ;down Plotter G00 YI10000 ;draw "|" G01 XI5000 YI-10000 ;draw "" G00 YI10000 ;draw "|" G00 ZI1500 ;Lift Plotter G00 XI6500 YI-10000 ;space between char G00 ZI-1500 ;down Plotter G02 RI5000 QI2 CI2 ; draw "C” EOP START
  • 26. Bresenham Line Drawing G01 Implementation • Algorithm which determines which points in an n-dimensional raster should be plotted in order to form a close approximation to a straight line between two given points. It is commonly used to draw lines on a computer screen, as it uses only integer addition, subtraction and bit shifting, all of which are very cheap operations in standard computer architectures.
  • 27. Similarities between computer screen and Our board • Computer screen is divided into very small units called pixels and out board is divided into small movements called steps and we replaced the function of put pixel(X,Y); with step(Motor); Figure-2 Sub-pixel display http://en.wikipedia.org/wiki/Pixel
  • 28. Example Code written for screen Code written for Out machine )Put _pixel(X+1,Y+1 );Set_Direction(MotorX,Positive );Set_Direction(MotroY,Positive );parallerStep(MotorX,MotorY )put_pixel(X+1,Y Set_Direction(MotorX,Positive); Step(&MotorX); put_pixel(X,Y+1) Set_Direction(MotorY,Positive); Step(&MotorY); )Put_pixel(X-1,Y );Set_Direction(MotorX,Negative );Step(&MotorX
  • 29. Example of Bresenham Line Drawing  Bresenham for drawing Line 7° 60° 30° 45° Figure 3 our Implementation of Bresenham line drawing on Console Screen Different slope
  • 30. Midpoint Algorithm G02,G03 Implementation • the Midpoint circle algorithm is an algorithm used to determine the points needed for drawing a circle actually drawing one octant but we draw the other using mirroring. The algorithm is a variant of Bresenham's line algorithm, and is thus sometimes known as Bresenham's circle algorithm.
  • 31. Midpoint Algorithm Example Bresenham's Circle algorithm Figure-3 Rasterisation of a circle by the Bresenham algorithm http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
  • 32. G00 Implementation • Implementation phases – Enable Interrupt handler of Each Timer[0,1,2] – Configure Timer to trigger event (On_TimerOverFlow)(void**); when Timer overflow • The foreground program is free to do useful work as it is occasionally interrupted output operations.
  • 33. Context switching between Motors on G00 command Foreground Foreground Step Step Step Time process process MotoX MotoZ MotoY Figure-4 Context switching between Step(&MotorX), Step(&MotorY) and Step(&MotorZ)
  • 35. Testing and Simulations… (PROTEUS) • We simulate the behavior of motors [#of performed step, frequency of the pulses] using PROTEUS simulator. It enables us to test and debug faster than the physical level. • DEMO OF PROTEUS
  • 36. Testing and Simulations… (Final Demo) Start

Hinweis der Redaktion

  1. مهمة اوى نقطة ان الماشين شغالة بال COMMANDS