equal
deleted
inserted
replaced
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): |