File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ namespace OSHMI_IEC61850_Client
3636{
3737 class Program
3838 {
39- static public string Version = "OSHMI IEC61850 Client Driver Version 0.9 " ;
39+ static public string Version = "OSHMI IEC61850 Client Driver Version 0.10 " ;
4040 static public string HmiConfigFile = "c:\\ oshmi\\ conf\\ hmi.ini" ;
4141 static public string OtherHmiIp = "" ;
4242 static public string ConfigFile = "c:\\ oshmi\\ conf\\ iec61850_client.conf" ;
@@ -778,12 +778,6 @@ static void Process(Iec61850Server srv)
778778
779779 do
780780 {
781- // when device disconnected, will abort and keep trying to reconnect
782- if ( con . GetState ( ) != IedConnectionState . IED_STATE_CONNECTED )
783- {
784- throw new Exception ( srv . name + " Connection error detected!" ) ;
785- }
786-
787781 // foreach (IEC61850_entry entry in srv.entries)
788782 for ( int i = 0 ; i < srv . entries . Count ; i ++ )
789783 {
@@ -924,6 +918,12 @@ static void Process(Iec61850Server srv)
924918 else
925919 // wait 1/10 second
926920 Thread . Sleep ( 100 ) ;
921+
922+ // when device disconnected, will abort and keep trying to reconnect
923+ if ( con . GetState ( ) != IedConnectionState . IED_STATE_CONNECTED )
924+ {
925+ throw new Exception ( srv . name + " Connection error detected!" ) ;
926+ }
927927 }
928928
929929 if ( brcbCountPrev != srv . brcbCount )
You can’t perform that action at this time.
0 commit comments