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:

Implementation in both contexts is recommended as described below:

Name

Type

Description

{attribute 'TcContextName':='FastTask'}

Instructs FB_SimCoE402_Inverter to be updated in a specific task. In this case it must be the calling task that executes the Cyclic() method of the simulation block.

fbInvAxisSim

FB_SimCoE402_Inverter_Xyz

Creates an instance of the simulation FB.

bInvAxisSimGoError

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
Simulation of an inverter axis 1:

The parameters must correspond to the behavior of the simulated device, not to the intended use.