PLCControler.py
changeset 2520 3a1c0c161f80
parent 2457 9deec258ab1a
child 2523 aa7f138648f3
equal deleted inserted replaced
2519:27955f010b23 2520:3a1c0c161f80
   461                     programfile.write(program_text.encode("utf-8"))
   461                     programfile.write(program_text.encode("utf-8"))
   462                     programfile.close()
   462                     programfile.close()
   463                     self.ProgramFilePath = filepath
   463                     self.ProgramFilePath = filepath
   464                 return program_text, errors, warnings
   464                 return program_text, errors, warnings
   465             except PLCGenException as ex:
   465             except PLCGenException as ex:
   466                 errors.append(str(ex))
   466                 errors.append(ex)
   467         else:
   467         else:
   468             errors.append("No project opened")
   468             errors.append("No project opened")
   469         return "", errors, warnings
   469         return "", errors, warnings
   470 
   470 
   471     def DebugAvailable(self):
   471     def DebugAvailable(self):