When the equivalent impedance to the PMSM SH model is very high, small errors in the machine currents (Ia, Ib and Ic) can cause high voltage errors to occur at the input legs of the machine. Since the voltage noise is connected to the machine inputs, a positive feedback loop can occur causing instability or increased errors in the PMSM SH simulation.
In order to avoid this situation, it is necessary to start the simulation with the machine resistances higher than the values defined by the model file. When the machine is in a lower impedance operating state, return the machine resistances values to the ones defined by the model file. The following procedure describes how to accomplish the procedure using the Resistances Override Channels.
Procedure
- Enable Enable Advanced Channels on the PMSM SH Page of the desired PMSM SH machine.
- Set the default value of the Enable Resistance Override channel to True (1).
- Set the default values of the Resistance Phase A Override, Resistance Phase B Override and Resistance Phase C Override channels to a Resistance value bigger than the one used by the model file. Typical starting values should be between 10 and 100 Ohms.
- Save the system definition and deploy it with the new changes.
- After the simulation has started, add the Advanced Channels of the desired PMSM SH to your UI.
As soon as the machine is in a lower impedance operating state, you can return the resistance values to the standard operating values by decreasing the values of the Resistance Phase A Override, Resistance Phase B Override and Resistance Phase C Override channels to the values specified in the model file.
Consider creating a User Channel in VeriStand and mapping it to the Resistance Phase Override channels to control all the resistance values from a single location (see Adding a User Channel in the VeriStand Help), or configure an Alarm in VeriStand to change the value of the Resistances Phase Override channels (see Using Alarms In Veristand).