A programmable AC power distribution unit includes a case and a network connection and power parameter measuring circuit board disposed in the case. The circuit board is connected with a panel, and the circuit board may be connected with an external network. In addition, a bus bar assembly is provided in the middle of the case. Current detectors are provided on the bus bar assembly. Two sides of the bus bar assembly are provided with a plurality of electromagnetic switches which are disposed in the case. The electromagnetic switches can be turned on/off through the panel or the remote network. The programmable AC power distribution unit has the function of monitoring the quality of the power supply and has the advantages of programmable automatic control and power distribution, meeting the network and automation requirements of Industry 4.0.