Good,
after a long time stressing this forum, especially the Python4Delphi channel, with lots of rookie requests,
I got to a good point with the development of my first Python program.
Until a few months ago I had always ignored Python and its possibilities as Delphi has always been a tool
with which I create all my works and I have never thought of anything else.
When Python4Delphi and DelphiVCL showed up I wondered if I could do something interesting with both
and I must admit that although Python was completely new land to me, the fact of sticking with Delphi
anyway took away any doubt. .. I had to try.
Basically, the program is pure Python (after being compiled with Cython), an embedded version, with the addition
of DelphiVCL (I've never used FMX so it's better to start from the VCL that I know very well) and some Python modules
made in Delphi where I put the more delicate parts and in use real threads and not "crippled" threads by the GIL.
I anticipate, it is nothing transcendental, but as a first Python project, I am satisfied with it.
Description of video
In this short video, we can see the execution of an external program written in Python for the holding of print markers
necessary to calculate the zero machining, the rotation of the piece on the work table, and all the scaling needed to
compensate for the error of model printing between CAD and plotter printer.
The Python program interacts directly with the CNC that moves the XYZ axes for the final cut through an API Client (cnc_api_client_core in PyPi)
to the CNC control software API Server, retrieving information and sending direct commands to the CNC System.
Image capture is done using a proprietary IP Camera equipped with LED lighting.
The Python program is executed through an embedded version of the language prepared with all the necessary tools and allows two UI,
vertical and horizontal, to adapt to all types of monitors.
NOTE:
The below CNC Control Software is 100% made with Delphi 🙂
Many Thanks to forum people for the support!