{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)312af19e-aa68-433b-a5bb-19ff27d48d9f","ParentGuid":"(Guid)74ccca2f-50e3-4d5a-9d7a-9fd420284f83","Name":"(string)atVFDABBSS","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)901027e0-f38f-49f6-b3d3-9419cc4298a5"}]}}}}]},"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)//Extends atVFDBase\n//2024-11-22 ATM put into sequence - NOT TESTED\n\n// Register calls need to be updated. dont know addresses -------------------------------------\n// ---------------------------FIX ME-----------------------------------------------------------\n// --------------------------------------------------------------------FIX ME------------------\nreadHolding(\n\tclient := client,\n\tdata := mbsIn,\n\tin_startAddr := 0,\n\tin_quantity := 1,\n\tin_interval := in_pollInterval,\n\tin_unitId := in_unitId,\n);\n\nreadHoldingB(\n\tclient := client,\n\tdata := mbsIn,\n\tin_startAddr := 0,\n\tin_dataOffset := 1,\n\tin_quantity := 10,\n\tin_interval := in_pollInterval,\n\tin_unitId := in_unitId,\n);\n\nwriteHolding(\n\tclient := client,\n\tdata := mbsOut,\n\tin_startAddr := 0,\n\tin_quantity := 1,\n\tin_interval := in_pollInterval,\n\tin_unitId := in_unitId,\n);\n\n//Base class work\nSUPER^();\n\nIF in_simEn THEN\n\tRETURN;\nEND_IF\n\n//Copy status from modbus to variables\nout_run := mbsIn[0].6;\nout_uts := mbsIn[0].7;\nout_speedActHz := 0;\nout_current := WORD_TO_REAL(mbsIn[4]) / 10;\n\n//Copy control from variables to modbus\n//Auto\nmbsOut[0].0 := out_fwdCmd;\nmbsOut[0].1 := out_fwdCmd;\nmbsOut[0].2 := in_Reset AND NOT out_fwdCmd;\nmbsOut[0].3 := TRUE;\n\n\n//Force speed to 100% since this is a soft start\nin_autoSpeedRef := 100;\nin_manSpeedRef := 100;\n\nIF FALSE THEN\n\t// Motor Overload\n\tintFaultVFDId := atVFDFaultCode.mtrOvld;\nELSIF FALSE THEN\n\t// Inverter Overload\n\tintFaultVFDId := atVFDFaultCode.invOvld;\nELSIF FALSE THEN\n\t// Under Volt\n\tintFaultVFDId := atVFDFaultCode.underVolt;\nELSIF FALSE THEN\n\t// Over Volt\n\tintFaultVFDId := atVFDFaultCode.overVolt;\nELSIF FALSE THEN\n\t// Over Current\n\tintFaultVFDId := atVFDFaultCode.overCur;\nELSIF FALSE THEN\n\t// Ground Fault\n\tintFaultVFDId := atVFDFaultCode.gndFlt;\nELSIF FALSE THEN\n\t// Power Loss\n\tintFaultVFDId := atVFDFaultCode.powerLoss;\nELSIF FALSE THEN\n\t// outPhaseLoss\n\tintFaultVFDId := atVFDFaultCode.outPhaseLoss;\nELSIF mbsIn[0].1 THEN\n\t// Internal Fault\n\tintFaultVFDId := atVFDFaultCode.internalFlt;\nELSIF FALSE THEN\n\t// Overheat\n\tintFaultVFDId := atVFDFaultCode.overHeat;\nELSIF FALSE THEN\n\t// Comm Fault\n\tintFaultVFDId := atVFDFaultCode.commFlt;\nELSIF mbsIn[10] <> 0 THEN\n\t// Unknown Fault\n\tintFaultVFDId := atVFDFaultCode.unknown;\nEND_IF","LineInfoPersistence":"(string)312af19e-aa68-433b-a5bb-19ff27d48d9f_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string){attribute 'no_assign'}\nFUNCTION_BLOCK atVFDABBSS EXTENDS atVFDModbus\nVAR\n    {attribute 'symbol' := 'none'}\n\tmbsIn: ARRAY[0..10] OF UINT;\n    {attribute 'symbol' := 'none'}\n\tmbsOut: ARRAY[0..0] OF UINT;\n\n    {attribute 'symbol' := 'none'}\n\treadHoldingB: atMbReqReadHolding;\nEND_VAR\n\n","LineInfoPersistence":"(string)312af19e-aa68-433b-a5bb-19ff27d48d9f_Decl_LineIds"}}}},"UniqueIdGenerator":"(string)504","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"}