Simulation of an inverter axis
This simulation corresponds to an inverter axis and can be used to replace a real inverter drive. For this purpose, compatible mapping elements are provided and a behavior very similar to that of a real axis is emulated.
Implementation of a simulated inverter axis
A simulation requires an implementation that can run in one of two places:
- in the same context as the control implementation
- in a separate runtime or even on a separate CPU
Implementation in both contexts is recommended as described below:
Name | Type | Description |
---|---|---|
| Instructs | |
| Creates an instance of the simulation FB. | |
| BOOL | Creates a signal for the simulation to report an error state and request a reset procedure. |
Range of supported inverters
The term FB_SimCoE402_Inverter_Xyz above must be replaced by one of the following options:
FB_SimCoE402_Inverter_VM
FB_SimCoE402_Inverter_CSVM
Initialization of a simulated inverter axis
In the startup phase, it is necessary to implement an initialization sequence as described below.
IF NOT bInitialised AND bSimulation THEN
fbInverterSimDS402.CycleTime := 0.002;
fbInverterSimDS402.MaxTurnRate := 1380.0;
fbInverterSimDS402.MinTurnrate := 45.0;
fbInverterSimDS402.RampTime := 2.0;
fbInverterSimDS402.OutputFactor := 1.0;
fbInverterSimDS402.ReferenceLoad := 100.0;
END_IF
![]() | The parameters must correspond to the behavior of the simulated device, not to the intended use. |