def __init__(self, name):
        Converter.__init__(self, name)
        self.can_id_dev = 0x9555AAA4
        self.can_id_heartbeat = 0x9555AAA9

        self.data_in = DataIn()
        self.data_in['name'] = self.name

        self.DC_Bus_Regulation = 0  # droop_control
        self.Power_Control = 1
        self.IDLE = 3
        self.ISOLATED = 4

        self.ISOLATE_INDEX = self.Group2
        self.CONNECT_INDEX = self.Group2

        # limit for DC/DC converter
        self.MAX_IND_CUR = None
        self.MAX_DC_CUR = None
        self.MAX_DC_VOL = None

        self.BAT_LOW_VOL_THRESHOLD = None
        self.DC_BUS_HIGH_VOL_THRESHOLD = None
        self.DC_BUS_LOW_VOL_THRESHOLD = None

        # limit for battery
        self.MAX_BAT_CUR = None
        self.MIN_BAT_VOL = None
        self.MAX_BAT_VOL = None
Beispiel #2
0
	def __init__(self, name):
		Converter.__init__(self, name)
		self.main_window = None
		self.mode = Bic.Mode_Rectifier

		# all the option in bus monitoring mode
		self.bus_monitoring_opt = {
			'vdc_ref': 380,  # set default value
			'iq_ref' : 0,
		}

		# all the option in bus monitoring mode
		self.power_dispatching_opt = {
			'iq_ref': 0,
			'id_ref': 0,
		}
		self.Maximum_AC_Phase_voltage = -2
		self.Protection_Threshold_AC_Phase_voltage = -2
		self.Rated_AC_Phase_voltage = -2

		self.ISOLATE_INDEX = self.Group5
		self.CONNECT_INDEX = self.Group5

		self.data_in = DataIn()
		self.data_in['name'] = self.name

		# can bus setting
		self.can_id_dev = 0x9555AAA2
		self.can_id_heartbeat = 0x9555AAA7
Beispiel #3
0
    def __init__(self, name):
        Converter.__init__(self, name)

        self.can_id_dev = 0x9555AAA3
        self.can_id_heartbeat = 0x9555AAA8

        self.data_in = DataIn()
        self.data_in['name'] = self.name

        self.DC_Voltage_Regulation_MODE = 0
        self.Power_Control_MODE = 1
        self.MPPT_MODE = 2
        self.IDLE_MODE = 3
        self.ISOLATE_MODE = 4

        self.ISOLATE_INDEX = self.Group4
        self.CONNECT_INDEX = self.Group4

        # limit for DC/DC converter
        self.MAX_IND_CUR = None
        self.MAX_DC_CUR = None
        self.MAX_DC_VOL = None
Beispiel #4
0
	def __init__(self, name):
		Converter.__init__(self, name=name)
		self.can_id_dev = 0x9555aaa1
		self.data_in = DataIn()

		self.DETECTING = 0

		self.STABLE = 1
		self.NOT_STABLE = 2

		self.POSITIVE = 1
		self.NEGATIVE = 2

		self.NA = 3

		self.DC_VOL_MAX = 390.0
		self.DC_VOL_MIN = 370.0
		self.DC_STABLE = False

		self.AC_VOL_MAX = 410.0
		self.AC_VOL_MIN = 390.0
		self.AC_STABLE = False

		self.AC_FREQ_MAX = 50.5
		self.AC_FREQ_MIN = 49.5

		self.BAT_VOL_MIN = 180.0
		self.BAT_VOL_MAX = 250.0

		self.LOAD_DC_CT_RELAY_INDEX = 0
		self.LOAD_DC_NCT_RELAY_INDEX = 1

		self.LOAD_AC1P_CT_RELAY_INDEX = 2
		self.LOAD_AC1P_NCT_RELAY_INDEX = 3

		self.LOAD_AC3P_CT_RELAY_INDEX = 4
		self.LOAD_AC3P_NCT_RELAY_INDEX = 5

		self.AC_OUTLET_RELAY_INDEX = 6
		self.DC_OUTLET_RELAY_INDEX = 7

		self.GRID_RELAY_INDEX = 8
		self.DG_RELAY_INDEX = 9

		self.PV1_RELAY_INDEX = 10
		self.PV2_RELAY_INDEX = 11
		self.PV3_RELAY_INDEX = 12

		self.WT_RELAY_INDEX = 13
		self.BAT_RELAY_INDEX = 14

		self.LOAD_DC_CT_RELAY_MASK = 0b0000000000000001
		self.LOAD_DC_NCT_RELAY_MASK = 0b0000000000000010

		self.LOAD_AC1P_CT_RELAY_MASK = 0b0000000000000100
		self.LOAD_AC1P_NCT_RELAY_MASK = 0b0000000000001000

		self.LOAD_AC3P_CT_RELAY_MASK = 0b0000000000010000
		self.LOAD_AC3P_NCT_RELAY_MASK = 0b0000000000100000

		self.AC_OUTLET_RELAY_MASK = 0b0000000001000000
		self.DC_OUTLET_RELAY_MASK = 0b0000000010000000

		self.GRID_RELAY_MASK = 0b0000000100000000
		self.DG_RELAY_MASK = 0b0000001000000000

		self.PV1_RELAY_MASK = 0b0000010000000000
		self.PV2_RELAY_MASK = 0b0000100000000000
		self.PV3_RELAY_MASK = 0b0001000000000000

		self.WT_RELAY_MASK = 0b0010000000000000
		self.BAT_RELAY_MASK = 0b0100000000000000

		self.DC_IS_STABLE_INDEX = 0
		self.AC_IS_STABLE_INDEX = 2
		self.AC_FREQ_STABLE_INDEX = 4

		self.AC_OUTLET_DIR_INDEX = 6
		self.GRID_DIR_INDEX = 8
		self.DG_DIR_INDEX = 10

		self.DC_IS_STABLE_MASK = 0b0000000000000011
		self.AC_IS_STABLE_MASK = 0b0000000000001100
		self.AC_FREQ_STABLE_MASK = 0b0000000000110000

		self.AC_OUTLET_DIR_MASK = 0b0000000011000000
		self.GRID_DIR_MASK = 0b0000001100000000
		self.DG_DIR_MASK = 0b0000110000000000