ProjectController.py
branchpython3
changeset 3755 ca814b175391
parent 3752 9f6f46dbe3ae
child 3765 88fe6fc9fd38
equal deleted inserted replaced
3754:98a76dbb1b6d 3755:ca814b175391
   804         with open(IECcodepath, "w") as plc_file:
   804         with open(IECcodepath, "w") as plc_file:
   805             plc_file.write(IECCodeContent)
   805             plc_file.write(IECCodeContent)
   806             plc_file.write(POUsIECCodeContent)
   806             plc_file.write(POUsIECCodeContent)
   807 
   807 
   808         hasher = hashlib.md5()
   808         hasher = hashlib.md5()
   809         hasher.update(IECCodeContent)
   809         hasher.update(IECCodeContent.encode())
   810         hasher.update(POUsIECCodeContent)
   810         hasher.update(POUsIECCodeContent.encode())
   811         self.IECcodeDigest = hasher.hexdigest()
   811         self.IECcodeDigest = hasher.hexdigest()
   812 
   812 
   813         return True
   813         return True
   814 
   814 
   815     def _Compile_ST_to_SoftPLC(self):
   815     def _Compile_ST_to_SoftPLC(self):