X20 system modules • Analog input modules • X20AP31x1
328
X20 system User's Manual 3.10
ADC_REG_DFT
typedef struct ADC_REG_DFT ADC_REG_DFT;
struct ADC_REG_DFT
{
// Arithmetic ratio, 2 bits integer and 14 bits fractional;
// That is: Harmonic Ratio (%) = Register Value / 163.84
unsigned short DftAI[32]; // phase A, Current, Harmonic Ratio for 2nd to 32nd
// order componentand Total Harmonic Distortion Ratio
unsigned short DftBI[32]; // phase B, Current, Harmonic Ratio for 2nd to 32nd
// order componentand Total Harmonic Distortion Ratio
unsigned short DftCI[32]; // phase C, Current, Harmonic Ratio for 2nd to 32nd
// order componentand Total Harmonic Distortion Ratio
unsigned short DftAV[32]; // phase A, Voltage, Harmonic Ratio for 2nd to 32nd
// order componentand Total Harmonic Distortion Ratio
unsigned short DftBV[32]; // phase B, Voltage, Harmonic Ratio for 2nd to 32nd
// order componentand Total Harmonic Distortion Ratio
unsigned short DftCV[32]; // phase C, Voltage, Harmonic Ratio for 2nd to 32nd
// order componentand Total Harmonic Distortion Ratio
// Format: Need special scaling/conversion.
//The register value * 147.62 = full-scale input signal RMS.
// Current, Fundamental component value = Register Value * 209 * 65.535 / 8388608
// Voltage, Fundamental component value = Register Value * 209 * 655.35 / 8388608
unsigned short DftAI_Fund;
unsigned short DftAV_Fund;
unsigned short DftBI_Fund;
unsigned short DftBV_Fund;
unsigned short DftCI_Fund;
unsigned short DftCV_Fund;
};
// Excerpt of configuration registers used by APROL, readable only by FS-IF
// and with register numbers of registers with the same names.
typedef struct ADC_REG_CFGACT ADC_REG_CFGACT;
struct ADC_REG_CFGACT
{
unsigned short ChanControl;
unsigned short IDispTh;
unsigned short I_RatioA;
unsigned short I_RatioB;
unsigned short I_RatioC;
unsigned short I_RatioN;
unsigned short ZXConfig;
unsigned short SagTh;
unsigned short PhaseLoseTh;
unsigned short INWarnTh0;
unsigned short INWarnTh1;
unsigned short THDNUTh;
unsigned short THDNITh;
unsigned short MeteringMode;
unsigned short PLconstL;
unsigned short PLconstH;
};
// Environment Variables
typedef struct ENV_STATUS ENV_STATUS;
struct ENV_STATUS
{
unsigned long ulUpTime;
unsigned long ulUpCnt;
signed short ssMinTemp;
signed short ssMaxTemp;
unsigned long ulRes[13];
};
Summary of Contents for X20 System
Page 2: ......