{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)b6593fc2-a659-4b17-8985-709f79ecf71b","ParentGuid":"(Guid)74ccca2f-50e3-4d5a-9d7a-9fd420284f83","Name":"(string)History","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)b73119f8-72a1-45b5-aa3f-06aa94240e6d"}]}}}}]},"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)//HMI reset to clear data after flock and reset for next flock\n\nIF System.dataReset THEN\n\tclear := TRUE;\n\tg.birdAge := 0;\n\tg.mortality.clear := TRUE;\n\tday := 0;\n\thist.clear();\nELSE\n\tclear := FALSE;\n\tg.mortality.clear := FALSE;\nEND_IF\n\nhist.name := 'Day';\nte.name := 'Temperature';\nhist.data[0] := ADR(te);\nhu.name := 'Humidity';\nhist.data[1] := ADR(hu);\nwater.name := 'Water';\nhist.data[2] := ADR(water);\ntotalFeed.name := 'Feed';\nhist.data[3] := ADR(totalFeed);\ning1feed.name := 'Bin 1';\nhist.data[8] := ADR(ing1Feed);\ning2Feed.name := 'Bin 2';\nhist.data[9] := ADR(ing2Feed);\ning3Feed.name := 'Bin 3';\nhist.data[10] := ADR(ing3Feed);\n\n//Mortality\nmortRatio.name := 'Mortality';\nhist.data[4] := ADR(mortRatio);\t\ndeadTd.name := 'Dead Today';\nhist.data[5] := ADR(deadTd);\nremainTd.name := 'Remaining';\nhist.data[6] := ADR(remainTd);\ntotalDead.name := 'Total Dead';\nhist.data[7] := ADR(totalDead);\t\n\n\nhist();\n\n//Write values to current row\nhist.setValue(g.birdAge);\nte.setValue(g.temp.out_eu);\nwater.setValue(UDINT_TO_DINT(g.waterMtr.dailyDelta));\ntotalFeed.setValue(feed.mixer.totalToday);\ning1Feed.setValue(feed.ingredients[0].usedToday);\ning2Feed.setValue(feed.ingredients[1].usedToday);\ning3Feed.setValue(feed.ingredients[2].usedToday);\nhu.setValue(g.humidity.out_eu);\t\nmortRatio.setValue(g.mortality.mortRatio);\t\ndeadTd.setValue(g.mortality.deadToday);\t\t\nremainTd.setValue(g.mortality.remaining);\t\ntotalDead.setValue(g.mortality.deadTotal);\t\n\n\n//Every 10 seconds shift the data down 1 row\n\nIF atSystem.T_Log_OS THEN\n\thist.shift();\nEND_IF\n","LineInfoPersistence":"(string)b6593fc2-a659-4b17-8985-709f79ecf71b_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)PROGRAM History\nVAR\n\thist: atHistData;\n\tte: atHistRealAggregate; \t//Temperature log\n\thu: atHistRealAggregate; \t//Humidity log\n\twater: atHistDint; \t\t\t//Water usage log\n\ttotalFeed: atHistReal;  \t//Feed usage log\n\ting1Feed: atHistReal;\t\t//Ingredient 1 Total\n\ting2Feed: atHistReal;\t\t//Ingredient 2 Total\t\n\ting3Feed: atHistReal;\t\t//Ingredient 3 Total\t\n\tmortRatio: atHistReal;\t\t//Mortality %\n\tdeadTd: atHistDint;\t\t\t//Daily Dead Record\n\tremainTd: atHistDint;\t\t//Daily Remaining after Deads\n\ttotalDead: atHistDint;\t\t//Total Dead not Including Today\n\tclear: BOOL; \t\t\t\t//Clear all log\n\n\tdataLoaded: BOOL;\n\ti: INT;\n\trtc: Util.SYSTIMEDATE;\n\tDateTimeULINT: ULINT;\n\tresult: Util.RTS_IEC_RESULT;\n\tshiftTrig: R_TRIG;\n\tday: INT; \t\t\t\t//day value for log\nEND_VAR\n","LineInfoPersistence":"(string)b6593fc2-a659-4b17-8985-709f79ecf71b_Decl_LineIds"}}}},"UniqueIdGenerator":"(string)406","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"}