How to Establish Digital Twin for Machine Tools?

Dear developer,
I have built a model of machine tool by myself. How can I create a digital twin for this model? Which connection mode should be used?