Text this: Active Control and Energy Cost Assessment of a Rotating Machine