{ "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", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" } }, "outputs": {} }, { "instruction_uid": "27", "type": "Contact", "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": {} }, { "instruction_uid": "28", "type": "Add", "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\"" } ] } } ] }, { "id": "1A", "title": "Reset Hours", "comment": "", "logic": [ { "instruction_uid": "24", "type": "Contact", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"SLIM_Variables\".\"ResetHour\"" } }, "outputs": {} }, { "instruction_uid": "25", "type": "Move", "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\"" } ] } } ] }, { "id": "2B", "title": "Seconds Counter", "comment": "", "logic": [ { "instruction_uid": "26", "type": "Contact", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderBlending\"" } }, "outputs": {} }, { "instruction_uid": "27", "type": "Contact", "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": {} }, { "instruction_uid": "28", "type": "Add", "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\"" } ] } } ] }, { "id": "3C", "title": "Minute", "comment": "", "logic": [ { "instruction_uid": "24", "type": "Eq", "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": {} }, { "instruction_uid": "25", "type": "Coil", "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": {} } ] }, { "id": "4D", "title": "Minute Counter", "comment": "", "logic": [ { "instruction_uid": "27", "type": "Contact", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1MinONS\"" } }, "outputs": {} }, { "instruction_uid": "28", "type": "Move", "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\"" } ] } }, { "instruction_uid": "29", "type": "Add", "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\"" } ] } } ] }, { "id": "5E", "title": "Hour", "comment": "", "logic": [ { "instruction_uid": "24", "type": "Eq", "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": {} }, { "instruction_uid": "25", "type": "Coil", "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": {} } ] }, { "id": "6F", "title": "Hour Counter", "comment": "", "logic": [ { "instruction_uid": "30", "type": "Contact", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"m1HourONS\"" } }, "outputs": {} }, { "instruction_uid": "31", "type": "Move", "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\"" } ] } }, { "instruction_uid": "32", "type": "Add", "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\"" } ] } }, { "instruction_uid": "33", "type": "Add", "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\"" } ] } } ] }, { "id": "80", "title": "Counter reset", "comment": "", "logic": [ { "instruction_uid": "29", "type": "Contact", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderCIPMode\"" } }, "outputs": {} }, { "instruction_uid": "30", "type": "Contact", "inputs": { "operand": { "uid": "22", "scope": "GlobalVariable", "type": "variable", "name": "\"gBlenderRinseMode\"" } }, "outputs": {} }, { "instruction_uid": "31", "type": "O", "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": {} }, { "instruction_uid": "32", "type": "Move", "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\"" } ] } }, { "instruction_uid": "33", "type": "Move", "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", "type": "Move", "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", "type": "Contact", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "GlobalVariable", "type": "variable", "name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\"" } }, "outputs": {} }, { "instruction_uid": "27", "type": "Contact", "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": {} }, { "instruction_uid": "28", "type": "Add", "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\"" } ] } } ] }, { "id": "A2", "title": "Running Minutes", "comment": "", "logic": [ { "instruction_uid": "35", "type": "Convert", "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\"" } ] } }, { "instruction_uid": "36", "type": "Mod", "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" } ] }, { "instruction_uid": "37", "type": "Eq", "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": {} }, { "instruction_uid": "38", "type": "Contact", "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": {} }, { "instruction_uid": "39", "type": "Contact", "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": {} }, { "instruction_uid": "40", "type": "Add", "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\"" } ] } }, { "instruction_uid": "41", "type": "PBox", "inputs": { "bit": { "uid": "33", "scope": "GlobalVariable", "type": "variable", "name": "\"M19012\"" } }, "outputs": {} }, { "instruction_uid": "42", "type": "Coil", "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": {} } ] }, { "id": "B3", "title": "Running Hours for Maintenance", "comment": "", "logic": [ { "instruction_uid": "32", "type": "Contact", "inputs": { "in": { "type": "powerrail" }, "operand": { "uid": "21", "scope": "LocalVariable", "type": "variable", "name": "\"mRunMin\"" } }, "outputs": {} }, { "instruction_uid": "33", "type": "Convert", "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\"" } ] } }, { "instruction_uid": "34", "type": "Mod", "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" } ] }, { "instruction_uid": "35", "type": "Eq", "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": {} }, { "instruction_uid": "36", "type": "Add", "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\"" } ] } } ] }, { "id": "C4", "title": "Running Hours for Maintenance", "comment": "", "logic": [ { "instruction_uid": "23", "type": "Move", "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\"" } ] } } ] } ] }