{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)d7b82592-6c14-4696-ae00-255c92230919","ParentGuid":"(Guid)74ccca2f-50e3-4d5a-9d7a-9fd420284f83","Name":"(string)System","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)\n//   ---Increments BirdAge every Midnight---\nIF atSystem.MidnightTrig.Q THEN\n\tg.birdAge := g.birdAge + 1;\nEND_IF\n\n//   ---LongPress for History Reset and then Latch Reset on for 2 seconds before reseting---\nIF atGH.dataClear THEN\n\treset := TRUE;\nELSE\n\treset := FALSE;\nEND_IF\nresetTMR(IN := reset, PT := T#5S);\nresetLatch(SET := resetTMR.Q, RESET1 := resetRst.Q);\nresetRst(IN := resetLatch.Q1, PT := T#2S);\ndataReset := resetLatch.Q1;\n\n\nalm[0] := g.staticPrs.faults.chan.out_default;\nalm[1] := g.humidity.faults.chan.out_default;\nalm[2] := g.outTemp.faults.chan.out_default;\nalm[3] := g.temp1.faults.chan.out_default;\nalm[4] := g.temp2.faults.chan.out_default;\nalm[5] := g.temp3.faults.chan.out_default;\nalm[6] := g.temp4.faults.chan.out_default;\nalm[7] := g.dumpScaleLc.faults.chan.out_default;\nalm[8] := g.temp1.limits.hi.alm.out_default;\nalm[9] := g.temp2.limits.hi.alm.out_default;\nalm[10] := g.temp3.limits.hi.alm.out_default;\nalm[11] := g.temp4.limits.hi.alm.out_default;\nalm[12] := g.temp4.limits.lo.alm.out_default;\nalm[13] := g.temp3.limits.lo.alm.out_default;\nalm[14] := g.temp2.limits.lo.alm.out_default;\nalm[15] := g.temp1.limits.lo.alm.out_default;\nalm[16] := g.humidity.limits.hi.alm.out_default;\nalm[17] := g.staticPrs.limits.hi.alm.out_default;\nalm[18] := g.staticPrs.limits.lo.alm.out_default;\nalm[19] := g.pwrFailureLine.out_val;\nalm[20] := g.pwrFailureUPS.out_val;\nalm[21] := Water.highFlow;\nalm[22] := feed.augerRunTMRset.Q1;\nalm[23] := g.inletdamper.ai.faults.chan.out_default;\nalm[24] := g.inletdamper.stalled.out_unlatched;\nalm[25] := feed.mixer.timeoutWhileFilling.out_default;\nalm[26] := feed.mixer.timeoutWhileDumping.out_default;\nalm[27] := feed.mixer.noPremixIngredient.out_default;\n// alm[28]\n// alm[29]\n// alm[30]\n\nout_activeAlmCnt := 0;\n\nFOR i := 0 TO DINT_TO_INT(UPPER_BOUND(alm,1)) DO\n    // Check if the output is active\n    IF alm[i] THEN\n        // Count this active output\n        out_activeAlmCnt := out_activeAlmCnt + 1;\n    END_IF;\nEND_FOR;\n\n\natGH.almActive := (out_activeAlmCnt > 0);\natGH.almCount := out_activeAlmCnt;\n\n ","LineInfoPersistence":"(string)d7b82592-6c14-4696-ae00-255c92230919_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)PROGRAM System\nVAR_OUTPUT\n\tdataReset: BOOL;\nEND_VAR\nVAR\n\tresetLatch: RS;\n\tresetTMR: TON;\n\tresetRst: TON;\n\treset: BOOL;\n\talm: ARRAY[0..27] OF BOOL;\n\ti: INT;\n\tout_activeAlmCnt: REAL;\nEND_VAR","LineInfoPersistence":"(string)d7b82592-6c14-4696-ae00-255c92230919_Decl_LineIds"}}}},"UniqueIdGenerator":"(string)126","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"}