BMPT Module Configuration

Incoming Variables

Variable of the application that is mapped to the current BMPT_I.AV. You can map the following two different variables here:

  • BTS is loaded as a test component. Map the name of the test component interface variable to BMPT_I.AV.
  • BTS is not running as a test component. Map the variable BTS3_rcv_I.MG to BMPT_I.AV.
Note When you map the BMPT_BTS_control_pulse.CTL and BMPT_BTS_control_OnOff.CTL variables, examine the BMPT_BTS_control_pulse.STS and BMPT_BTS_control_OnOff.STS variables for a hand shake process. After the required control command is successfully executed, which is indicated by the value of the status variable, reset the control variable to 0.

Outgoing Variables

If BTS is loaded as a test component, then all variables must be mapped to the according interface variables of the test component. If BTS is not running as a test component then use the mappings of the following table:

Table 28. Outgoing Variables
Module Variable Destination Description
BMPT_R1.AV BTS3_BSIM_R1.SP Resistance R1 in mΩ
BMPT_Model.CTL

BTS3_BSIM_Modell.CTL

BTS simulation battery model
BMPT_C1.SP BTS3_BSIM_C1.SP Capacity of the simulated circuit
BMPT_R2.AV BTS3_BSIM_R2.SP Resistance R2 in mΩ
BMPT_write.CTL

BTS3_BSIM_write.CTL

Change of the value triggers updating the model parameters to the BTS. Variable is updated with 10 Hz:

0 —off

1, 2—on

BMPT_BTS_Voltage.OUT.SP BTS3_1_Interface_Voltage.SP

Sets the setpoint value for the output voltage

Usp

BMPT_TCI_Imax.SG

BTS3_1_Interface_TCI_Imax.SG

Sets the current limitation Imax
BMPT_TCI_snd_ OnOff.ACT.SG

BTS3_1_Interface_ TCI_snd_OnOff.ACT.SG

Switches the remote BTS control on or off

BMPT_TCI_snd_Pulse.ACT BTS3_1_Interface_Pulse.ACT

Switches the pulse block on or off
BMPT_BTS_control_ OnOff.STS

Status of the BTS remote control

  1. ready for next command
  2. BMPT_BTS_control_OnOff.CTL successfully executed
BMPT_BTS_control_ pulse.STS

Status of the pulse block control

  1. ready for next command
  2. BMPT_BTS_control_pulse.CTL successfully executed
BMPT_init.ACT Initializes or deinitializes the BMPT module
BMPT_TCI_BS_Regmode.SP Setpoint for BTS Regmode

BMPT_TCI_LoadStdParSatztoWS.ACT

Triggers the loading of parameter set

BMPT_BTS4_Write_bso_BATTSimu.ACT

Use in case of BTS4

BMPT_mapping.OUT

This group of type Computations contains the calculation for the output value of the module in simulation mode (e.g., in case of the EMOT application enter here PTC2EM_BTS_Spannung.SP).

The variable is only overwritten if the simulation is active. In addition, a condition should also be included that depends on whether BTS is on or off.

General Parameter: BMPT

This group of type Initialization of variables contains the common configuration values.

BMPT_Modulparameter

This group of type Initialization of variables contains set point values for the variables; all variables have datatype float.

Figure 59. Circuit

1378

The related BTS parameters are:

  • BTS3_BSIM_C1.SP = C_1—fix value (e.g.,, 3,0000 F)
  • BTS3_BSIM_R1.SP = R_0—temperature dependent calculated resistance
  • BTS3_BSIM_R2.SP = R_1—fix value (e.g.,, 0.0015 Ω)

BMPT

This group of type Computations contains the calculation of the polynom of the voltage that can be adjusted here.

Figure 60. Polynom for Calculation of the Voltage
1378

BMPT_BTS_control_OnOff.CTL

This group of type Computations contains the calculation of the control variables for switching the BTS on or off.

BMPT_BTS_SIMU

This group of type Computations contains the calculation of the measured values for using the simulation.

BMPT_BTS_Parameter

This group of type Initialization of variables contains set point values for the variables.

Note For the Variable BMPT_BTS_Pulse.CTL variable, if pulse block is coupled to one of the terminals then the call to the command Pulseblock On/Off in a sequence table in automatic mode leads to an error. In manual mode clicking the according button leads to a warning.

For the Variable BMPT_BTS_Voltage.GRAD.SP variable, when the system is switched on the voltage is ramped automatically from 0 V to the setpoint voltage using this ramp.

Using a Customer-Specific Battery Model in a DSO

When the system is switched on the voltage will be ramped automatically from 0 V to the setpoint voltage using this ramp.

A DSO can be built either using a Matlab/Simulink model (preferred) or a C library. For implementing that external code a PAtools RT Tools license is necessary. How the DSO can be integrated in the test is explained in the RT Tools and in the PAtools User Manual.

An example for a customer-specific battery model is included as a DSO configuration in the Module configuration of the BPMT module:

Figure 61. Example Configuration of the BMPT Module
1378

This DSO configuration template contains an init routine without parameters and another function for cyclic data exchange. The parameters of this cyclic function are defined by the DSO itself and are mainly identical to the parameters of the incoming and outgoing variables of the module interface.

Figure 62. DSO Configuration of the DSO Template
1378

The next figure shows schematically the data exchange between the BMPT module, the DSO template and the BTS:

Figure 63. Required Parameter Set for the Interface to the Battery Module DSO
1378

If you want to integrate your own battery model as a DSO, complete the following steps:

  1. Create your model either as a Matlab/Simulink model (preferred) or as a C library.
  2. Import the model into the PAtools database with the DSO Manager.
  3. Deactivate the existing DSO configuration.
  4. Create for your model in the Module configuration of the BMPT module a new DSO configuration with the norm name BMPT_DSO.
  5. Assign the appropriate interface variables of the BMPT module to your exported cyclic function parameters.
  6. Set the variable BMPT_Model_Selector.CTL in the group BMPT_Modulparameter to 2.

Integration into the Application

For integration in TCMG, the userbox BMPT_AddOn.UB.WTB can be integrated into the main user interface (see TCMG manual).

Further value displays and input fields are available by opening the userbox BMPT.UB.WTB.

Integration in STMC

For controlling the module from sequence tables of the application in the Module system of the BMPT module, a table titled BMPT_STMC_init.WTB is defined. This table automatically registers the BMPT module to be added to the sequence tables.

Step-by-step instructions are provided in the documentation for the STMC module.

If you follow these instructions an entry named BMPT is added to the column Action of the sequence tables of the application. If BMPT is selected, the next columns shows the selection list having the options shown in the next table.

For adding BTS control to the STMC module, add the selection list BMPT_BTS to the Action list.

General Remarks

The internal calculation/simulation in the module always is executed with 1 kHz (according to a value of BMPT_dT.SP = 0.001 s).

Nevertheless, the module interface parameters are updated with 10 Hz.