The power that comes in to a controller is at a set frequency. The motor controller first turns that AC to DC, then turns the DC back into AC at the right frequency. It uses a device called a rectifier to make DC current. Inside the rectifier are diodes which function like one way valve.