{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)000eef19-ec89-4611-a306-914ef32ba804","ParentGuid":"(Guid)74ccca2f-50e3-4d5a-9d7a-9fd420284f83","Name":"(string)atTherm2","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)829a18f2-c514-4f6e-9634-1df173429203","@Value":{"@Type":"829a18f2","@Value":{"ParentObjects":{"@Type":"fa2ee218:IDictionary","@Value":[{"@Key":"(Guid)d9b2b2cc-ea99-4c3b-aa42-1e5c49e65b84","@Value":"(Guid)0851b44a-1b49-43a2-a171-a13af8fb6828"}]}}}}]},"TypeGuid":"(Guid)6f9dac99-8de1-4efc-8465-68ac443b7d08","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"6f9dac99","@Value":{"SpecialFunc":{"@Type":"0db3d7bb:Enum","@Value":"None"},"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)//Therm2 Expects to get the actual resistance in ohms, does not include calculations to get the resistence\n\n\n//Get the correct coeficients for the calc\n//1=3k, 2=10k, 3=20k, 4=1200k, 5=1700k\nIF ThermType=1 OR ThermType=0 THEN\n\tA := 1.405530255E-3;\n\tB := 2.368554124E-4;\n\tC := 1.015828055E-7;\nELSIF ThermType=2 THEN\n\tA := 0.00112924;\n\tB := 0.000234108;\n\tC := 8.77546E-008;\nELSIF ThermType=3 THEN\n\tA := 0.00097142;\n\tB := 0.00023268;\n\tC := 8.0591E-008;\nELSIF ThermType=4 THEN\n\tA := 0.00137317;\n\tB := 0.000277226;\n\tC := 1.99741E-007;\nELSIF ThermType=5 THEN\n\tA := 0.00144606;\n\tB := 0.000268363;\n\tC := 1.64356E-007;\nEND_IF;\n\n\nIF Ohms < 50 OR Ohms > 100000 THEN\n    //If Raw value out of range then force fault value\n    euRaw := -999;\nELSE\n    //Use Steinhart equation to calculate temperature from resistance\n    euRaw := LREAL_TO_REAL(1 / (A + (B * LN(Ohms)) + (C * EXPT(LN(Ohms),3))) - 273.15);\nEND_IF\n\natTherm2 := euRaw;","LineInfoPersistence":"(string)000eef19-ec89-4611-a306-914ef32ba804_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)FUNCTION atTherm2 : REAL\nVAR_INPUT\n\tOhms: REAL;\n\tThermType: INT;\nEND_VAR\nVAR\n\teuRaw: REAL;\n\tA: REAL;\n\tB: REAL;\n\tC: REAL;\nEND_VAR\nVAR_OUTPUT\n\teu: REAL;\nEND_VAR\n","LineInfoPersistence":"(string)000eef19-ec89-4611-a306-914ef32ba804_Decl_LineIds"}}}},"UniqueIdGenerator":"(string)97","POULevel":{"@Type":"8e575c5b:Enum","@Value":"Standard"},"ChildObjectGuids":{"@Type":"ArrayList:IList","@Value":[]},"AddAttributeSubsequent":"(bool)False"}},"TypeInfos":{"0db3d7bb":"{0db3d7bb-cde0-4416-9a7b-ce49a0124323}","3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","6f9dac99":"{6f9dac99-8de1-4efc-8465-68ac443b7d08}","8e575c5b":"{8e575c5b-1d37-49c6-941b-5c0ec7874787}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","ArrayList":"System.Collections.ArrayList","bool":"System.Boolean","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","string":"System.String"}}},"FormatVersion":"1.0"}