Simatic_XML_Parser_to_SCL/BlenderCtrl__Main_simplifie...

3768 lines
144 KiB
JSON

{
"block_name": "BlenderCtrl__Main",
"block_number": 2000,
"language": "LAD",
"block_comment": "",
"interface": {
"Temp": [
{
"name": "All_Auto_RETVAL",
"datatype": "Int"
},
{
"name": "Reset_SP_Word_RETVAL",
"datatype": "Int"
},
{
"name": "mResetWaterTot",
"datatype": "Bool"
},
{
"name": "mResetSyrupTot",
"datatype": "Bool"
},
{
"name": "mResetCO2Tot",
"datatype": "Bool"
},
{
"name": "mResetProductTot",
"datatype": "Bool"
},
{
"name": "Block_Move_Err",
"datatype": "Int"
}
],
"Return": [
{
"name": "Ret_Val",
"datatype": "Void"
}
]
},
"networks": [
{
"id": "9",
"title": "Clock Generation",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Clock Signal",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Clock Signal();"
}
]
},
{
"id": "1A",
"title": "Machine Init",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "BlenderCtrl_MachineInit",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "BlenderCtrl_MachineInit();"
}
]
},
{
"id": "2B",
"title": "Filler Head",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"AUX FALSE\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"AUX FALSE\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "BLKMOV",
"template_values": {
"blk_type": "Type"
},
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "3C",
"title": "Emergency Pressed",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gIN_VoltageOk\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gIN_VoltageOk\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "NBox",
"template_values": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
},
"bit": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"M19000\""
}
},
"outputs": {}
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gEmergencyPressed\""
},
"in": {
"type": "connection",
"source_instruction_type": "NBox",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "4D",
"title": "Air and CO2 pressure ok and auxiliary ok",
"comment": "",
"logic": [
{
"instruction_uid": "29",
"uid": "29",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gIN_LinePressCO2Ok\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gIN_LinePressCO2Ok\""
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gWorkshopTest\""
}
},
"outputs": {},
"scl": "// RLO: \"gWorkshopTest\""
},
{
"instruction_uid": "31",
"uid": "31",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gWorkshop_Co2_Presence\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "30",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"gWorkshopTest\" AND \"gWorkshop_Co2_Presence\""
},
{
"instruction_uid": "32",
"uid": "32",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gWorkshop_CIP_Signals\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "31",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (\"gWorkshopTest\" AND \"gWorkshop_Co2_Presence\") AND \"gWorkshop_CIP_Signals\""
},
{
"instruction_uid": "33",
"uid": "33",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "32",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "29",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 33: \"gIN_LinePressCO2Ok\" OR ((\"gWorkshopTest\" AND \"gWorkshop_Co2_Presence\") AND \"gWorkshop_CIP_Signals\")"
},
{
"instruction_uid": "34",
"uid": "34",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Digital\".\"_PAL_S11\".\"Filtered\""
},
"in": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "33",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (\"gIN_LinePressCO2Ok\" OR ((\"gWorkshopTest\" AND \"gWorkshop_Co2_Presence\") AND \"gWorkshop_CIP_Signals\")) AND \"HMI_Digital\".\"_PAL_S11\".\"Filtered\""
},
{
"instruction_uid": "35",
"uid": "35",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "26",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Disable_Bit\""
}
},
"outputs": {},
"scl": "// RLO: \"Disable_Bit\""
},
{
"instruction_uid": "36",
"uid": "36",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "35",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "34",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 36: ((\"gIN_LinePressCO2Ok\" OR ((\"gWorkshopTest\" AND \"gWorkshop_Co2_Presence\") AND \"gWorkshop_CIP_Signals\")) AND \"HMI_Digital\".\"_PAL_S11\".\"Filtered\") OR \"Disable_Bit\""
},
{
"instruction_uid": "37",
"uid": "37",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "27",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gIN_VoltageOk\""
},
"in": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "36",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (((\"gIN_LinePressCO2Ok\" OR ((\"gWorkshopTest\" AND \"gWorkshop_Co2_Presence\") AND \"gWorkshop_CIP_Signals\")) AND \"HMI_Digital\".\"_PAL_S11\".\"Filtered\") OR \"Disable_Bit\") AND \"gIN_VoltageOk\""
},
{
"instruction_uid": "38",
"uid": "38",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "28",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlenderSuppliesOk\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "37",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gBlenderSuppliesOk\" := (((\"gIN_LinePressCO2Ok\" OR ((\"gWorkshopTest\" AND \"gWorkshop_Co2_Presence\") AND \"gWorkshop_CIP_Signals\")) AND \"HMI_Digital\".\"_PAL_S11\".\"Filtered\") OR \"Disable_Bit\") AND \"gIN_VoltageOk\";"
}
]
},
{
"id": "5E",
"title": "Blender State Num",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Move_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in": {
"uid": "21",
"scope": "LiteralConstant",
"type": "constant",
"datatype": "Int",
"value": 0
},
"en": {
"type": "powerrail"
}
},
"outputs": {
"out1": [
{
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"Procedures\".\"BlenderStateNum\""
}
]
},
"scl": "\"HMI_Variables_Status\".\"Procedures\".\"BlenderStateNum\" := 0;"
}
]
},
{
"id": "6F",
"title": "Delay Power On",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"FirstScan\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"FirstScan\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "Se",
"template_values": {},
"inputs": {},
"outputs": {}
}
]
},
{
"id": "80",
"title": "Production Mode",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\""
},
{
"instruction_uid": "24",
"uid": "24",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlenderProdMode\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gBlenderProdMode\" := \"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\";"
}
]
},
{
"id": "91",
"title": "CIp Mode",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlenderCIPMode\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gBlenderCIPMode\" := \"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\";"
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Move_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in": {
"uid": "23",
"scope": "LiteralConstant",
"type": "constant",
"datatype": "Int",
"value": 19
},
"en": {
"type": "connection",
"source_instruction_uid": "25",
"source_instruction_type": "Contact",
"source_pin": "out"
}
},
"outputs": {
"out1": [
{
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"Procedures\".\"BlenderStateNum\""
}
]
},
"scl": "IF \"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\" THEN\n \"HMI_Variables_Status\".\"Procedures\".\"BlenderStateNum\" := 19;\nEND_IF;"
}
]
},
{
"id": "A2",
"title": "Error Faults",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"AUX FALSE\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"AUX FALSE\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"Meters\".\"QTM3012_PRD_Fault\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {}
},
{
"instruction_uid": "28",
"uid": "28",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gmPDS2000_Error_Fault\""
}
},
"outputs": {}
},
{
"instruction_uid": "29",
"uid": "29",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"Meters\".\"QTM3012_PRD_Run\""
}
},
"outputs": {}
},
{
"instruction_uid": "30",
"uid": "30",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gNoFreezeProductMeter\""
}
},
"outputs": {}
}
]
},
{
"id": "B3",
"title": "Filler Bottle Count Used to push Product",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"System_RunOut_Variables\".\"ProdPipeRunOutWaterCount\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"System_RunOut_Variables\".\"ProdPipeRunOutWaterCount\""
},
{
"instruction_uid": "24",
"uid": "24",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"System_RunOut_Variables\".\"ProdPipeRunOutFillerBott\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"System_RunOut_Variables\".\"ProdPipeRunOutFillerBott\" := \"System_RunOut_Variables\".\"ProdPipeRunOutWaterCount\";"
}
]
},
{
"id": "C4",
"title": "Water Bypass Enable",
"comment": "",
"logic": [
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_ByPassDeair\""
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_ByPassDeair\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Deaireation\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "28",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_ByPassDeair\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Deaireation\""
},
{
"instruction_uid": "30",
"uid": "30",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "29",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 30: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\" OR (\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_ByPassDeair\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Deaireation\")"
},
{
"instruction_uid": "31",
"uid": "31",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Blender_Variables_Pers\".\"gWaterRecipe\""
},
"in": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "30",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\" OR (\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_ByPassDeair\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Deaireation\")) AND \"Blender_Variables_Pers\".\"gWaterRecipe\""
},
{
"instruction_uid": "32",
"uid": "32",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Blender_Variables_Pers\".\"gCarboStillRecipe\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "31",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: ((\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\" OR (\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_ByPassDeair\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Deaireation\")) AND \"Blender_Variables_Pers\".\"gWaterRecipe\") AND \"Blender_Variables_Pers\".\"gCarboStillRecipe\""
},
{
"instruction_uid": "33",
"uid": "33",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "26",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gStillWaterByPassEn\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "32",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gStillWaterByPassEn\" := ((\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\" OR (\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_ByPassDeair\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Deaireation\")) AND \"Blender_Variables_Pers\".\"gWaterRecipe\") AND \"Blender_Variables_Pers\".\"gCarboStillRecipe\";"
}
]
},
{
"id": "D5",
"title": "Still Water Bypass",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BlendFillSystem\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BlendFillSystem\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BlendFillSystem\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Blender_Variables_Pers\".\"gWaterRecipe\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BlendFillSystem\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\") AND \"Blender_Variables_Pers\".\"gWaterRecipe\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Blender_Variables_Pers\".\"gCarboStillRecipe\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "28",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: ((\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BlendFillSystem\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\") AND \"Blender_Variables_Pers\".\"gWaterRecipe\") AND \"Blender_Variables_Pers\".\"gCarboStillRecipe\""
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlendFiStillWaterByPass\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "29",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gBlendFiStillWaterByPass\" := ((\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BlendFillSystem\" AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_StillWaterByPass\") AND \"Blender_Variables_Pers\".\"gWaterRecipe\") AND \"Blender_Variables_Pers\".\"gCarboStillRecipe\";"
}
]
},
{
"id": "E6",
"title": "Manual Syrup Drain Valve Open - Operator Alarm",
"comment": "",
"logic": [
{
"instruction_uid": "30",
"uid": "30",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gSyrupRoomEn\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gSyrupRoomEn\""
},
{
"instruction_uid": "31",
"uid": "31",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gIN_HVP301_Aux\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "30",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"gSyrupRoomEn\" AND \"gIN_HVP301_Aux\""
},
{
"instruction_uid": "32",
"uid": "32",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "31",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (\"gSyrupRoomEn\" AND \"gIN_HVP301_Aux\") AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\""
},
{
"instruction_uid": "33",
"uid": "33",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "32",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: ((\"gSyrupRoomEn\" AND \"gIN_HVP301_Aux\") AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\""
},
{
"instruction_uid": "34",
"uid": "34",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Procedure_Variables\".\"Syr_RunOut\".\"Done\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "33",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (((\"gSyrupRoomEn\" AND \"gIN_HVP301_Aux\") AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\") AND \"Procedure_Variables\".\"Syr_RunOut\".\"Done\""
},
{
"instruction_uid": "35",
"uid": "35",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "26",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlenderCIPMode\""
}
},
"outputs": {},
"scl": "// RLO: \"gBlenderCIPMode\""
},
{
"instruction_uid": "36",
"uid": "36",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "27",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gIN_CIP_CIPRunning\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "35",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"gBlenderCIPMode\" AND \"gIN_CIP_CIPRunning\""
},
{
"instruction_uid": "37",
"uid": "37",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "28",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "36",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (\"gBlenderCIPMode\" AND \"gIN_CIP_CIPRunning\") AND \"Procedure_Variables\".\"Blender_Run\".\"Running\""
},
{
"instruction_uid": "38",
"uid": "38",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "37",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "34",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 38: ((((\"gSyrupRoomEn\" AND \"gIN_HVP301_Aux\") AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\") AND \"Procedure_Variables\".\"Syr_RunOut\".\"Done\") OR ((\"gBlenderCIPMode\" AND \"gIN_CIP_CIPRunning\") AND \"Procedure_Variables\".\"Blender_Run\".\"Running\")"
},
{
"instruction_uid": "39",
"uid": "39",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "29",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gHVP301_Open\""
},
"in": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "38",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gHVP301_Open\" := ((((\"gSyrupRoomEn\" AND \"gIN_HVP301_Aux\") AND \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\") AND \"Procedure_Variables\".\"Syr_RunOut\".\"Done\") OR ((\"gBlenderCIPMode\" AND \"gIN_CIP_CIPRunning\") AND \"Procedure_Variables\".\"Blender_Run\".\"Running\");"
}
]
},
{
"id": "F7",
"title": "Manual Syrup Drain Valve Open - Operator Alarm",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gIN_HVM302_Aux\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gIN_HVM302_Aux\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Sd",
"template_values": {},
"inputs": {},
"outputs": {}
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gHVM302_Open\""
},
"in": {
"type": "connection",
"source_instruction_type": "Sd",
"source_instruction_uid": "26",
"source_pin": "q"
}
},
"outputs": {}
}
]
},
{
"id": "108",
"title": "Maselli Control",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BrixMeter\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BrixMeter\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "Eq_scl",
"template_values": {
"SrcType": "Type"
},
"inputs": {
"pre": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
},
"in2": {
"uid": "23",
"scope": "LiteralConstant",
"type": "constant",
"datatype": "Int",
"value": 6
},
"in1": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\""
}
},
"outputs": {},
"scl": "// Cond: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\" = 6"
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Call_FC_scl",
"block_name": "Maselli_PA_Control",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Eq",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\" = 6 THEN\n Maselli_PA_Control();\nEND_IF;"
}
]
},
{
"id": "119",
"title": "mPDS Control",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BrixMeter\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BrixMeter\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "Eq_scl",
"template_values": {
"SrcType": "Type"
},
"inputs": {
"pre": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
},
"in2": {
"uid": "23",
"scope": "LiteralConstant",
"type": "constant",
"datatype": "Int",
"value": 5
},
"in1": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\""
}
},
"outputs": {},
"scl": "// Cond: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\" = 5"
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Call_FC_scl",
"block_name": "mPDS_PA_Control",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Eq",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\" = 5 THEN\n mPDS_PA_Control();\nEND_IF;"
}
]
},
{
"id": "12A",
"title": "mPDS Syrup Control",
"comment": "",
"logic": [
{
"instruction_uid": "22",
"uid": "22",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_SyrBrixMeter\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_SyrBrixMeter\""
},
{
"instruction_uid": "23",
"uid": "23",
"type": "Call_FC_scl",
"block_name": "mPDS_SYR_PA_Control",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "22",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_SyrBrixMeter\" THEN\n mPDS_SYR_PA_Control();\nEND_IF;"
}
]
},
{
"id": "13B",
"title": "Co2 Analog Input",
"comment": "GetProdBrixCO2_FromAnalogIn\n CALL \"GetProdBrixCO2_FromAn\"\n NOP 0",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BrixMeter\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_BrixMeter\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "Eq_scl",
"template_values": {
"SrcType": "Type"
},
"inputs": {
"pre": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
},
"in2": {
"uid": "23",
"scope": "LiteralConstant",
"type": "constant",
"datatype": "Int",
"value": 3
},
"in1": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\""
}
},
"outputs": {},
"scl": "// Cond: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\" = 3"
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Call_FC_scl",
"block_name": "GetProdBrixCO2_Anal_Inpt",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Eq",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_MeterType\" = 3 THEN\n GetProdBrixCO2_Anal_Inpt();\nEND_IF;"
}
]
},
{
"id": "14C",
"title": "Quality",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "ProductQuality",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "ProductQuality();"
}
]
},
{
"id": "15D",
"title": "Input Data",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FB_scl",
"block_name": "Input",
"block_type": "FB",
"instance_scope": "GlobalVariable",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// ERROR: Call a bloque no soportado: Input"
}
]
},
{
"id": "16E",
"title": "Sel Brix Source Check",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "SelCheckBrixSource",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "SelCheckBrixSource();"
}
]
},
{
"id": "17F",
"title": "Check Water Cooling System Temperature",
"comment": "",
"logic": [
{
"instruction_uid": "22",
"uid": "22",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_InverterRecirPumpPPM306\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_InverterRecirPumpPPM306\""
},
{
"instruction_uid": "23",
"uid": "23",
"type": "Call_FC_scl",
"block_name": "CTRLCoolingSystem",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "22",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_InverterRecirPumpPPM306\" THEN\n CTRLCoolingSystem();\nEND_IF;"
}
]
},
{
"id": "190",
"title": "Tank Level",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "TankLevel",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "TankLevel();"
}
]
},
{
"id": "1A1",
"title": "Production ONS",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlenderProdMode\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gBlenderProdMode\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "PBox_scl",
"template_values": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
},
"bit": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"M19001\""
}
},
"outputs": {},
"scl": "// PBox 26 - Passing bit: \"M19001\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mDelayPowerOnTmr\""
},
"in": {
"type": "connection",
"source_instruction_type": "PBox",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"M19001\" AND \"mDelayPowerOnTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gProductionONS\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gProductionONS\" := \"M19001\" AND \"mDelayPowerOnTmr\";"
}
]
},
{
"id": "1B2",
"title": "Blender Prod Mode Init",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gProductionONS\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gProductionONS\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Procedure_Variables\".\"Blender_Rinse\".\"ONS_Done\""
}
},
"outputs": {},
"scl": "// RLO: \"Procedure_Variables\".\"Blender_Rinse\".\"ONS_Done\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 26: \"gProductionONS\" OR \"Procedure_Variables\".\"Blender_Rinse\".\"ONS_Done\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Blender_Variables_Pers\".\"gBlenderStarted\""
},
"in": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: (\"gProductionONS\" OR \"Procedure_Variables\".\"Blender_Rinse\".\"ONS_Done\") AND \"Blender_Variables_Pers\".\"gBlenderStarted\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Call_FC_scl",
"block_name": "BlenderCtrl_ProdModeInit",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF (\"gProductionONS\" OR \"Procedure_Variables\".\"Blender_Rinse\".\"ONS_Done\") AND \"Blender_Variables_Pers\".\"gBlenderStarted\" THEN\n BlenderCtrl_ProdModeInit();\nEND_IF;"
}
]
},
{
"id": "1C3",
"title": "Rinse ONS",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Status\".\"System\".\"Blender_Prod_CIP\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "PBox_scl",
"template_values": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
},
"bit": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"M19002\""
}
},
"outputs": {},
"scl": "// PBox 26 - Passing bit: \"M19002\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mDelayPowerOnTmr\""
},
"in": {
"type": "connection",
"source_instruction_type": "PBox",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"M19002\" AND \"mDelayPowerOnTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gRinseONS\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gRinseONS\" := \"M19002\" AND \"mDelayPowerOnTmr\";"
}
]
},
{
"id": "1D4",
"title": "CIP ONS",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlenderCIPMode\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gBlenderCIPMode\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "PBox_scl",
"template_values": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
},
"bit": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"M19003\""
}
},
"outputs": {},
"scl": "// PBox 26 - Passing bit: \"M19003\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mDelayPowerOnTmr\""
},
"in": {
"type": "connection",
"source_instruction_type": "PBox",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"M19003\" AND \"mDelayPowerOnTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gCIPONS\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gCIPONS\" := \"M19003\" AND \"mDelayPowerOnTmr\";"
}
]
},
{
"id": "1E5",
"title": "CIp Mode Init",
"comment": "",
"logic": [
{
"instruction_uid": "22",
"uid": "22",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gCIPONS\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gCIPONS\""
},
{
"instruction_uid": "23",
"uid": "23",
"type": "Call_FC_scl",
"block_name": "BlenderCtrl_CIPModeInit",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "22",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"gCIPONS\" THEN\n BlenderCtrl_CIPModeInit();\nEND_IF;"
}
]
},
{
"id": "1F6",
"title": "Reset SPWords",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "BlenderCtrl_ResetSPWord",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "BlenderCtrl_ResetSPWord();"
}
]
},
{
"id": "207",
"title": "Blender Run Control",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "BlenderRun__Control",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "BlenderRun__Control();"
}
]
},
{
"id": "218",
"title": "Tank Pressure Control",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Prod Tank PressCtrl",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Prod Tank PressCtrl();"
}
]
},
{
"id": "229",
"title": "Balaiage",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Baialage",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Baialage();"
}
]
},
{
"id": "23A",
"title": "First Production",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FB_scl",
"block_name": "ProcedureFirstProduction",
"block_type": "FB",
"instance_scope": "GlobalVariable",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// ERROR: Call a bloque no soportado: ProcedureFirstProduction"
}
]
},
{
"id": "24B",
"title": "CIP MAIN Calling",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "CIPMain",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "CIPMain();"
}
]
},
{
"id": "25C",
"title": "Blender Rinse",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "BlenderRinse",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "BlenderRinse();"
}
]
},
{
"id": "26D",
"title": "Safeties",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Safeties",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Safeties();"
}
]
},
{
"id": "27E",
"title": "Instrument Scanner",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Instrument_Scanner",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Instrument_Scanner();"
}
]
},
{
"id": "28F",
"title": "Vacuum Control",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "VacuumCtrl",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "VacuumCtrl();"
}
]
},
{
"id": "2A0",
"title": "Syrup Room Control",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "SyrupRoomCtrl",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "SyrupRoomCtrl();"
}
]
},
{
"id": "2B1",
"title": "Blend Procedure Data",
"comment": "",
"logic": [
{
"instruction_uid": "22",
"uid": "22",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mDelayPowerOnTmr\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"mDelayPowerOnTmr\""
},
{
"instruction_uid": "23",
"uid": "23",
"type": "Call_FB_scl",
"block_name": "Procedure",
"block_type": "FB",
"instance_scope": "GlobalVariable",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "22",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"mDelayPowerOnTmr\" THEN\n // ERROR: Call a bloque no soportado: Procedure\nEND_IF;"
}
]
},
{
"id": "2C2",
"title": "Pneumatic Valve Control",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Pneumatic Valve Ctrl",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Pneumatic Valve Ctrl();"
}
]
},
{
"id": "2D3",
"title": "Pumps Control",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "PumpsControl",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "PumpsControl();"
}
]
},
{
"id": "2E4",
"title": "Prod Report Manager",
"comment": "",
"logic": [
{
"instruction_uid": "22",
"uid": "22",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Report\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Report\""
},
{
"instruction_uid": "23",
"uid": "23",
"type": "Call_FC_scl",
"block_name": "ProdReportManager",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "22",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Report\" THEN\n ProdReportManager();\nEND_IF;"
}
]
},
{
"id": "2F5",
"title": "Outputs",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Output",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Output();"
}
]
},
{
"id": "306",
"title": "SLIM BLOCK",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "SLIM_Block",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "SLIM_Block();"
}
]
},
{
"id": "317",
"title": "Interlocking Panel 1",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Interlocking_Panel_1",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Interlocking_Panel_1();"
}
]
},
{
"id": "328",
"title": "Filler Control",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "FillerControl",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "FillerControl();"
}
]
},
{
"id": "339",
"title": "Blender Ctrl Update PWORD",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "BlenderCtrl_UpdatePWord",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "BlenderCtrl_UpdatePWord();"
}
]
},
{
"id": "34A",
"title": "ResetTotalizer",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlendResetTotalizer\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gBlendResetTotalizer\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "Se",
"template_values": {},
"inputs": {},
"outputs": {}
}
]
},
{
"id": "35B",
"title": "ResetWaterTot",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTN301_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gFTN301_ResetTot\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
}
},
"outputs": {},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 28: \"gFTN301_ResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Se",
"template_values": {},
"inputs": {},
"outputs": {}
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "LocalVariable",
"type": "variable",
"name": "\"mResetWaterTot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Se",
"source_instruction_uid": "29",
"source_pin": "q"
}
},
"outputs": {}
}
]
},
{
"id": "36C",
"title": "Water VFM Reset Totalizer",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTN301_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gFTN301_ResetTot\""
},
{
"instruction_uid": "24",
"uid": "24",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTN301_ResetTot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "37D",
"title": "ResetCO2Tot",
"comment": "",
"logic": [
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTP302_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gFTP302_ResetTot\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
}
},
"outputs": {},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "28",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 29: \"gFTP302_ResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Se",
"template_values": {},
"inputs": {},
"outputs": {}
},
{
"instruction_uid": "31",
"uid": "31",
"type": "Contact",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gSyrupRoomEn\""
},
"in": {
"type": "connection",
"source_instruction_type": "Se",
"source_instruction_uid": "30",
"source_pin": "q"
}
},
"outputs": {}
},
{
"instruction_uid": "32",
"uid": "32",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "26",
"scope": "LocalVariable",
"type": "variable",
"name": "\"mResetSyrupTot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "31",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "38E",
"title": "Syrup MFM Reset Totalizer",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTP302_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gFTP302_ResetTot\""
},
{
"instruction_uid": "24",
"uid": "24",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTP302_ResetTot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "39F",
"title": "ResetProductTot",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTM303_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gFTM303_ResetTot\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
}
},
"outputs": {},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 28: \"gFTM303_ResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Se",
"template_values": {},
"inputs": {},
"outputs": {}
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "LocalVariable",
"type": "variable",
"name": "\"mResetCO2Tot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Se",
"source_instruction_uid": "29",
"source_pin": "q"
}
},
"outputs": {}
}
]
},
{
"id": "3B0",
"title": "CO2 MFM Reset Tot",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTM303_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gFTM303_ResetTot\""
},
{
"instruction_uid": "24",
"uid": "24",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTM303_ResetTot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "3C1",
"title": "ResetCO2Tot",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gProductMFMResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gProductMFMResetTot\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
}
},
"outputs": {},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"inputs": {
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
},
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// Logic O 28: \"gProductMFMResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Se",
"template_values": {},
"inputs": {},
"outputs": {}
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "LocalVariable",
"type": "variable",
"name": "\"mResetProductTot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Se",
"source_instruction_uid": "29",
"source_pin": "q"
}
},
"outputs": {}
}
]
},
{
"id": "3D2",
"title": "Reset Totalizer",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gProductMFMResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gProductMFMResetTot\""
},
{
"instruction_uid": "24",
"uid": "24",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gProductMFMResetTot\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "3E3",
"title": "Reset Totalizer",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlendResetTotalizer\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"gBlendResetTotalizer\""
},
{
"instruction_uid": "24",
"uid": "24",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlendResetTotalizer\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "3F4",
"title": "Blender Ctrl Command",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Simulation\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Simulation\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Call_FC_scl",
"block_name": "BlenderCtrl_MFM Command",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_Simulation\" THEN\n BlenderCtrl_MFM Command();\nEND_IF;"
}
]
},
{
"id": "405",
"title": "DP Global Diag",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "CPU_DP Global Diag",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "CPU_DP Global Diag();"
}
]
},
{
"id": "416",
"title": "Profibus",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "Profibus Network",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "Profibus Network();"
}
]
},
{
"id": "427",
"title": "Valve Fault",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "ModValveFault",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "ModValveFault();"
}
]
},
{
"id": "438",
"title": "All Auto",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Commands_From_HMI\".\"F7_DeviceControl\".\"Command\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Commands_From_HMI\".\"F7_DeviceControl\".\"Command\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Commands_From_HMI\".\"F7_DeviceControl\".\"Enable\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Commands_From_HMI\".\"F7_DeviceControl\".\"Command\" AND \"HMI_Variables_Cmd\".\"Commands_From_HMI\".\"F7_DeviceControl\".\"Enable\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "NBox",
"template_values": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
},
"bit": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"M19011\""
}
},
"outputs": {}
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Call",
"block_name": "BlenderCtrl_All Auto",
"block_type": "FC",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "NBox",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {}
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Commands_From_HMI\".\"F7_DeviceControl\".\"Light\""
}
},
"outputs": {}
}
]
},
{
"id": "449",
"title": "Ctrl HMI Manual Active",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "BlenderCtrl_ManualActive",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "BlenderCtrl_ManualActive();"
}
]
},
{
"id": "45A",
"title": "Mod Copy Recipe",
"comment": "",
"logic": [
{
"instruction_uid": "33",
"uid": "33",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
},
{
"instruction_uid": "34",
"uid": "34",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mFP_Recip_Main_Page\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "33",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\" AND \"mFP_Recip_Main_Page\""
},
{
"instruction_uid": "35",
"uid": "35",
"type": "Coil_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mAux_FP_M700_1\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "34",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"mAux_FP_M700_1\" := \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\" AND \"mFP_Recip_Main_Page\";"
},
{
"instruction_uid": "36",
"uid": "36",
"type": "Coil",
"template_values": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mFP_Recip_Main_Page\""
}
},
"outputs": {}
},
{
"instruction_uid": "37",
"uid": "37",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
},
{
"instruction_uid": "38",
"uid": "38",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "26",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Recipe\".\"Edit\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "37",
"source_pin": "out"
}
},
"outputs": {},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\" AND \"HMI_Variables_Cmd\".\"Recipe\".\"Edit\""
},
{
"instruction_uid": "39",
"uid": "39",
"type": "SdCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "27",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"T_Pulse_Recipe_Edit\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "38",
"source_pin": "out"
}
},
"outputs": {}
},
{
"instruction_uid": "40",
"uid": "40",
"type": "Contact",
"template_values": {},
"inputs": {
"operand": {
"uid": "29",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"T_Pulse_Recipe_Edit\""
},
"in": {
"type": "connection",
"source_instruction_type": "SdCoil",
"source_instruction_uid": "39",
"source_pin": "out"
}
},
"outputs": {}
},
{
"instruction_uid": "41",
"uid": "41",
"type": "RCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "30",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Recipe\".\"Edit\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "40",
"source_pin": "out"
}
},
"outputs": {}
},
{
"instruction_uid": "42",
"uid": "42",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "31",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mAux_FP_M700_1\""
}
},
"outputs": {},
"scl": "// RLO: \"mAux_FP_M700_1\""
},
{
"instruction_uid": "43",
"uid": "43",
"type": "SCoil",
"template_values": {},
"inputs": {
"operand": {
"uid": "32",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Recipe\".\"Edit\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "42",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "46B",
"title": "to HMI - Recipe Management",
"comment": "",
"logic": [
{
"instruction_uid": "42",
"uid": "42",
"type": "Contact_scl",
"template_values": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"AUX TRUE\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: \"AUX TRUE\""
},
{
"instruction_uid": "43",
"uid": "43",
"type": "Call_FB_scl",
"block_name": "RecipeManagement - Prod",
"block_type": "FB",
"instance_scope": "GlobalVariable",
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "42",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF \"AUX TRUE\" THEN\n // ERROR: Call a bloque no soportado: RecipeManagement - Prod\nEND_IF;"
}
]
},
{
"id": "47C",
"title": "Recipe Calculation",
"comment": "",
"logic": [
{
"instruction_uid": "21",
"uid": "21",
"type": "Call_FC_scl",
"block_name": "RecipeCalculation",
"block_type": "FC",
"inputs": {
"en": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "RecipeCalculation();"
}
]
}
]
}