{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)f42cb5a5-9621-4bd9-a28c-08eb766d7874","ParentGuid":"(Guid)38979afe-e118-47e8-bf79-d324ca9a8cf8","Name":"(string)processAI","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","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}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)IF  NOT __ISVALIDREF(ai) THEN\n\tRETURN;\nEND_IF\n\nai.in_raw := in_rawData;\n\nai.in_reset := in_reset;\nai.in_simEn := in_simEn;\n\nCASE in_aiType OF\n\t0: // Disabled\n\t\tai.scalingRaw.in_rawMin := 0;\n\t\tai.scalingRaw.in_rawMax := 0;\n\t1: //4-20mA\n\t\tai.scalingRaw.in_rawMin := 0;\n\t\tai.scalingRaw.in_rawMax := 27648;\n\t2: //0-20mA\n\t\tai.scalingRaw.in_rawMin := 0;\n\t\tai.scalingRaw.in_rawMax := 27648;\n\t3: //0-10V\n\t\tai.scalingRaw.in_rawMin := 0;\n\t\tai.scalingRaw.in_rawMax := 0;\n\t4: //0-5V\n\t\tai.scalingRaw.in_rawMin := 0;\n\t\tai.scalingRaw.in_rawMax := 0;\nEND_CASE\n\n\nscaled := ANY_TO_REAL(ai.in_raw - ai.scalingRaw.in_rawMin) / ANY_TO_REAL(ai.scalingRaw.in_rawMax - ai.scalingRaw.in_rawMin);\nCASE in_aiType OF\n\t0: // Disabled\n\t\tai.in_signal := 0;\n\t1: //4-20mA\n\t\tai.in_signal := scaled * 16 + 4;\n\t2: //0-20mA\n\t\tai.in_signal := scaled * 20;\n\t3: //0-10V\n\t\tai.in_signal := scaled * 10;\n\t4: //0-5V\n\t\tai.in_signal := scaled * 5;\nEND_CASE\n\nai();","LineInfoPersistence":"(string)f42cb5a5-9621-4bd9-a28c-08eb766d7874_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)METHOD processAI\nVAR_INPUT\n\tai: REFERENCE TO atAi;\n\tin_rawData: UINT;\n\tin_aiType: atOdotAIType;\nEND_VAR\nVAR\n\tscaled: REAL;\nEND_VAR\n","LineInfoPersistence":"(string)f42cb5a5-9621-4bd9-a28c-08eb766d7874_Decl_LineIds"}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","string":"System.String"}}},"FormatVersion":"1.0"}