{ "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", "uid": "26", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "// RLO: \"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, { "instruction_uid": "27", "uid": "27", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" }, "in": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "26", "source_pin": "out" } }, "outputs": {}, "scl": "// RLO: \"Procedure_Variables\".\"Blender_Run\".\"Running\" AND \"CLK_1.0S\"" }, { "instruction_uid": "28", "uid": "28", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "24", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "27", "source_pin": "out" }, "in1": { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gSLIM_Sec\"" } }, "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", "uid": "24", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"SLIM_Variables\".\"ResetHour\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "// RLO: \"SLIM_Variables\".\"ResetHour\"" }, { "instruction_uid": "25", "uid": "25", "type": "Move_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "inputs": { "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "24", "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", "uid": "26", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderBlending\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "// RLO: \"gBlenderBlending\"" }, { "instruction_uid": "27", "uid": "27", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" }, "in": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "26", "source_pin": "out" } }, "outputs": {}, "scl": "// RLO: \"gBlenderBlending\" AND \"CLK_1.0S\"" }, { "instruction_uid": "28", "uid": "28", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "24", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "27", "source_pin": "out" }, "in1": { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" } }, "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", "uid": "24", "type": "Eq_scl", "template_values": { "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 60 }, "in1": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" }, "pre": { "type": "powerrail" } }, "outputs": {}, "scl": "// Comparison Eq 24: \"Blender_Variables_Pers\".\"gProdSec\" = 60" }, { "instruction_uid": "25", "uid": "25", "type": "Coil_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"m1MinONS\"" }, "in": { "type": "connection", "source_instruction_type": "Eq", "source_instruction_uid": "24", "source_pin": "out" } }, "outputs": {}, "scl": "\"m1MinONS\" := \"Blender_Variables_Pers\".\"gProdSec\" = 60;" } ] }, { "id": "4D", "title": "Minute Counter", "comment": "", "logic": [ { "instruction_uid": "27", "uid": "27", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1MinONS\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "IF \"m1MinONS\" THEN\n \"Blender_Variables_Pers\".\"gProdSec\" := 0;\n \"Blender_Variables_Pers\".\"gProdMin\" := \"Blender_Variables_Pers\".\"gProdMin\" + 1;\nEND_IF;" }, { "instruction_uid": "28", "uid": "28", "type": "Move_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "inputs": { "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "27", "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\"" } ] }, "scl": "// Logic included in grouped IF (by UID 27)", "grouped": true }, { "instruction_uid": "29", "uid": "29", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "27", "source_pin": "out" }, "in1": { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } }, "outputs": { "out": [ { "uid": "26", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } ] }, "scl": "// Logic included in grouped IF (by UID 27)", "grouped": true } ] }, { "id": "5E", "title": "Hour", "comment": "", "logic": [ { "instruction_uid": "24", "uid": "24", "type": "Eq_scl", "template_values": { "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 60 }, "in1": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" }, "pre": { "type": "powerrail" } }, "outputs": {}, "scl": "// Comparison Eq 24: \"Blender_Variables_Pers\".\"gProdMin\" = 60" }, { "instruction_uid": "25", "uid": "25", "type": "Coil_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"m1HourONS\"" }, "in": { "type": "connection", "source_instruction_type": "Eq", "source_instruction_uid": "24", "source_pin": "out" } }, "outputs": {}, "scl": "\"m1HourONS\" := \"Blender_Variables_Pers\".\"gProdMin\" = 60;" } ] }, { "id": "6F", "title": "Hour Counter", "comment": "", "logic": [ { "instruction_uid": "30", "uid": "30", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1HourONS\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "IF \"m1HourONS\" THEN\n \"Blender_Variables_Pers\".\"gProdMin\" := 0;\n \"Blender_Variables_Pers\".\"gProdHour\" := \"Blender_Variables_Pers\".\"gProdHour\" + 1;\n \"Blender_Variables_Pers\".\"gBlendingMaintHour\" := \"Blender_Variables_Pers\".\"gBlendingMaintHour\" + 1;\nEND_IF;" }, { "instruction_uid": "31", "uid": "31", "type": "Move_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "inputs": { "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "30", "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\"" } ] }, "scl": "// Logic included in grouped IF (by UID 30)", "grouped": true }, { "instruction_uid": "32", "uid": "32", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "30", "source_pin": "out" }, "in1": { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdHour\"" } }, "outputs": { "out": [ { "uid": "26", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdHour\"" } ] }, "scl": "// Logic included in grouped IF (by UID 30)", "grouped": true }, { "instruction_uid": "33", "uid": "33", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "28", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "30", "source_pin": "out" }, "in1": { "uid": "27", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gBlendingMaintHour\"" } }, "outputs": { "out": [ { "uid": "29", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gBlendingMaintHour\"" } ] }, "scl": "// Logic included in grouped IF (by UID 30)", "grouped": true } ] }, { "id": "80", "title": "Counter reset", "comment": "", "logic": [ { "instruction_uid": "29", "uid": "29", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderCIPMode\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "// RLO: \"gBlenderCIPMode\"" }, { "instruction_uid": "30", "uid": "30", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderRinseMode\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "// RLO: \"gBlenderRinseMode\"" }, { "instruction_uid": "31", "uid": "31", "type": "O_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "inputs": { "in2": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "30", "source_pin": "out" }, "in1": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "29", "source_pin": "out" } }, "outputs": {}, "scl": "IF \"gBlenderCIPMode\" OR \"gBlenderRinseMode\" THEN\n \"Blender_Variables_Pers\".\"gProdSec\" := 0;\n \"Blender_Variables_Pers\".\"gProdMin\" := 0;\n \"Blender_Variables_Pers\".\"gProdHour\" := 0;\nEND_IF;" }, { "instruction_uid": "32", "uid": "32", "type": "Move_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "inputs": { "en": { "type": "connection", "source_instruction_type": "O", "source_instruction_uid": "31", "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\"" } ] }, "scl": "// Logic included in grouped IF (by UID 31)", "grouped": true }, { "instruction_uid": "33", "uid": "33", "type": "Move_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "inputs": { "en": { "type": "connection", "source_instruction_type": "O", "source_instruction_uid": "31", "source_pin": "out" }, "in": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 } }, "outputs": { "out1": [ { "uid": "26", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } ] }, "scl": "// Logic included in grouped IF (by UID 31)", "grouped": true }, { "instruction_uid": "34", "uid": "34", "type": "Move_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "inputs": { "en": { "type": "connection", "source_instruction_type": "O", "source_instruction_uid": "31", "source_pin": "out" }, "in": { "uid": "27", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 } }, "outputs": { "out1": [ { "uid": "28", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdHour\"" } ] }, "scl": "// Logic included in grouped IF (by UID 31)", "grouped": true } ] }, { "id": "91", "title": "Running Seconds", "comment": "", "logic": [ { "instruction_uid": "26", "uid": "26", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "// RLO: \"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, { "instruction_uid": "27", "uid": "27", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" }, "in": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "26", "source_pin": "out" } }, "outputs": {}, "scl": "// RLO: \"Procedure_Variables\".\"Blender_Run\".\"Running\" AND \"CLK_1.0S\"" }, { "instruction_uid": "28", "uid": "28", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "24", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "27", "source_pin": "out" }, "in1": { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningSeconds\"" } }, "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", "uid": "35", "type": "Convert_scl", "template_values": { "SrcType": "Type", "DestType": "Type" }, "negated_pins": {}, "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", "uid": "36", "type": "Mod_scl", "template_values": { "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "24", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#60" }, "en": { "type": "connection", "source_instruction_type": "Convert", "source_instruction_uid": "35", "source_pin": "eno" }, "in1": { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_sec\"" } }, "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", "uid": "37", "type": "Eq_scl", "template_values": { "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "27", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#0" }, "in1": { "uid": "26", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" }, "pre": { "type": "connection", "source_instruction_type": "Mod", "source_instruction_uid": "36", "source_pin": "eno" } }, "outputs": {}, "scl": "// Comparison Eq 37: \"MOD60\" = DINT#0" }, { "instruction_uid": "38", "uid": "38", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "28", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, "in": { "type": "connection", "source_instruction_type": "Eq", "source_instruction_uid": "37", "source_pin": "out" } }, "outputs": {}, "scl": "// RLO: \"MOD60\" = DINT#0 AND \"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, { "instruction_uid": "39", "uid": "39", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "29", "scope": "GlobalVariable", "type": "variable", "name": "\"CLK_1.0S\"" }, "in": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "38", "source_pin": "out" } }, "outputs": {}, "scl": "// RLO: (\"MOD60\" = DINT#0 AND \"Procedure_Variables\".\"Blender_Run\".\"Running\") AND \"CLK_1.0S\"" }, { "instruction_uid": "40", "uid": "40", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "31", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "39", "source_pin": "out" }, "in1": { "uid": "30", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMinutes\"" } }, "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", "uid": "41", "type": "PBox_scl", "template_values": {}, "negated_pins": {}, "inputs": { "bit": { "uid": "33", "scope": "GlobalVariable", "type": "variable", "name": "\"M19012\"" }, "in": { "type": "connection", "source_instruction_type": "Eq", "source_instruction_uid": "37", "source_pin": "out" } }, "outputs": {}, "_edge_mem_update_scl": "\"M19012\" := (\"MOD60\" = DINT#0);", "scl": "// Logic moved to Coil 42" }, { "instruction_uid": "42", "uid": "42", "type": "Coil_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "34", "scope": "LocalVariable", "type": "variable", "name": "\"mRunMin\"" }, "in": { "type": "connection", "source_instruction_type": "PBox", "source_instruction_uid": "41", "source_pin": "out" } }, "outputs": {}, "scl": "\"mRunMin\" := (\"MOD60\" = DINT#0) AND NOT \"M19012\";\\n\"M19012\" := (\"MOD60\" = DINT#0); // P_TRIG((\"MOD60\" = DINT#0)) (Mem update handled by consumer)" } ] }, { "id": "B3", "title": "Running Hours for Maintenance", "comment": "", "logic": [ { "instruction_uid": "32", "uid": "32", "type": "Contact_scl", "template_values": {}, "negated_pins": {}, "inputs": { "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"mRunMin\"" }, "in": { "type": "powerrail" } }, "outputs": {}, "scl": "// RLO: \"mRunMin\"" }, { "instruction_uid": "33", "uid": "33", "type": "Convert_scl", "template_values": { "SrcType": "Type", "DestType": "Type" }, "negated_pins": {}, "inputs": { "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "32", "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", "uid": "34", "type": "Mod_scl", "template_values": { "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "25", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#60" }, "en": { "type": "connection", "source_instruction_type": "Convert", "source_instruction_uid": "33", "source_pin": "eno" }, "in1": { "uid": "24", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_min\"" } }, "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", "uid": "35", "type": "Eq_scl", "template_values": { "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "28", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#0" }, "in1": { "uid": "27", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" }, "pre": { "type": "connection", "source_instruction_type": "Mod", "source_instruction_uid": "34", "source_pin": "eno" } }, "outputs": {}, "scl": "// Comparison Eq 35: \"MOD60\" = DINT#0" }, { "instruction_uid": "36", "uid": "36", "type": "Add_scl", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "negated_pins": {}, "inputs": { "in2": { "uid": "30", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "en": { "type": "connection", "source_instruction_type": "Eq", "source_instruction_uid": "35", "source_pin": "out" }, "in1": { "uid": "29", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMaintHour\"" } }, "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", "uid": "23", "type": "Move_scl", "template_values": { "Card": "Cardinality" }, "negated_pins": {}, "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\";" } ] } ] }