| | |
| | | }
|
| | | }
|
| | | }
|
| | | |
| | | //离线养护计划
|
| | | private void RunOffLineYHPlan() {
|
| | | BTS61850_OffLineYHPlan plan = m_StatAndParam.bts61850_OffLineYHPlan;
|
| | | long timelong = calculTimelong(plan.OffLineYHstarttime, new Date());
|
| | |
| | | int remain = day_count % plan.OffLineYHOnceCycle; //和整个周期相隔多少时长
|
| | | if(remain == 0 && circle < plan.OffLineYHTimes && sec_count < 120) {
|
| | | if(m_FBS_VCData.m_SysState.WorkState == 6) {
|
| | | System.out.println("启动离线养护计划成功"+Com.getDateTimeFormat(new Date(),Com.DTF_YMDhms));
|
| | | //离线养护已启动
|
| | | plan.successCount = circle+1; //当前成功次数
|
| | | return;
|
| | |
| | | if(plan.successCount == (circle + 1)) {
|
| | | return;
|
| | | }
|
| | | |
| | | //启动离线养护
|
| | | BTS_IEC61850_Write_CO_Node(FBSDeviceName+"/ncdGGIO1.SPCSO13.Oper", true);
|
| | | if(m_FBS_VCData.m_SysState.WorkState == 0) {
|
| | | //只有设备在在线监测状态才能启动离线养护任务
|
| | | //启动离线养护
|
| | | BTS_IEC61850_Write_CO_Node(FBSDeviceName+"/ncdGGIO1.SPCSO13.Oper", true);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|