Having a 50 AMP plug on a machine that draws 15 amps would not be wise. If you have a 50A plug with a 50A breaker, than all the wiring should be something like #6 and the breaker would do nothing to protect the machine. The plug size is specific to the breaker and wiring. There are some variations to breaker size relative to motors and VFD, but the breaker protects the wire. On a 50A circuit would need to take it to a sub panel or fused box that would have fusing/breaker appropriate for the machine load which in this case would probably be a 20A circuit. Normally one would use a 20A plug with a 20A breaker/fusing/wiring.
You also need a power disconnect at or close to the machine. I am not an electrician and not sure if this applies to residential setting vs. industrial, but what is posted is as follows: Article 430 includes the minimum requirements for electrical motors. Provisions for locations of motor disconnects are included in 430.102. There are two components of Section 430.102, the controller in 430.102(A) and the motor in 430.102(B). Section 430.102(A) requires a disconnect in sight from the controller and it must disconnect to be located in sight from the controller and it shall disconnect the controller from the source. The term in sight; by definition, it means that one component can be seen from the other and the distance between must not exceed 15 m (50 ft). The disconnecting means must be visible from the motor and equipment. One should always have a power disconnect switch near or at the machine, even if it has a plug. I seem to recall something elsewhere that the disconnected needed to be closer, this assume there is no factory power disconnect at the machine.