Multicarrier Configuration

Multicarrier Configuration Editor

The project uses the generated variables from the global variable list GVL_MulticarrierConfiguration of the Multicarrier Configuration editor. The global variable list GVL_MulticarrierConfiguration can be found in the folder MulticarrierConfiguration .

For changing the configuration, for example if you want to decrease the number of carriers, you have two possibilities:
  • You change the configuration in the global variable list GVL_MulticarrierConfiguration (see example below).

  • You change the Multicarrier Configuration object and update the code.

SR_MainMachine

In the action SR_MainMachine.Start_Action, you find an additional state machine for parametrizing and activating the Multicarrier. In the project, the Sercos phase is set to zero per default.

The following graphic illustrates the different states along with comments for the corresponding processes:

In the following, you find some detailed descriptions for state 0, state 10 and 15 as well as state 18:

State 0

Stage

Description

1

The device objects must be assigned to an interface in the local structure stMulticarrierModule. Use the methods AssignSegments and AssignCarriers.
The structure is transferred to the SR_MulticarrierModule.
NOTE: The project is conceived for 30 segments and 70 carriers. If you want to increase these numbers, you must add the appropriate number of segments/carriers in the methods AssignSegments and AssignCarriers.

2

There are two global parameters in the Multicarrier library to set the corresponding number of hardware elements. These variables must also be adjusted if you change the number of carriers or segments:

3

The working direction from the global variable list GVL_MulticarrierConfiguration is written to the track object.

4

In case of running a physical device, the working mode is set to Real for the appropriate segments by setting the variable Gc_xVirtualMulticarrier to FALSE.

5

The Sercos phase is set to 2.

State 10 and 15
The control loop parameters are read out from the segments.

State 18
The control loop parameters can be modified and are written to the segments.

SR_MulticarrierModule

For mapping the hardware configuration to the Multicarrier library, the action Init_Track in the subroutine SR_MulticarrierModule is used.

In this action, the generated global variables in the global variable list GVL_MulticarrierConfiguration of the Multicarrier Configuration editor are used. This means that when using the Multicarrier Configuration editor, the configuration of the library is automatically adapted.

Item

Description

1

Structure with segment interfaces transferred from SR_MainMachine

2

Variable from the Multicarrier Configuration editor