{ "block_name": "BlenderRun_ProdTime", "block_number": 2040, "language": "LAD", "block_comment": "", "interface": { "Temp": [ { "name": "m1MinONS", "datatype": "Bool" }, { "name": "m1HourONS", "datatype": "Bool" }, { "name": "Buffer", "datatype": "Bool" }, { "name": "mRunMin", "datatype": "Bool" }, { "name": "mRunHr", "datatype": "Bool" }, { "name": "I_DIRunning_sec", "datatype": "DInt" }, { "name": "I_DIRunning_min", "datatype": "DInt" }, { "name": "MOD60", "datatype": "DInt" } ], "Return": [ { "name": "Ret_Val", "datatype": "Void" } ] }, "networks": [ { "id": "9", "title": "Seconds", "comment": "", "logic": [ { "instruction_uid": "26", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 26: \"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, { "instruction_uid": "27", "type": "Contact_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "26", "source_instruction_type": "Contact", "source_pin": "out" }, "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 27: \"Procedure_Variables\".\"Blender_Run\".\"Running\" AND \"CLK_1.0S\"" }, { "instruction_uid": "28", "type": "Add_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "27", "source_instruction_type": "Contact", "source_pin": "out" }, "in1": { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gSLIM_Sec\"" }, "in2": { "uid": "24", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 } }, "outputs": { "out": [ { "uid": "25", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gSLIM_Sec\"" } ] }, "scl": "IF \"Procedure_Variables\".\"Blender_Run\".\"Running\" AND \"CLK_1.0S\" THEN\n \"Blender_Variables_Pers\".\"gSLIM_Sec\" := \"Blender_Variables_Pers\".\"gSLIM_Sec\" + 1;\nEND_IF;" } ] }, { "id": "1A", "title": "Reset Hours", "comment": "", "logic": [ { "instruction_uid": "24", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"SLIM_Variables\".\"ResetHour\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 24: \"SLIM_Variables\".\"ResetHour\"" }, { "instruction_uid": "25", "type": "Move_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "24", "source_instruction_type": "Contact", "source_pin": "out" }, "in": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 } }, "outputs": { "out1": [ { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gSLIM_Sec\"" } ] }, "scl": "IF \"SLIM_Variables\".\"ResetHour\" THEN\n \"Blender_Variables_Pers\".\"gSLIM_Sec\" := 0;\nEND_IF;" } ] }, { "id": "2B", "title": "Seconds Counter", "comment": "", "logic": [ { "instruction_uid": "26", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderBlending\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 26: \"gBlenderBlending\"" }, { "instruction_uid": "27", "type": "Contact_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "26", "source_instruction_type": "Contact", "source_pin": "out" }, "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 27: \"gBlenderBlending\" AND \"CLK_1.0S\"" }, { "instruction_uid": "28", "type": "Add_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "27", "source_instruction_type": "Contact", "source_pin": "out" }, "in1": { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" }, "in2": { "uid": "24", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 } }, "outputs": { "out": [ { "uid": "25", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" } ] }, "scl": "IF \"gBlenderBlending\" AND \"CLK_1.0S\" THEN\n \"Blender_Variables_Pers\".\"gProdSec\" := \"Blender_Variables_Pers\".\"gProdSec\" + 1;\nEND_IF;" } ] }, { "id": "3C", "title": "Minute", "comment": "", "logic": [ { "instruction_uid": "24", "type": "Eq_scl", "inputs": { "in1": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" }, "in2": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 60 }, "pre": { "type": "powerrail" } }, "outputs": {}, "scl": "// Comparison Eq 24: \"Blender_Variables_Pers\".\"gProdSec\" = 60" }, { "instruction_uid": "25", "type": "Coil_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "24", "source_instruction_type": "Eq", "source_pin": "out" }, "operand": { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"m1MinONS\"" } }, "outputs": {}, "scl": "\"m1MinONS\" := \"Blender_Variables_Pers\".\"gProdSec\" = 60;" } ] }, { "id": "4D", "title": "Minute Counter", "comment": "", "logic": [ { "instruction_uid": "27", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1MinONS\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 27: \"m1MinONS\"" }, { "instruction_uid": "28", "type": "Move_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "27", "source_instruction_type": "Contact", "source_pin": "out" }, "in": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 } }, "outputs": { "out1": [ { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gProdSec\" := 0;" }, { "instruction_uid": "29", "type": "Add_scl", "inputs": { "in1": { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" }, "in2": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_uid": "27", "source_instruction_type": "Contact", "source_pin": "out" } }, "outputs": { "out": [ { "uid": "26", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gProdMin\" := \"Blender_Variables_Pers\".\"gProdMin\" + 1;" } ] }, { "id": "5E", "title": "Hour", "comment": "", "logic": [ { "instruction_uid": "24", "type": "Eq_scl", "inputs": { "in1": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" }, "in2": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 60 }, "pre": { "type": "powerrail" } }, "outputs": {}, "scl": "// Comparison Eq 24: \"Blender_Variables_Pers\".\"gProdMin\" = 60" }, { "instruction_uid": "25", "type": "Coil_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "24", "source_instruction_type": "Eq", "source_pin": "out" }, "operand": { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"m1HourONS\"" } }, "outputs": {}, "scl": "\"m1HourONS\" := \"Blender_Variables_Pers\".\"gProdMin\" = 60;" } ] }, { "id": "6F", "title": "Hour Counter", "comment": "", "logic": [ { "instruction_uid": "30", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1HourONS\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 30: \"m1HourONS\"" }, { "instruction_uid": "31", "type": "Move_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "30", "source_instruction_type": "Contact", "source_pin": "out" }, "in": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 } }, "outputs": { "out1": [ { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gProdMin\" := 0;" }, { "instruction_uid": "32", "type": "Add_scl", "inputs": { "in1": { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdHour\"" }, "in2": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_uid": "30", "source_instruction_type": "Contact", "source_pin": "out" } }, "outputs": { "out": [ { "uid": "26", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdHour\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gProdHour\" := \"Blender_Variables_Pers\".\"gProdHour\" + 1;" }, { "instruction_uid": "33", "type": "Add_scl", "inputs": { "in1": { "uid": "27", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gBlendingMaintHour\"" }, "in2": { "uid": "28", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_uid": "30", "source_instruction_type": "Contact", "source_pin": "out" } }, "outputs": { "out": [ { "uid": "29", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gBlendingMaintHour\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gBlendingMaintHour\" := \"Blender_Variables_Pers\".\"gBlendingMaintHour\" + 1;" } ] }, { "id": "80", "title": "Counter reset", "comment": "", "logic": [ { "instruction_uid": "29", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderCIPMode\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 29: \"gBlenderCIPMode\"" }, { "instruction_uid": "30", "type": "Contact_scl", "inputs": { "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderRinseMode\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 30: \"gBlenderRinseMode\"" }, { "instruction_uid": "31", "type": "O_scl", "inputs": { "in1": { "type": "connection", "source_instruction_uid": "29", "source_instruction_type": "Contact", "source_pin": "out" }, "in2": { "type": "connection", "source_instruction_uid": "30", "source_instruction_type": "Contact", "source_pin": "out" } }, "outputs": {}, "scl": "// Logic O 31: \"gBlenderCIPMode\" OR \"gBlenderRinseMode\"" }, { "instruction_uid": "32", "type": "Move_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "31", "source_instruction_type": "O", "source_pin": "out" }, "in": { "uid": "23", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 } }, "outputs": { "out1": [ { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gProdSec\" := 0;" }, { "instruction_uid": "33", "type": "Move_scl", "inputs": { "in": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 }, "en": { "type": "connection", "source_instruction_uid": "31", "source_instruction_type": "O", "source_pin": "out" } }, "outputs": { "out1": [ { "uid": "26", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gProdMin\" := 0;" }, { "instruction_uid": "34", "type": "Move_scl", "inputs": { "in": { "uid": "27", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 }, "en": { "type": "connection", "source_instruction_uid": "31", "source_instruction_type": "O", "source_pin": "out" } }, "outputs": { "out1": [ { "uid": "28", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdHour\"" } ] }, "grouped": true, "scl": "\"Blender_Variables_Pers\".\"gProdHour\" := 0;" } ] }, { "id": "91", "title": "Running Seconds", "comment": "", "logic": [ { "instruction_uid": "26", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 26: \"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, { "instruction_uid": "27", "type": "Contact_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "26", "source_instruction_type": "Contact", "source_pin": "out" }, "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 27: \"Procedure_Variables\".\"Blender_Run\".\"Running\" AND \"CLK_1.0S\"" }, { "instruction_uid": "28", "type": "Add_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "27", "source_instruction_type": "Contact", "source_pin": "out" }, "in1": { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningSeconds\"" }, "in2": { "uid": "24", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 } }, "outputs": { "out": [ { "uid": "25", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningSeconds\"" } ] }, "scl": "IF \"Procedure_Variables\".\"Blender_Run\".\"Running\" AND \"CLK_1.0S\" THEN\n \"Blender_Variables_Pers\".\"gRunningSeconds\" := \"Blender_Variables_Pers\".\"gRunningSeconds\" + 1;\nEND_IF;" } ] }, { "id": "A2", "title": "Running Minutes", "comment": "", "logic": [ { "instruction_uid": "35", "type": "Convert_scl", "inputs": { "en": { "type": "powerrail" }, "in": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningSeconds\"" } }, "outputs": { "out": [ { "uid": "22", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_sec\"" } ] }, "scl": "\"I_DIRunning_sec\" := \"Blender_Variables_Pers\".\"gRunningSeconds\";" }, { "instruction_uid": "36", "type": "Mod_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "35", "source_instruction_type": "Convert", "source_pin": "eno" }, "in1": { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_sec\"" }, "in2": { "uid": "24", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#60" } }, "outputs": { "out": [ { "uid": "25", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" } ] }, "eno_logic": [ { "target_pin": "pre", "target_type": "instruction", "target_uid": "37", "target_name": "Eq" } ], "scl": "\"MOD60\" := \"I_DIRunning_sec\" MOD DINT#60;" }, { "instruction_uid": "37", "type": "Eq_scl", "inputs": { "in1": { "uid": "26", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" }, "in2": { "uid": "27", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#0" }, "pre": { "type": "connection", "source_instruction_uid": "36", "source_instruction_type": "Mod", "source_pin": "eno" } }, "outputs": {}, "scl": "// Comparison Eq 37: \"MOD60\" = DINT#0" }, { "instruction_uid": "38", "type": "Contact_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "37", "source_instruction_type": "Eq", "source_pin": "out" }, "operand": { "uid": "28", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 38: \"MOD60\" = DINT#0 AND \"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, { "instruction_uid": "39", "type": "Contact_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "38", "source_instruction_type": "Contact", "source_pin": "out" }, "operand": { "uid": "29", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 39: (\"MOD60\" = DINT#0 AND \"Procedure_Variables\".\"Blender_Run\".\"Running\") AND \"CLK_1.0S\"" }, { "instruction_uid": "40", "type": "Add_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "39", "source_instruction_type": "Contact", "source_pin": "out" }, "in1": { "uid": "30", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMinutes\"" }, "in2": { "uid": "31", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 } }, "outputs": { "out": [ { "uid": "32", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMinutes\"" } ] }, "scl": "IF (\"MOD60\" = DINT#0 AND \"Procedure_Variables\".\"Blender_Run\".\"Running\") AND \"CLK_1.0S\" THEN\n \"Blender_Variables_Pers\".\"gRunningMinutes\" := \"Blender_Variables_Pers\".\"gRunningMinutes\" + 1;\nEND_IF;" }, { "instruction_uid": "41", "type": "PBox_scl", "inputs": { "bit": { "uid": "33", "scope": "GlobalVariable", "type": "variable", "name": "\"M19012\"" } }, "outputs": {}, "scl": "// Edge detection PBox 41 -> P_TRIG_FUNC(CLK := ((\"MOD60\" = DINT#0 AND \"Procedure_Variables\".\"Blender_Run\".\"Running\") AND \"CLK_1.0S\"), M := \"M19012\") (CLK inferred)" }, { "instruction_uid": "42", "type": "Coil_scl", "inputs": { "in": { "type": "connection", "source_instruction_uid": "41", "source_instruction_type": "PBox", "source_pin": "out" }, "operand": { "uid": "34", "scope": "LocalVariable", "type": "variable", "name": "\"mRunMin\"" } }, "outputs": {}, "scl": "\"mRunMin\" := P_TRIG_FUNC(CLK := ((\"MOD60\" = DINT#0 AND \"Procedure_Variables\".\"Blender_Run\".\"Running\") AND \"CLK_1.0S\"), M := \"M19012\");" } ] }, { "id": "B3", "title": "Running Hours for Maintenance", "comment": "", "logic": [ { "instruction_uid": "32", "type": "Contact_scl", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"mRunMin\"" } }, "outputs": {}, "scl": "// RLO updated by Contact 32: \"mRunMin\"" }, { "instruction_uid": "33", "type": "Convert_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "32", "source_instruction_type": "Contact", "source_pin": "out" }, "in": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMinutes\"" } }, "outputs": { "out": [ { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_min\"" } ] }, "scl": "IF \"mRunMin\" THEN\n \"I_DIRunning_min\" := \"Blender_Variables_Pers\".\"gRunningMinutes\";\nEND_IF;" }, { "instruction_uid": "34", "type": "Mod_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "33", "source_instruction_type": "Convert", "source_pin": "eno" }, "in1": { "uid": "24", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_min\"" }, "in2": { "uid": "25", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#60" } }, "outputs": { "out": [ { "uid": "26", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" } ] }, "eno_logic": [ { "target_pin": "pre", "target_type": "instruction", "target_uid": "35", "target_name": "Eq" } ], "scl": "IF \"mRunMin\" THEN\n \"MOD60\" := \"I_DIRunning_min\" MOD DINT#60;\nEND_IF;" }, { "instruction_uid": "35", "type": "Eq_scl", "inputs": { "in1": { "uid": "27", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" }, "in2": { "uid": "28", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#0" }, "pre": { "type": "connection", "source_instruction_uid": "34", "source_instruction_type": "Mod", "source_pin": "eno" } }, "outputs": {}, "scl": "// Comparison Eq 35: \"MOD60\" = DINT#0" }, { "instruction_uid": "36", "type": "Add_scl", "inputs": { "en": { "type": "connection", "source_instruction_uid": "35", "source_instruction_type": "Eq", "source_pin": "out" }, "in1": { "uid": "29", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMaintHour\"" }, "in2": { "uid": "30", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 } }, "outputs": { "out": [ { "uid": "31", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMaintHour\"" } ] }, "scl": "IF \"MOD60\" = DINT#0 THEN\n \"Blender_Variables_Pers\".\"gRunningMaintHour\" := \"Blender_Variables_Pers\".\"gRunningMaintHour\" + 1;\nEND_IF;" } ] }, { "id": "C4", "title": "Running Hours for Maintenance", "comment": "", "logic": [ { "instruction_uid": "23", "type": "Move_scl", "inputs": { "en": { "type": "powerrail" }, "in": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMaintHour\"" } }, "outputs": { "out1": [ { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"HMI_Variables_Status\".\"System\".\"BlendingMaintHour\"" } ] }, "scl": "\"HMI_Variables_Status\".\"System\".\"BlendingMaintHour\" := \"Blender_Variables_Pers\".\"gRunningMaintHour\";" } ] } ] }