{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)1b125391-3d77-4c24-b1f4-080298d3c8b3","ParentGuid":"(Guid)74ccca2f-50e3-4d5a-9d7a-9fd420284f83","Name":"(string)atGadget","Properties":{"@Type":"2c41fa04:IDictionary","@Value":[{"@Key":"(Guid)24568a24-c491-472c-a21f-ee5d33859fab","@Value":{"@Type":"24568a24","@Value":{"MemoryReserveForOnlineChange":"(int)1024","ExcludeFromBuild":"(bool)False","External":"(bool)False","EnableSystemCall":"(bool)False","CompilerDefines":"(string)","LinkAlways":"(bool)False","Undefines":{"@Type":"[string]","@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)567aa425-b4c5-4099-adef-e16c4c3a4f6f"}]}}}}]},"TypeGuid":"(Guid)6f9dac99-8de1-4efc-8465-68ac443b7d08","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"24568a24":"{24568a24-c491-472c-a21f-ee5d33859fab}","2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","829a18f2":"{829a18f2-c514-4f6e-9634-1df173429203}","bool":"System.Boolean","fa2ee218":"{fa2ee218-a39b-4b6d-b249-49dbddbd168a}","Guid":"System.Guid","int":"System.Int32","string":"System.String"}},"object":{"Graph":{"@Type":"6f9dac99","@Value":{"SpecialFunc":{"@Type":"0db3d7bb:Enum","@Value":"None"},"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)//Derived functions must call \"SUPER^()\"\n//2024-12-12 CWD Copy atMotor to make atGadget\n//2024-12-29 CWD Use out_autoRun instead of in_autoRun\n\nSUPER^();\n\n//Add to gadget list\nIF NOT addedToGadgetList THEN\n\tdevices.addGadget(THIS);\n\taddedToGadgetList := TRUE;\nEND_IF\n\n// set sequence data\nout_ready := seq.out_ready OR (NOT in_autoMode AND uts);\nseq.in_runStatus := NOT in_seqDisable AND in_autoMode AND out_run;\nseq.in_uts := NOT in_seqDisable AND uts;\n\n\n// Motor Control\n//Most motor control is handled in derived function\n\n// Force stop the motor if its running to long in manual.\n// **** manStopTmr.Q needs to be handled in derived function ****\nmanStopTrig := NOT out_autoRun AND out_run AND in_manOnMaxSP > T#0S;\nmanStopTmr(IN:=manStopTrig,PT:= in_manOnMaxSP); //timer to turn of manual run after delay\n\n\n","LineInfoPersistence":"(string)1b125391-3d77-4c24-b1f4-080298d3c8b3_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)FUNCTION_BLOCK ABSTRACT atGadget EXTENDS atDevice\nVAR_INPUT\n\tin_extUTS: BOOL := TRUE; // Motor is up to speed. External input (e.g speed sensor) - Defaults true\nEND_VAR\nVAR_INPUT PERSISTENT\n\tin_manOnMaxSP: TIME := T#0S; //Maximum manual on time\nEND_VAR\nVAR_OUTPUT\n\tout_dlyTimeRem: TIME; //Delay time remaining for start or stop delay\n\tout_dlyTimeAct: BOOL; //Delay timer is active\t\nEND_VAR\n\nVAR\n    {attribute 'symbol' := 'none'}\n\tmanStopTmr: TON;\n    {attribute 'symbol' := 'none'}\n\tmanStopTrig: BOOL;\n    {attribute 'symbol' := 'none'}\n\tmyStatus: atDeviceStatus;\n    {attribute 'symbol' := 'none'}\n\taddedToGadgetList: BOOL; //This device is added to gadget list\n    {attribute 'symbol' := 'none'}\n\t\nEND_VAR\n","LineInfoPersistence":"(string)1b125391-3d77-4c24-b1f4-080298d3c8b3_Decl_LineIds"}}}},"UniqueIdGenerator":"(string)361","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"}