|
@@ -100,7 +100,7 @@ enum MODBUS_MODE
|
|
|
#define _SWITCH_T_AC_RESET_CONSUMPTION_PH 0x189C //重置PH耗电量
|
|
#define _SWITCH_T_AC_RESET_CONSUMPTION_PH 0x189C //重置PH耗电量
|
|
|
#define _SWITCH_T_AC_RESET_CONSUMPTION 0x18A5 //重置all耗电量
|
|
#define _SWITCH_T_AC_RESET_CONSUMPTION 0x18A5 //重置all耗电量
|
|
|
#define _SWITCH_T_AC_BREAKER_INFO 0x17D4 //三相控制板开关检测信息
|
|
#define _SWITCH_T_AC_BREAKER_INFO 0x17D4 //三相控制板开关检测信息
|
|
|
-
|
|
|
|
|
|
|
+#define _SWITCH_T_AC_PH_CTRLMODE 0x18C4 //三相控制板单个通道的控制模式
|
|
|
|
|
|
|
|
int g_switch_init(int addr_max);
|
|
int g_switch_init(int addr_max);
|
|
|
int g_switch_get_type(void* manger,int saddr, int* type,int* chn,int nPowerType);
|
|
int g_switch_get_type(void* manger,int saddr, int* type,int* chn,int nPowerType);
|
|
@@ -183,6 +183,9 @@ int g_switch_set_t_ac_ctrl(void* manger,int saddr,unsigned short* sts);
|
|
|
int g_switch_set_t_ac_reset(void* manger,int saddr);
|
|
int g_switch_set_t_ac_reset(void* manger,int saddr);
|
|
|
int g_switch_set_t_ac_phchn_reset(void* manger,int saddr,int nChn);
|
|
int g_switch_set_t_ac_phchn_reset(void* manger,int saddr,int nChn);
|
|
|
int g_switch_set_t_ac_chn_reset(void *manger, int saddr, int nChn);
|
|
int g_switch_set_t_ac_chn_reset(void *manger, int saddr, int nChn);
|
|
|
|
|
+//ctrltype:0可控,1不可控(常开),2不可控(常关)
|
|
|
|
|
+int g_switch_set_t_ac_ph_ctrl_mode(void *manger,int saddr,int nChn,short CtrlType);
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//GPIO通道状态
|
|
//GPIO通道状态
|
|
|
int g_switch_get_gpio_status(int ngpio,int* status);
|
|
int g_switch_get_gpio_status(int ngpio,int* status);
|