PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches

Macros

#define PWM_FREQ_Hz   (CONTROL_FREQUENCY_Hz)
 PWM frequency in Hz.
 
#define INVERTER_DEADTIME_ns   (200)
 Dead time (ns) value to be used.
 
#define HAS_DUPLICATE_SWITCH   (PECONTROLLER_CONFIG == PLB_TNPC || PECONTROLLER_CONFIG == PLB_MMC ? 1 : 0)
 In inverters that have four legs per inverter that 4th leg will receive the same signal as the third leg, so they will both be interchangeable.
 
#define RELAY_COUNT   (PECONTROLLER_CONFIG == PLB_TNPC || PECONTROLLER_CONFIG == PLB_MMC ? 0 : (PELAB_VERSION >= 4 ? 4 : 2))
 No of relays in the system.
 
#define LEG_SWITCH_COUNT   (PECONTROLLER_CONFIG == PLB_TNPC ? 4 : 2)
 No of switches per leg.
 
#define VFD_COUNT   (PECONTROLLER_CONFIG == PLB_6PH || PECONTROLLER_CONFIG == PEC_CUSTOM || PECONTROLLER_CONFIG == PLB_MMC ? 2 : 1)
 No of switches per leg.
 
#define VFD1_PIN1   (1)
 1st pin of 1st VFD
 
#define VFD2_PIN1   (VFD1_PIN1 + (HAS_DUPLICATE_SWITCH ? LEG_SWITCH_COUNT * 4 : LEG_SWITCH_COUNT * 3))
 1st pin of 2nd VFD
 
#define DEFAULT_OUTPUT_FREQ   (25)
 The output frequency of the inverter 1st time the application is run. Current value can be updated from screen.
 
#define DEFAULT_NOMINAL_FREQ   (50)
 The nominal frequency of the inverter 1st time the application is run. Current value can be updated from screen.
 
#define DEFAULT_NOMINAL_m   (.7f)
 The nominal modulation index of the inverter 1st time the application is run. Current value can be updated from screen.
 
#define DEFAULT_ACCELERATION   (1.0f)
 The default frequency acceleration.
 
#define MIN_OUTPUT_FREQ   (1.f)
 The minimum allowed value of the output frequency.
 
#define MIN_NOMINAL_FREQ   (1.f)
 The minimum allowed value of the nominal frequency.
 
#define MIN_NOMINAL_m   (.05f)
 The minimum allowed value of the nominal modulation index.
 
#define MIN_ACCELERATION   (0.1f)
 The minimum frequency acceleration.
 
#define MAX_OUTPUT_FREQ   (100.f)
 The maximum allowed value of the output frequency.
 
#define MAX_NOMINAL_FREQ   (100.f)
 The maximum allowed value of the nominal frequency.
 
#define MAX_NOMINAL_m   (1.f)
 The maximum allowed value of the nominal modulation index.
 
#define MAX_ACCELERATION   (1000.f)
 The maximum frequency acceleration.
 

Detailed Description

Use the configurations to control the PWM for the VFDs. Some control for the VFDs are provided on the external touch screen. While the limits and default values may be controlled from here. Make sure to set these values to proper limits to avoid generation of invalid output.

Macro Definition Documentation

◆ LEG_SWITCH_COUNT

#define LEG_SWITCH_COUNT   (PECONTROLLER_CONFIG == PLB_TNPC ? 4 : 2)
Note
This figure depends on the topology. e.g. TNPC requires four switches per leg

◆ PWM_FREQ_Hz

#define PWM_FREQ_Hz   (CONTROL_FREQUENCY_Hz)
Note
Minimum value is 5000

◆ VFD_COUNT

#define VFD_COUNT   (PECONTROLLER_CONFIG == PLB_6PH || PECONTROLLER_CONFIG == PEC_CUSTOM || PECONTROLLER_CONFIG == PLB_MMC ? 2 : 1)
Note
This figure depends on the topology. e.g. TNPC requires four switches per leg