61 #include "Application_Resource_Configuration.h"
224 #ifdef FUNCTIONAL_BLOCK_CREATE_DIAGNOSE_OUTPUTS
403 #ifdef FUNCTIONAL_BLOCK_CREATE_DIAGNOSE_OUTPUTS
407 F32 f32_Inverter_1_Phase_L1_Time;
408 F32 f32_Inverter_1_Phase_L2_Time;
409 F32 f32_Inverter_1_Phase_L3_Time;
411 I32 f32_Inverter_2_Phase_L1_Time;
412 I32 f32_Inverter_2_Phase_L2_Time;
413 I32 f32_Inverter_2_Phase_L3_Time;
415 F32 f32_Inverter_1_Minimum_Time;
416 F32 f32_Inverter_1_Maximum_Time;
418 F32 f32_Inverter_2_Minimum_Time;
419 F32 f32_Inverter_2_Maximum_Time;
421 F32 f32_Inverter_1_Offset;
422 F32 f32_Inverter_2_Offset;
424 I32 i32_Inverter_1_Phase_L1_Setpoint;
425 I32 i32_Inverter_1_Phase_L2_Setpoint;
426 I32 i32_Inverter_1_Phase_L3_Setpoint;
428 I32 i32_Inverter_2_Phase_L1_Setpoint;
429 I32 i32_Inverter_2_Phase_L2_Setpoint;
430 I32 i32_Inverter_2_Phase_L3_Setpoint;
long I32
2s Compliment 32-Bit signed integer datatype defenition
Definition: Defines.h:206
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
float F32
IEEE-754 32-Bit single presession floating point numbers datatype defenition.
Definition: Defines.h:324
short I16
2s Compliment 16-Bit signed integer datatype defenition
Definition: Defines.h:196
unsigned short U16
Binary 16-Bit unsigned integer datatype defenition.
Definition: Defines.h:193
Function block base class header file.
Function block output connector class.
Definition: Block_Output_Connector.h:59
Function block base class for device.
Definition: Function_Block_Base.h:96
3-phase 2-level pulse width modulator type 1 object class
Definition: PWM_2C3P2L.h:82
TBlock_Input_Connector object_u16_Inverter_2_Phase_L2_Setpoint
Definition: PWM_2C3P2L.h:208
U16 u16_Half_Periode
[Counts] Half periode in counts
Definition: PWM_2C3P2L.h:246
virtual VOID Execute()
Function block execution method.
Definition: PWM_2C3P2L.cpp:189
TPWM_3P2L_T1()
Constructor method.
Definition: PWM_2C3P2L.cpp:68
F32 f32_Clock_Frequency
[Hz] FPGA system clock
Definition: PWM_2C3P2L.h:244
TBlock_Input_Connector object_u16_Inverter_2_Phase_L3_Setpoint
Definition: PWM_2C3P2L.h:209
TBlock_Output_Connector object_bool_Inverter_1_Hardware_Fault
Inverter 1 hardware fault.
Definition: PWM_2C3P2L.h:217
TBlock_Input_Connector object_u16_Inverter_1_Phase_L2_Setpoint
Definition: PWM_2C3P2L.h:204
TBlock_Output_Connector object_f32_Sample_Time
Definition: PWM_2C3P2L.h:215
U16 u16_Inverter_1_Deadtime
Inverter 1 deadtime in FPGA clock counts.
Definition: PWM_2C3P2L.h:249
TBlock_Input_Connector object_bool_Enable_Inverter_1
Definition: PWM_2C3P2L.h:200
TBlock_Input_Connector object_u16_Inverter_2_Phase_L1_Setpoint
Definition: PWM_2C3P2L.h:207
TBlock_Input_Connector object_u16_Inverter_1_Phase_L1_Setpoint
Definition: PWM_2C3P2L.h:203
U16 u16_Inverter_2_Deadtime
Inverter 2 deadtime in FPGA clock counts.
Definition: PWM_2C3P2L.h:250
virtual ~TPWM_3P2L_T1()
Class destructor method.
Definition: PWM_2C3P2L.cpp:118
TPWM_3P2L_Registers * struct_Registers
FPGA mapped registers.
Definition: PWM_2C3P2L.h:242
TBlock_Output_Connector object_bool_Inverter_2_Hardware_Fault
Inverter 2 hardware fault.
Definition: PWM_2C3P2L.h:218
TBlock_Input_Connector object_bool_Enable_Inverter_2
Definition: PWM_2C3P2L.h:201
VOID Map(TPWM_3P2L_Registers *struct_Registers_Base_Address)
3-phase 3-level pulse width modulator memory mapping.
Definition: PWM_2C3P2L.cpp:126
virtual VOID Send_Information(TProtocol_Base *object_Protocol)
Send information about Function block over communication link protocol.
Definition: PWM_2C3P2L.cpp:285
TBlock_Input_Connector object_u16_Inverter_1_Phase_L3_Setpoint
Definition: PWM_2C3P2L.h:205
U16 u16_Quarter_Periode
[Counts] Quarter periode
Definition: PWM_2C3P2L.h:247
U16 u16_Periode
[Counts] Periode in counts
Definition: PWM_2C3P2L.h:245
TBlock_Input_Connector object_f32_Switching_Frequency
Definition: PWM_2C3P2L.h:196
virtual VOID Init()
Function block initialisation method.
Definition: PWM_2C3P2L.cpp:138
3-phase 2-level pulse width modulator object class
Definition: PWM_2C3P2L.h:258
U16 u16_Quarter_Periode
[Counts] Quarter periode
Definition: PWM_2C3P2L.h:453
TBlock_Input_Connector object_bool_Enable_Inverter_1
Definition: PWM_2C3P2L.h:377
U16 u16_Half_Periode
[Counts] Half periode in counts
Definition: PWM_2C3P2L.h:452
TBlock_Input_Connector object_f32_Inverter_2_Phase_L3_Voltage
Definition: PWM_2C3P2L.h:386
TBlock_Output_Connector object_bool_Inverter_1_Hardware_Fault
Inverter 1 hardware fault.
Definition: PWM_2C3P2L.h:396
TBlock_Input_Connector object_f32_Inverter_1_Phase_L3_Voltage
Definition: PWM_2C3P2L.h:382
TBlock_Input_Connector object_bool_Enable_Inverter_2
Definition: PWM_2C3P2L.h:378
F32 f32_Clock_Frequency
[Hz] FPGA system clock
Definition: PWM_2C3P2L.h:450
TPWM_3P2L_Registers * struct_Registers
FPGA mapped registers.
Definition: PWM_2C3P2L.h:448
TBlock_Input_Connector object_f32_Inverter_2_Phase_L2_Voltage
Definition: PWM_2C3P2L.h:385
U16 u16_Inverter_2_Deadtime
Inverter 2 deadtime in FPGA clock counts.
Definition: PWM_2C3P2L.h:456
TBlock_Input_Connector object_f32_DC_Bus_Voltage
Definition: PWM_2C3P2L.h:388
TBlock_Output_Connector object_f32_Sample_Time
Definition: PWM_2C3P2L.h:394
TPWM_3P2L()
Constructor method.
Definition: PWM_2C3P2L.cpp:344
U16 u16_Inverter_1_Deadtime
Inverter 1 deadtime in FPGA clock counts.
Definition: PWM_2C3P2L.h:455
TBlock_Input_Connector object_f32_Inverter_2_Phase_L1_Voltage
Definition: PWM_2C3P2L.h:384
TBlock_Input_Connector object_f32_Inverter_1_Phase_L1_Voltage
Definition: PWM_2C3P2L.h:380
virtual VOID Init()
Function block initialisation method.
Definition: PWM_2C3P2L.cpp:438
U16 u16_Periode
[Counts] Periode in counts
Definition: PWM_2C3P2L.h:451
TBlock_Input_Connector object_f32_Switching_Frequency
Definition: PWM_2C3P2L.h:373
TBlock_Input_Connector object_f32_Inverter_1_Phase_L2_Voltage
Definition: PWM_2C3P2L.h:381
virtual VOID Execute()
Function block execution method.
Definition: PWM_2C3P2L.cpp:489
TBlock_Output_Connector object_bool_Inverter_2_Hardware_Fault
Inverter 2 hardware fault.
Definition: PWM_2C3P2L.h:397
virtual ~TPWM_3P2L()
Class destructor method.
Definition: PWM_2C3P2L.cpp:418
VOID Map(TPWM_3P2L_Registers *struct_Registers_Base_Address)
3-phase 3-level pulse width modulator memory mapping.
Definition: PWM_2C3P2L.cpp:426
virtual VOID Send_Information(TProtocol_Base *object_Protocol)
Send information about Function block over communication link protocol.
Definition: PWM_2C3P2L.cpp:748
Definition: Protocol_Base.h:57
Definition: PWM_2C3P2L.h:268
U16 u16_Dead_Time_Inverter_1
Offset 0x02, Dead time register of the inverter 1.
Definition: PWM_2C3P2L.h:283
U16 u16_Reserve_E
Offset 0x0E, Not used.
Definition: PWM_2C3P2L.h:301
U16 u16_Control
Offset 0x00, Twin PWM module control register.
Definition: PWM_2C3P2L.h:273
U16 u16_Reserve_C
Offset 0x0C, Not used.
Definition: PWM_2C3P2L.h:299
I16 i16_Setpoint_Inverter_2_L3
Offset 0x0A, Set point of the inverter 2 leg 3.
Definition: PWM_2C3P2L.h:295
I16 i16_Setpoint_Inverter_2_L1
Offset 0x08, Set point of the inverter 2 leg 1.
Definition: PWM_2C3P2L.h:293
U16 u16_Half_Periode
Offset 0x01, Half PWM periode register.
Definition: PWM_2C3P2L.h:280
I16 i16_Setpoint_Inverter_1_L3
Offset 0x06, Set point of the inverter 1 leg 3.
Definition: PWM_2C3P2L.h:289
U16 u16_Reserve_F
Offset 0x0F, Not used.
Definition: PWM_2C3P2L.h:302
I16 i16_Setpoint_Inverter_2_L2
Offset 0x09, Set point of the inverter 2 leg 2.
Definition: PWM_2C3P2L.h:294
U16 u16_Status
Offset 0x00, Twin PWM module status register.
Definition: PWM_2C3P2L.h:274
U16 u16_Reserve_7
Offset 0x07, Not used.
Definition: PWM_2C3P2L.h:290
U16 u16_Reserve_B
Offset 0x0B, Not used.
Definition: PWM_2C3P2L.h:296
I16 i16_Setpoint_Inverter_1_L1
Offset 0x04, Set point of the inverter 1 leg 1.
Definition: PWM_2C3P2L.h:287
I16 i16_Setpoint_Inverter_1_L2
Offset 0x05, Set point of the inverter 1 leg 2.
Definition: PWM_2C3P2L.h:288
U16 u16_Status_Latch
Offset 0x01, Status register latch.
Definition: PWM_2C3P2L.h:281
U16 u16_Dead_Time_Inverter_2
Offset 0x03, Dead time register of the inverter 2.
Definition: PWM_2C3P2L.h:284
U16 u16_Reserve_D
Offset 0x0D, Not used.
Definition: PWM_2C3P2L.h:300
Definition: PWM_2C3P2L.h:92
I16 i16_Setpoint_Inverter_1_L3
Offset 0x06, Set point of the inverter 1 leg 3.
Definition: PWM_2C3P2L.h:113
I16 i16_Setpoint_Inverter_2_L3
Offset 0x0A, Set point of the inverter 2 leg 3.
Definition: PWM_2C3P2L.h:119
I16 i16_Setpoint_Inverter_2_L2
Offset 0x09, Set point of the inverter 2 leg 2.
Definition: PWM_2C3P2L.h:118
I16 i16_Setpoint_Inverter_1_L1
Offset 0x04, Set point of the inverter 1 leg 1.
Definition: PWM_2C3P2L.h:111
U16 u16_Half_Periode
Offset 0x01, Half PWM periode register.
Definition: PWM_2C3P2L.h:104
U16 u16_Status
Offset 0x00, Twin PWM module status register.
Definition: PWM_2C3P2L.h:98
U16 u16_Reserve_B
Offset 0x0B, Not used.
Definition: PWM_2C3P2L.h:120
U16 u16_Dead_Time_Inverter_1
Offset 0x02, Dead time register of the inverter 1.
Definition: PWM_2C3P2L.h:107
U16 u16_Reserve_C
Offset 0x0C, Not used.
Definition: PWM_2C3P2L.h:123
U16 u16_Reserve_7
Offset 0x07, Not used.
Definition: PWM_2C3P2L.h:114
U16 u16_Reserve_D
Offset 0x0D, Not used.
Definition: PWM_2C3P2L.h:124
U16 u16_Reserve_E
Offset 0x0E, Not used.
Definition: PWM_2C3P2L.h:125
U16 u16_Reserve_F
Offset 0x0F, Not used.
Definition: PWM_2C3P2L.h:126
U16 u16_Control
Offset 0x00, Twin PWM module control register.
Definition: PWM_2C3P2L.h:97
I16 i16_Setpoint_Inverter_2_L1
Offset 0x08, Set point of the inverter 2 leg 1.
Definition: PWM_2C3P2L.h:117
U16 u16_Dead_Time_Inverter_2
Offset 0x03, Dead time register of the inverter 2.
Definition: PWM_2C3P2L.h:108
U16 u16_Status_Latch
Offset 0x01, Status register latch.
Definition: PWM_2C3P2L.h:105
I16 i16_Setpoint_Inverter_1_L2
Offset 0x05, Set point of the inverter 1 leg 2.
Definition: PWM_2C3P2L.h:112