{ "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", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "27", "uid": "27", "type": "Contact", "template_values": {}, "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": {} }, { "instruction_uid": "28", "uid": "28", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "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\"" } ] } } ] }, { "id": "1A", "title": "Reset Hours", "comment": "", "logic": [ { "instruction_uid": "24", "uid": "24", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"SLIM_Variables\".\"ResetHour\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "25", "uid": "25", "type": "Move", "template_values": { "Card": "Cardinality" }, "inputs": { "in": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "24", "source_pin": "out" } }, "outputs": { "out1": [ { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gSLIM_Sec\"" } ] } } ] }, { "id": "2B", "title": "Seconds Counter", "comment": "", "logic": [ { "instruction_uid": "26", "uid": "26", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderBlending\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "27", "uid": "27", "type": "Contact", "template_values": {}, "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": {} }, { "instruction_uid": "28", "uid": "28", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "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\"" } ] } } ] }, { "id": "3C", "title": "Minute", "comment": "", "logic": [ { "instruction_uid": "24", "uid": "24", "type": "Eq", "template_values": { "SrcType": "Type" }, "inputs": { "pre": { "type": "powerrail" }, "in2": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 60 }, "in1": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" } }, "outputs": {} }, { "instruction_uid": "25", "uid": "25", "type": "Coil", "template_values": {}, "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": {} } ] }, { "id": "4D", "title": "Minute Counter", "comment": "", "logic": [ { "instruction_uid": "27", "uid": "27", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1MinONS\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "28", "uid": "28", "type": "Move", "template_values": { "Card": "Cardinality" }, "inputs": { "in": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "27", "source_pin": "out" } }, "outputs": { "out1": [ { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" } ] } }, { "instruction_uid": "29", "uid": "29", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "inputs": { "in2": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "in1": { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" }, "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\"" } ] } } ] }, { "id": "5E", "title": "Hour", "comment": "", "logic": [ { "instruction_uid": "24", "uid": "24", "type": "Eq", "template_values": { "SrcType": "Type" }, "inputs": { "pre": { "type": "powerrail" }, "in2": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 60 }, "in1": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } }, "outputs": {} }, { "instruction_uid": "25", "uid": "25", "type": "Coil", "template_values": {}, "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": {} } ] }, { "id": "6F", "title": "Hour Counter", "comment": "", "logic": [ { "instruction_uid": "30", "uid": "30", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1HourONS\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "31", "uid": "31", "type": "Move", "template_values": { "Card": "Cardinality" }, "inputs": { "in": { "uid": "22", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "30", "source_pin": "out" } }, "outputs": { "out1": [ { "uid": "23", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdMin\"" } ] } }, { "instruction_uid": "32", "uid": "32", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "inputs": { "in2": { "uid": "25", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "in1": { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdHour\"" }, "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\"" } ] } }, { "instruction_uid": "33", "uid": "33", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "inputs": { "in2": { "uid": "28", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 1 }, "in1": { "uid": "27", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gBlendingMaintHour\"" }, "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\"" } ] } } ] }, { "id": "80", "title": "Counter reset", "comment": "", "logic": [ { "instruction_uid": "29", "uid": "29", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderCIPMode\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "30", "uid": "30", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderRinseMode\"" } }, "outputs": {} }, { "instruction_uid": "31", "uid": "31", "type": "O", "template_values": { "Card": "Cardinality" }, "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": {} }, { "instruction_uid": "32", "uid": "32", "type": "Move", "template_values": { "Card": "Cardinality" }, "inputs": { "in": { "uid": "23", "scope": "LiteralConstant", "type": "constant", "datatype": "Int", "value": 0 }, "en": { "type": "connection", "source_instruction_type": "O", "source_instruction_uid": "31", "source_pin": "out" } }, "outputs": { "out1": [ { "uid": "24", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gProdSec\"" } ] } }, { "instruction_uid": "33", "uid": "33", "type": "Move", "template_values": { "Card": "Cardinality" }, "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\"" } ] } }, { "instruction_uid": "34", "uid": "34", "type": "Move", "template_values": { "Card": "Cardinality" }, "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\"" } ] } } ] }, { "id": "91", "title": "Running Seconds", "comment": "", "logic": [ { "instruction_uid": "26", "uid": "26", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "27", "uid": "27", "type": "Contact", "template_values": {}, "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": {} }, { "instruction_uid": "28", "uid": "28", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "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\"" } ] } } ] }, { "id": "A2", "title": "Running Minutes", "comment": "", "logic": [ { "instruction_uid": "35", "uid": "35", "type": "Convert", "template_values": { "SrcType": "Type", "DestType": "Type" }, "inputs": { "in": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningSeconds\"" }, "en": { "type": "powerrail" } }, "outputs": { "out": [ { "uid": "22", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_sec\"" } ] } }, { "instruction_uid": "36", "uid": "36", "type": "Mod", "template_values": { "SrcType": "Type" }, "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" } ] }, { "instruction_uid": "37", "uid": "37", "type": "Eq", "template_values": { "SrcType": "Type" }, "inputs": { "pre": { "type": "connection", "source_instruction_type": "Mod", "source_instruction_uid": "36", "source_pin": "eno" }, "in2": { "uid": "27", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#0" }, "in1": { "uid": "26", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" } }, "outputs": {} }, { "instruction_uid": "38", "uid": "38", "type": "Contact", "template_values": {}, "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": {} }, { "instruction_uid": "39", "uid": "39", "type": "Contact", "template_values": {}, "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": {} }, { "instruction_uid": "40", "uid": "40", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "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\"" } ] } }, { "instruction_uid": "41", "uid": "41", "type": "PBox", "template_values": {}, "inputs": { "bit": { "uid": "33", "scope": "GlobalVariable", "type": "variable", "name": "\"M19012\"" } }, "outputs": {} }, { "instruction_uid": "42", "uid": "42", "type": "Coil", "template_values": {}, "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": {} } ] }, { "id": "B3", "title": "Running Hours for Maintenance", "comment": "", "logic": [ { "instruction_uid": "32", "uid": "32", "type": "Contact", "template_values": {}, "inputs": { "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"mRunMin\"" }, "in": { "type": "powerrail" } }, "outputs": {} }, { "instruction_uid": "33", "uid": "33", "type": "Convert", "template_values": { "SrcType": "Type", "DestType": "Type" }, "inputs": { "in": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMinutes\"" }, "en": { "type": "connection", "source_instruction_type": "Contact", "source_instruction_uid": "32", "source_pin": "out" } }, "outputs": { "out": [ { "uid": "23", "scope": "LocalVariable", "type": "variable", "name": "\"I_DIRunning_min\"" } ] } }, { "instruction_uid": "34", "uid": "34", "type": "Mod", "template_values": { "SrcType": "Type" }, "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" } ] }, { "instruction_uid": "35", "uid": "35", "type": "Eq", "template_values": { "SrcType": "Type" }, "inputs": { "pre": { "type": "connection", "source_instruction_type": "Mod", "source_instruction_uid": "34", "source_pin": "eno" }, "in2": { "uid": "28", "scope": "TypedConstant", "type": "constant", "datatype": "TypedConstant", "value": "DINT#0" }, "in1": { "uid": "27", "scope": "LocalVariable", "type": "variable", "name": "\"MOD60\"" } }, "outputs": {} }, { "instruction_uid": "36", "uid": "36", "type": "Add", "template_values": { "Card": "Cardinality", "SrcType": "Type" }, "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\"" } ] } } ] }, { "id": "C4", "title": "Running Hours for Maintenance", "comment": "", "logic": [ { "instruction_uid": "23", "uid": "23", "type": "Move", "template_values": { "Card": "Cardinality" }, "inputs": { "in": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Blender_Variables_Pers\".\"gRunningMaintHour\"" }, "en": { "type": "powerrail" } }, "outputs": { "out1": [ { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"HMI_Variables_Status\".\"System\".\"BlendingMaintHour\"" } ] } } ] } ] }