DAM Control Using Programmable Logic Controller.