|
| 1 | +<!-- Please do not change this html logo with link --> |
| 2 | +<a href="https://www.microchip.com" rel="nofollow"><img src="../images/microchip.png" alt="MCHP" width="300"/></a> |
| 3 | + |
| 4 | +# Python PC Application |
| 5 | + |
| 6 | +This is the companion PC application written in Python responsible for |
| 7 | +parsing the G-Code and controlling the CNC machine. |
| 8 | + |
| 9 | +## Software Used |
| 10 | + |
| 11 | +<!-- All software used in this example must be listed here. Use unbreakable links! |
| 12 | + - MPLAB® X IDE 5.30 or newer [(microchip.com/mplab/mplab-x-ide)](http://www.microchip.com/mplab/mplab-x-ide) |
| 13 | + - MPLAB® XC8 2.10 or a newer compiler [(microchip.com/mplab/compilers)](http://www.microchip.com/mplab/compilers) |
| 14 | + - MPLAB® Code Configurator (MCC) 3.95.0 or newer [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator) |
| 15 | + - MPLAB® Code Configurator (MCC) Device Libraries PIC10 / PIC12 / PIC16 / PIC18 MCUs [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator) |
| 16 | + - Microchip PIC18F-Q Series Device Support (1.4.109) or newer [(packs.download.microchip.com/)](https://packs.download.microchip.com/) --> |
| 17 | + |
| 18 | +- Python 3.7 [(python.org/downloads)](https://www.python.org/downloads/) - must |
| 19 | +be Python 3.7.x |
| 20 | +- Pyserial 10.0.1 [(pypi.org/project/pyserial)](https://pypi.org/project/pyserial/) - `pip install pyserial` |
| 21 | +- Developed and tested on Windows 10 |
| 22 | + |
| 23 | +## Setup |
| 24 | + |
| 25 | +Run main.py |
| 26 | + |
| 27 | +Select the comm port of the Nano in the dropdown menu |
| 28 | + |
| 29 | +<img src="../images/disconnected.PNG" alt="MCHP" width="300"/> |
| 30 | + |
| 31 | +Hit connect |
| 32 | + |
| 33 | +<img src="../images/connecting.PNG" alt="MCHP" width="300"/> |
| 34 | + |
| 35 | +The state will change to connected and you will be able to import a |
| 36 | +G-code file. Click import |
| 37 | + |
| 38 | +<img src="../images/connected.PNG" alt="MCHP" width="300"/> |
| 39 | + |
| 40 | +Select the G-Code file |
| 41 | + |
| 42 | +<img src="../images/select.PNG" alt="MCHP" width="300"/> |
| 43 | + |
| 44 | +The G-Code will be loaded and parsed. The run option will become avaible, |
| 45 | +click it to run the routine. |
| 46 | + |
| 47 | +<img src="../images/run.PNG" alt="MCHP" width="300"/> |
| 48 | + |
| 49 | +<!-- Explain how to connect hardware and set up software. Depending on complexity, step-by-step instructions and/or tables and/or images can be used --> |
| 50 | + |
| 51 | +## Operation |
| 52 | + |
| 53 | +<!-- Explain how to operate the example. Depending on complexity, step-by-step instructions and/or tables and/or images can be used --> |
| 54 | + |
| 55 | +## Summary |
| 56 | + |
| 57 | +<!-- Summarize what the example has shown --> |
0 commit comments