ladder logic for cement crushing mill