Simatic_XML_Parser_to_SCL/TestLAD_simplified_processe...

1330 lines
53 KiB
JSON

{
"block_name": "TestLAD",
"block_number": 2,
"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": "Manual Syrup Drain Valve Open - Operator Alarm",
"comment": "",
"logic": [
{
"instruction_uid": "30",
"uid": "30",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gSyrupRoomEn\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"gSyrupRoomEn\""
},
{
"instruction_uid": "31",
"uid": "31",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {
"operand": true
},
"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": {
"out": []
},
"scl": "// RLO: \"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")"
},
{
"instruction_uid": "32",
"uid": "32",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {
"operand": true
},
"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": {
"out": []
},
"scl": "// RLO: (\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND (NOT \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\")"
},
{
"instruction_uid": "33",
"uid": "33",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"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": {
"out": []
},
"scl": "// RLO: (\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND (NOT \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\""
},
{
"instruction_uid": "34",
"uid": "34",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {
"operand": true
},
"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": {
"out": []
},
"scl": "// RLO: ((\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND (NOT \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\") AND (NOT \"Procedure_Variables\".\"Syr_RunOut\".\"Done\")"
},
{
"instruction_uid": "35",
"uid": "35",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "26",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlenderCIPMode\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "31",
"source_pin": "out"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: (\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND \"gBlenderCIPMode\""
},
{
"instruction_uid": "36",
"uid": "36",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"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": {
"out": []
},
"scl": "// RLO: ((\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND \"gBlenderCIPMode\") AND \"gIN_CIP_CIPRunning\""
},
{
"instruction_uid": "37",
"uid": "37",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "28",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Procedure_Variables\".\"Blender_Run\".\"Running\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "36",
"source_pin": "out"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: (((\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND \"gBlenderCIPMode\") AND \"gIN_CIP_CIPRunning\") AND \"Procedure_Variables\".\"Blender_Run\".\"Running\""
},
{
"instruction_uid": "38",
"uid": "38",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"negated_pins": {},
"inputs": {
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "34",
"source_pin": "out"
},
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "37",
"source_pin": "out"
}
},
"outputs": {
"out": []
},
"scl": "// Logic O 38: ((\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND (NOT \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\") AND (NOT \"Procedure_Variables\".\"Syr_RunOut\".\"Done\") OR ((((\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND \"gBlenderCIPMode\") AND \"gIN_CIP_CIPRunning\") AND \"Procedure_Variables\".\"Blender_Run\".\"Running\")"
},
{
"instruction_uid": "39",
"uid": "39",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"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 (NOT \"gIN_HVP301_Aux\")) AND (NOT \"HMI_Blender_Parameters\".\"Processor_Options\".\"Blender_OPT\".\"_FastChangeOverEnabled\") AND \"Procedure_Variables\".\"FTP302Line_Preparation\".\"Done\") AND (NOT \"Procedure_Variables\".\"Syr_RunOut\".\"Done\") OR ((((\"gSyrupRoomEn\" AND (NOT \"gIN_HVP301_Aux\")) AND \"gBlenderCIPMode\") AND \"gIN_CIP_CIPRunning\") AND \"Procedure_Variables\".\"Blender_Run\".\"Running\");"
}
],
"language": "LAD"
},
{
"id": "1A",
"title": "Manual Syrup Drain Valve Open - Operator Alarm",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gIN_HVM302_Aux\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"gIN_HVM302_Aux\""
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Sd_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"s": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
},
"timer": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mHVM302_Dly\""
},
"tv": {
"uid": "23",
"scope": "TypedConstant",
"type": "constant",
"datatype": "TypedConstant",
"value": "S5T#1S"
},
"en": {
"type": "connection",
"source_instruction_uid": "25",
"source_instruction_type": "Contact",
"source_pin": "out"
}
},
"outputs": {
"q": []
},
"scl": "\"mHVM302_Dly\"(IN := \"gIN_HVM302_Aux\", PT := S5T#1S); // TODO: Declarar \"mHVM302_Dly\" : TON; en VAR_STAT o VAR"
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"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": {},
"scl": "\"gHVM302_Open\" := \"mHVM302_Dly\".Q;"
}
],
"language": "LAD"
},
{
"id": "2B",
"title": "ResetTotalizer",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gBlendResetTotalizer\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"gBlendResetTotalizer\""
},
{
"instruction_uid": "25",
"uid": "25",
"type": "Se_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"s": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
},
"timer": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
},
"tv": {
"uid": "23",
"scope": "TypedConstant",
"type": "constant",
"datatype": "TypedConstant",
"value": "S5T#2S"
},
"en": {
"type": "connection",
"source_instruction_uid": "24",
"source_instruction_type": "Contact",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"mResetTotalizerTmr\"(IN := \"gBlendResetTotalizer\", PT := S5T#2S); // TODO: Declarar \"mResetTotalizerTmr\" : TP; en VAR_STAT o VAR"
}
],
"language": "LAD"
},
{
"id": "3C",
"title": "ResetWaterTot",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTN301_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"gFTN301_ResetTot\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"negated_pins": {},
"inputs": {
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
},
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {
"out": []
},
"scl": "// Logic O 28: \"gFTN301_ResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Se_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"s": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "28",
"source_pin": "out"
},
"timer": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetFTN301TotTmr\""
},
"tv": {
"uid": "24",
"scope": "TypedConstant",
"type": "constant",
"datatype": "TypedConstant",
"value": "S5T#2S"
},
"en": {
"type": "connection",
"source_instruction_uid": "28",
"source_instruction_type": "O",
"source_pin": "out"
}
},
"outputs": {
"q": []
},
"scl": "\"mResetFTN301TotTmr\"(IN := \"gFTN301_ResetTot\" OR \"mResetTotalizerTmr\", PT := S5T#2S); // TODO: Declarar \"mResetFTN301TotTmr\" : TP; en VAR_STAT o VAR"
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"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": {},
"scl": "\"mResetWaterTot\" := \"mResetFTN301TotTmr\".Q;"
}
],
"language": "LAD"
},
{
"id": "4D",
"title": "ResetCO2Tot",
"comment": "",
"logic": [
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTP302_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"gFTP302_ResetTot\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"negated_pins": {},
"inputs": {
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
},
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "28",
"source_pin": "out"
}
},
"outputs": {
"out": []
},
"scl": "// Logic O 29: \"gFTP302_ResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Se_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"s": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "29",
"source_pin": "out"
},
"timer": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetFTP302TotTmr\""
},
"tv": {
"uid": "24",
"scope": "TypedConstant",
"type": "constant",
"datatype": "TypedConstant",
"value": "S5T#2S"
},
"en": {
"type": "connection",
"source_instruction_uid": "29",
"source_instruction_type": "O",
"source_pin": "out"
}
},
"outputs": {
"q": []
},
"scl": "\"mResetFTP302TotTmr\"(IN := \"gFTP302_ResetTot\" OR \"mResetTotalizerTmr\", PT := S5T#2S); // TODO: Declarar \"mResetFTP302TotTmr\" : TP; en VAR_STAT o VAR"
},
{
"instruction_uid": "31",
"uid": "31",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"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": {
"out": []
},
"scl": "// RLO: \"mResetFTP302TotTmr\".Q AND \"gSyrupRoomEn\""
},
{
"instruction_uid": "32",
"uid": "32",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"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": {},
"scl": "\"mResetSyrupTot\" := \"mResetFTP302TotTmr\".Q AND \"gSyrupRoomEn\";"
}
],
"language": "LAD"
},
{
"id": "5E",
"title": "ResetProductTot",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gFTM303_ResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"gFTM303_ResetTot\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"negated_pins": {},
"inputs": {
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
},
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {
"out": []
},
"scl": "// Logic O 28: \"gFTM303_ResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Se_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"s": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "28",
"source_pin": "out"
},
"timer": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetFTM303TotTmr\""
},
"tv": {
"uid": "24",
"scope": "TypedConstant",
"type": "constant",
"datatype": "TypedConstant",
"value": "S5T#2S"
},
"en": {
"type": "connection",
"source_instruction_uid": "28",
"source_instruction_type": "O",
"source_pin": "out"
}
},
"outputs": {
"q": []
},
"scl": "\"mResetFTM303TotTmr\"(IN := \"gFTM303_ResetTot\" OR \"mResetTotalizerTmr\", PT := S5T#2S); // TODO: Declarar \"mResetFTM303TotTmr\" : TP; en VAR_STAT o VAR"
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"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": {},
"scl": "\"mResetCO2Tot\" := \"mResetFTM303TotTmr\".Q;"
}
],
"language": "LAD"
},
{
"id": "6F",
"title": "ResetCO2Tot",
"comment": "",
"logic": [
{
"instruction_uid": "26",
"uid": "26",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gProductMFMResetTot\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"gProductMFMResetTot\""
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetTotalizerTmr\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"mResetTotalizerTmr\""
},
{
"instruction_uid": "28",
"uid": "28",
"type": "O_scl",
"template_values": {
"Card": "Cardinality"
},
"negated_pins": {},
"inputs": {
"in1": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "26",
"source_pin": "out"
},
"in2": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "27",
"source_pin": "out"
}
},
"outputs": {
"out": []
},
"scl": "// Logic O 28: \"gProductMFMResetTot\" OR \"mResetTotalizerTmr\""
},
{
"instruction_uid": "29",
"uid": "29",
"type": "Se_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"s": {
"type": "connection",
"source_instruction_type": "O",
"source_instruction_uid": "28",
"source_pin": "out"
},
"timer": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mResetProductTotTmr\""
},
"tv": {
"uid": "24",
"scope": "TypedConstant",
"type": "constant",
"datatype": "TypedConstant",
"value": "S5T#2S"
},
"en": {
"type": "connection",
"source_instruction_uid": "28",
"source_instruction_type": "O",
"source_pin": "out"
}
},
"outputs": {
"q": []
},
"scl": "\"mResetProductTotTmr\"(IN := \"gProductMFMResetTot\" OR \"mResetTotalizerTmr\", PT := S5T#2S); // TODO: Declarar \"mResetProductTotTmr\" : TP; en VAR_STAT o VAR"
},
{
"instruction_uid": "30",
"uid": "30",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"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": {},
"scl": "\"mResetProductTot\" := \"mResetProductTotTmr\".Q;"
}
],
"language": "LAD"
},
{
"id": "80",
"title": "Mod Copy Recipe",
"comment": "",
"logic": [
{
"instruction_uid": "33",
"uid": "33",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
},
{
"instruction_uid": "34",
"uid": "34",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {
"operand": true
},
"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": {
"out": []
},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\" AND (NOT \"mFP_Recip_Main_Page\")"
},
{
"instruction_uid": "35",
"uid": "35",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"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 (NOT \"mFP_Recip_Main_Page\");"
},
{
"instruction_uid": "36",
"uid": "36",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "24",
"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": "\"mFP_Recip_Main_Page\" := \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\";"
},
{
"instruction_uid": "37",
"uid": "37",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "25",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\""
},
{
"instruction_uid": "38",
"uid": "38",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"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": {
"out": []
},
"scl": "// RLO: \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\" AND \"HMI_Variables_Cmd\".\"Recipe\".\"Edit\""
},
{
"instruction_uid": "39",
"uid": "39",
"type": "Se_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"timer": {
"uid": "27",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"T_Pulse_Recipe_Edit\""
},
"s": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "38",
"source_pin": "out"
},
"tv": {
"uid": "28",
"scope": "TypedConstant",
"type": "constant",
"datatype": "TypedConstant",
"value": "S5T#500ms"
},
"en": {
"type": "connection",
"source_instruction_uid": "38",
"source_instruction_type": "Contact",
"source_pin": "out"
}
},
"outputs": {
"q": []
},
"scl": "\"T_Pulse_Recipe_Edit\"(IN := \"HMI_Variables_Cmd\".\"Recipe\".\"Main_Page\" AND \"HMI_Variables_Cmd\".\"Recipe\".\"Edit\", PT := S5T#500ms); // TODO: Declarar \"T_Pulse_Recipe_Edit\" : TP; en VAR_STAT o VAR"
},
{
"instruction_uid": "40",
"uid": "40",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"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": "q"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"T_Pulse_Recipe_Edit\".Q AND \"T_Pulse_Recipe_Edit\""
},
{
"instruction_uid": "41",
"uid": "41",
"type": "RCoil_scl",
"template_values": {},
"negated_pins": {},
"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": {},
"scl": "IF \"T_Pulse_Recipe_Edit\".Q AND \"T_Pulse_Recipe_Edit\" THEN\n \"HMI_Variables_Cmd\".\"Recipe\".\"Edit\" := FALSE;\nEND_IF;"
},
{
"instruction_uid": "42",
"uid": "42",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "31",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"mAux_FP_M700_1\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {
"out": []
},
"scl": "// RLO: \"mAux_FP_M700_1\""
},
{
"instruction_uid": "43",
"uid": "43",
"type": "SCoil_scl",
"template_values": {},
"negated_pins": {},
"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": {},
"scl": "IF \"mAux_FP_M700_1\" THEN\n \"HMI_Variables_Cmd\".\"Recipe\".\"Edit\" := TRUE;\nEND_IF;"
}
],
"language": "LAD"
}
]
}