This repository contains Python scripts to control the CNC1419 workbench via serial (GRBL) commands. These scripts allow for automated movements and simple machining operations like hole creation without using the default software.
- Direct Serial Control: Communicates with the CNC1419 via COM port (default
COM7) at115200baud. - Robust G-code Execution: Standard "send-and-wait" execution with support for status report filtering and error handling.
- Automated Tasks:
cnc_control.py: Moves the spindle down and traces a 50mm diameter circle.hole_creation.py: Creates a 30mm diameter hole with layered depth passes (from surface down to -24mm).
- Python 3.x
pyseriallibrary
Install dependencies:
pip install pyserial- Connect your CNC1419 to your computer and identify the COM port (e.g.,
COM7). - Close any other CNC software (like CNCBox or Benbox).
- Update the
PORTvariable in the scripts if your COM port is different. - Run the desired script:
python cnc_control.py # or python hole_creation.py
Warning
Always ensure the machine's path is clear before running these scripts. Keep your hand near the emergency stop or power source while the machine is in motion.
These scripts are provided for educational purposes. Use them at your own risk. The author is not responsible for any damage to your machine or workpiece.