LEMON Manuals: Even more car manuals for everyone
Home >> Mercedes Benz >> 2021 >> Sprinter 1500 Van Passenger >> Repair and Diagnosis >> Accessories & Equipment >> Wiper/Washer Systems >> Electrical System, Equipment & Instructions - Description & Operation, Location, Gen Info & Basic Knowledge >> Basic Knowledge >> PSM Arithmetic, Example Of PSM Function - GF54.21-D-3055-01TSA

PSM Arithmetic, Example Of PSM Function - GF54.21-D-3055-01TSA

Model 907 

with code ED5 (Parameterisable special module) 

Outside temperature, arithmetic block 

G13792292

Function blocks for outside temperature 

The outside temperature (interior CAN (CAN B): "AirTemp_OutSd") can be output on one of the pulse-width-modulation-compatible outputs (A).

Formula: duty cycle = (outside temperature [°C] + 40 [°C])/125 [°C]

Outside temperature value range -40 to 85 °C
Value range of pulse width modulated signal 0...100 %
Frequency 200 Hz

If a value (W) outside the valid range is sent, the last valid value (W) is used. If a valid value (W) is still not available, 0 % pulse width modulation (PWM) is output. The PWM function for the outside temperature is implemented using groups of the programmable logic controller (PLC), arithmetic unit and multifunction output blocks. The picture above shows the simplified linking of the function blocks. The configuration is available in the tables.

Function description of implementation 

Comparator 6, calculation step 1 (Comp 6): 

Comparator 7, calculation step 2 (Comp 7): 

Arithmetic unit memory (Memory 1): 

Flip-flop 2 (FF2 PLC G12): 

Value table 1 (WT1): 

Calculation block 10, calculation step 4 (Calc 10): 

Multifunction output block (MFA 6): 

IMPORTANT Signal identification number = Signal ID. The signal IDs are notated in hexadecimal form.

ARITHMETIC UNIT - COMPARATOR 6, CALCULATION STEP 1 (COMP 6), CONFIGURATION

Input Signal name Signal ID Compare operation
Compare_6_a Out_AU_Const_14 0 x 804D Input a (a) ≥ Input b (b)
Compare_6_b AirTemp_Outsd 0x2093  
Compare_6_c Const_Bit_1 0x1001  
Compare_6_d Const_Bit_0 0x1000  
ARITHMETIC UNIT - COMPARATOR 7, CALCULATION STEP 2 (COMP 7), CONFIGURATION

Input Signal name Signal ID Compare operation
Compare_7_a Out_AU_Const_14 0 x 804D Input a (a) ≥ Input b (b)
Compare_7_b AirTemp_Outsd 0x2093  
Compare_7_c Const_Bit_1 0x1001  
Compare_7_d Const_Bit_0 0x1000  
ARITHMETIC UNIT MEMORY (MEMORY 1), CONFIGURATION

Input Signal name Signal ID Activation delay (in 20 ms steps)
Memory_1_value Out_AU_Compare_7 0 x 802A 0
Memory_1_Enable Out_AU_Compare_6 0x8029  
FLIP-FLOP 2 (FF2 PLC G12), CONFIGURATION

Input F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 Signal name Signal ID - -
FF2_1 (Set/Data)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Out AU Calc 4 0x8003 Flipflop type  D_FF (1)
FF2_2 (Reset/Clock)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0     Flipflop evaluation  Status-controlled/positive signal edge (0)
VALUE TABLE 1 (WT1), CONFIGURATION

Input F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 Signal name Signal ID Value table 1 Default value (signal name) Const_Bit_0 0x1000
WT1_1 (value 1)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Out_G12_FF2 0x3089 - Value 1 (Signal name)  Out_AU_Memory_1 0x8030
WT1 2 (Value 2)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Const_Bit_0 0x1000 - Value 2 (Signal name)  Const_Bit_0 0x1000
WT1 3 (Value 3)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Const_Bit_0 0x1000   Value 3 (Signal name)  Const_Bit_0 0x1000
WT1 4 (Value 4)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Const_Bit_0 0x1000 - Value 4 (Signal name)  Const_Bit_0 0x1000
ARITHMETIC UNIT MEMORY - CALCULATION BLOCK 10, CALCULATION STEP 4, CONFIGURATION

Input Signal name Signal ID Lower limit value Upper limit value
Calc_10_a Out_G8_WT1 0x3067 0 10000
Calc 10 m1 Out AU Const 12 0 x 804B    
Calc_10_m2 Out_AU_Const_14 0 x 804D    
Calc_10_b Const_Bit_0 0x1000    
ARITHMETIC UNIT MEMORY (MEMORY 1), CONSTANTS, CONFIGURATION

Constants Arithmetic unit Meaning
Constant 12 10 000 Maximum duty cycle
Constant 13 2000 Frequency
Constant 14 250 Maximum valid value (W)
MULTIFUNCTION OUTPUT BLOCK (MFA 6)

1A high-side, PWM F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 Signal name Signal ID
Input 1 (Active)  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Const_Bit_1 0x1001
Input 2 (Const/pulse)                                  Const Bit 0 0x1000
Input 3 (Cycle Time)                                  Const_Bit_0 0x1000
Input 4 (Pulse Time)                                  Const_Bit_0 0x1000
Input 5 (Cutoff reset)                                  Term15_Actv 0x1219
Input 6 (PWM active)                                  Const_Bit_1 0x1001
Input 7 (PWM Freq./cycle)                                  Out_AU_Const_13 0 x 804C
Input 8 (PWM Duty/Pulse Width)                                  Out_AU_Calc_10 0x8009