What is a DC machine?
What exactly do you want to control?
And what exact help do you need? You can't expect that we replace school and describe every detail of a regulation loop from the scratch.
For this you may find many tutorials and even videos.