Activating DC link control
INFORMATION

The "state of charge control" operating mode (StateOfChargeControl) only works if the switching state of the energy storage unit is known. If an energy storage unit is connected and can be switched on, it must first be set to a defined state via the DC synchronization operating mode.
INFORMATION

The settings described below can be made anywhere in the program code. To reduce runtime in the HighPrio task, we recommend using the Main task to make the settings.
The following code example (software module used: MOVIKIT® PowerMode) shows how to set the DC link voltage to 650 V and a maximum charging power of 40 kW on the MDE90A power supply module.
Request access:
Interface_MDE90A.xGetAccessControl:=TRUE;
Activation of voltage control:
Interface_MDE90A.ModeControl.IN.uiRequestedMode:=500;
Interface_MDE90A.ModeStateOfChargeControl.IN.xStart:=TRUE;
Setpoint for DC link voltage [V]:
Interface_MDE90A.ModeStateOfChargeControl.IN.rSoCSetpoint:=650;
Setpoint for maximum charging power [W]:
Interface_MDE90A.ModeStateOfChargeControl.IN.rChargeLimit:=40000;
Control side selection:
Interface_MDE90A.ModeStateOfChargeControl.IN.eControlSideRequest:=SEW_MK_PES_EnergyMode.SEW_PES_EnHubEnMode.SEW_PES_IEnHubComBas.E_ControlSide.A_SIDE;