资源简介

东方电子DF9300通讯管理机(ARM+UCOSII) 包含规约:DLT634-2002 (IEC870-5-101) DLT645-1997 (多功能电能表通讯规约) DNP3.0 IEC870-5-104 (子站,上传接口) 备注:移除了BSP部分,所以无法直接运行。仅供参考学习使用。-Dongfang Electronics DF9300 Communication Manager (ARM+ UCOSII) contains the statute: DLT634-2002 (IEC870-5-101) DLT645-1997 (multi-function watt-hour meter communication protocol) DNP3.0 IEC870-5-104 (sub-station, upload interfaces )

资源截图

代码片段和文件信息

/*------------------------------------------------------------------*/
/*模块名称:fatest.cpp                                             */
/*模块功能:馈线故障检测                                 */
/*编写日期:2004年8月                                          */
/*编写者:  dingding */
/*------------------------------------------------------------------*/

#include “includes.h“
#include “9311fa.h“



//函数声明
#ifdef DF9311_FDRTASK
extern void FdrTask(struct SysPort *Info);
#endif

//全局变量
extern INT8U TGSH;
extern BOOL ACTING;
extern SOEtmp_t *SOEtmp;
extern struct MyConfig MyCfg;
extern struct SysConfig SysCfg;
extern struct YCPara_t YCPara;
extern struct LB_t Lb[MAXYCFD];
extern INT16U YKOnCounter;

extern OS_EVENT *SemFA;
extern OS_EVENT *SemFAOneS;
extern struct YCTempData YCTemp[MAXYCFD];

//变量定义
#ifdef CHINESEINFO
char *FDInfo[] = \
{“正常““检失电(失压且失流)...““失电(失压且失流)““检过流...““空闲““短路(过流)““检电压(流)恢复正常...“
“检变电站断路器跳闸...““变电站断路器故障跳闸““变电站断路器重合成功““变电站断路器跳闸闭锁““检励磁涌流...“};
#else
char *FDInfo[] = \
{“Normal““Qualify NoUI...““NoUI““Qualify OverI...““Idle““I Over Limit““Qualify Recovery...“
“Qualify Breaker...““Breaker Operation““Qualify Breaker Recovery““Lock Out““Magnet Restraint...“};
#endif

extern INT16U FDNum;
INT16U FDOTHERYXNUM; //FTU所含馈线数
struct YKDelayMem YKMem;
struct Feeder_t *Feeder;
struct FDRunInfo_t *FDRunInfo;
struct LimitValue_t *LimitValue;
INT32U *TempYc;
INT16U TestCounter ReCounter;
BOOL FTest;

#ifdef FUNCTION_CN
struct CNInfo CnInfo[2];
#endif



/*------------------------------------------------------------------*/
/*函数名称:FATask(void *pdata) */
/*函数功能:故障检测任务 */
/*------------------------------------------------------------------*/
void FATask(struct SysPort *Info)
{
BOOL dd = FALSE rc = FALSE;
INT8U err i;
INT16U events;

memset (&YKMem 0 sizeof (struct YKDelayMem));
//读入馈线数量
if (TGSH)
{
FDOTHERYXNUM = DEFBINUM * 2 + OTHERSOFTBINUM;
}
else
{
FDOTHERYXNUM = DEFBINUM + OTHERSOFTBINUM;
}

//判断进入何种故障检测
for (i=0; i {
if (MyCfg.Fd[i].Control & FDR_ENABLE)
dd = TRUE;
}
for (i=0; i {
if (dd && (MyCfg.Fd[i].Control & FAULTD_ENABLE))
{
#ifdef CHINESEINFO
ErrorInfo(FAID “故障检测配置冲突,任务终止...“);
#else
ErrorInfo(FAID “FA Task failed...“);
#endif

OSTaskDel(FAID);
}
}


OSTimeDlyHMSM(0 0 0 20);

//进入电压型故障检测
if (dd)
{
#ifdef DF9311_FDRTASK
FdrTask(Info);
#endif
OSTaskDel(FAID);
}

//参数初始化
rc = InitFAPara();

#ifdef FUNCTION_CN
memset (&CnInfo[0] 0 FDNum * sizeof (struct CNInfo));
#endif


while (1)
{
events = OSFlagPend(Info->Event FYCRDY+TIME100MS+FCOS
OS_FLAG_WAIT_SET_ANY+OS_FLAG_CONSUME 1 &err);



if (events & FYCRDY)
{

//FA
if (rc)
{
ReadYc();
FaultDetect();
CheckReClose();
}

//延时遥控
if (YKMe

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      37343  2007-06-25 16:20  DF9311通讯机(ARM_UCOSII)\APP\9311fa.c

     文件      38754  2007-06-08 11:29  DF9311通讯机(ARM_UCOSII)\APP\9311fa.c-old

     文件       6263  2005-11-01 15:43  DF9311通讯机(ARM_UCOSII)\APP\9311fa.h

     文件      28140  2006-10-11 09:41  DF9311通讯机(ARM_UCOSII)\APP\9311fdr.c

     文件       4318  2006-03-20 13:46  DF9311通讯机(ARM_UCOSII)\APP\9311fdr.h

     文件      12146  2007-06-29 16:29  DF9311通讯机(ARM_UCOSII)\APP\9311main.c

     文件       1575  2007-07-02 08:33  DF9311通讯机(ARM_UCOSII)\APP\9311main.h

     文件      14528  2006-11-15 16:28  DF9311通讯机(ARM_UCOSII)\DLT634-2002\iec101def.h

     文件       1134  2006-05-19 09:34  DF9311通讯机(ARM_UCOSII)\DLT634-2002\IEC101WH.H

     文件     123824  2006-12-18 11:03  DF9311通讯机(ARM_UCOSII)\DLT634-2002\SECAPP.C

     文件       9467  2006-12-14 09:53  DF9311通讯机(ARM_UCOSII)\DLT634-2002\SECAPP.H

     文件      36916  2006-12-15 12:56  DF9311通讯机(ARM_UCOSII)\DLT634-2002\SECDlink.C

     文件       3606  2006-12-15 13:00  DF9311通讯机(ARM_UCOSII)\DLT634-2002\SECDlink.H

     文件      22570  2006-12-05 16:28  DF9311通讯机(ARM_UCOSII)\DLT645-1997\dlt645pri.c

     文件       5761  2006-12-01 09:43  DF9311通讯机(ARM_UCOSII)\DLT645-1997\dlt645pri.h

     文件      56162  2006-12-04 11:43  DF9311通讯机(ARM_UCOSII)\DNP\Dnpsec.c

     文件       9397  2006-08-23 11:48  DF9311通讯机(ARM_UCOSII)\DNP\dnpsec.h

     文件       9705  2006-05-19 09:22  DF9311通讯机(ARM_UCOSII)\IEC870-5-104\104Def.h

     文件      49943  2006-12-14 11:52  DF9311通讯机(ARM_UCOSII)\IEC870-5-104\104SA.c

     文件       4338  2006-06-21 17:16  DF9311通讯机(ARM_UCOSII)\IEC870-5-104\104SA.h

     文件      15525  2006-12-07 09:29  DF9311通讯机(ARM_UCOSII)\IEC870-5-104\104SL.c

     文件       2910  2006-05-17 15:35  DF9311通讯机(ARM_UCOSII)\IEC870-5-104\104SL.h

     文件     190996  2008-03-04 16:20  DF9311通讯机(ARM_UCOSII)\output\output.mcp

     文件       3602  2008-03-04 16:20  DF9311通讯机(ARM_UCOSII)\output\output_Data\CWSettingsWindows.stg

     文件     272840  2004-09-14 09:44  DF9311通讯机(ARM_UCOSII)\output\output_Data\DebugRel\output.axf

     文件       2404  2006-12-12 10:11  DF9311通讯机(ARM_UCOSII)\ucos_ii\app_cfg.h

     文件       1807  2008-02-16 14:48  DF9311通讯机(ARM_UCOSII)\ucos_ii\includes.h

     文件       9969  2008-02-16 15:47  DF9311通讯机(ARM_UCOSII)\ucos_ii\os_cfg.h

     文件      68976  2006-06-02 18:13  DF9311通讯机(ARM_UCOSII)\ucos_ii\OS_CORE.C

     文件       5528  2008-02-22 15:26  DF9311通讯机(ARM_UCOSII)\ucos_ii\Os_cpu.h

............此处省略31个文件信息

评论

共有 条评论