Simatic_XML_Parser_to_SCL/TestLAD_simplified_processe...

215 lines
7.8 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": "1A",
"title": "Filler Head",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {},
"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_scl",
"template_values": {
"blk_type": "Type"
},
"negated_pins": {},
"inputs": {
"SRCBLK": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_PID\".\"PPM303\""
},
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {
"RET_VAL": [
{
"uid": "23",
"scope": "LocalVariable",
"type": "variable",
"name": "\"Block_Move_Err\""
}
],
"DSTBLK": [
{
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Filler_Head_Variables\".\"FillerHead\""
}
]
},
"scl": "IF \"AUX FALSE\" THEN\n \"Block_Move_Err\" := BLKMOV(SRCBLK := \"HMI_PID\".\"PPM303\", DSTBLK => \"Filler_Head_Variables\".\"FillerHead\"); // ADVERTENCIA: BLKMOV usado directamente, probablemente no compile!\nEND_IF;"
}
]
},
{
"id": "3C",
"title": "Error Faults",
"comment": "",
"logic": [
{
"instruction_uid": "25",
"uid": "25",
"type": "Contact_scl",
"template_values": {},
"negated_pins": {
"operand": true
},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"AUX FALSE\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {},
"scl": "// RLO: (NOT \"AUX FALSE\")"
},
{
"instruction_uid": "26",
"uid": "26",
"type": "SCoil_scl",
"template_values": {},
"negated_pins": {},
"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": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF (NOT \"AUX FALSE\") THEN\n \"HMI_Variables_Status\".\"Meters\".\"QTM3012_PRD_Fault\" := TRUE;\nEND_IF;"
},
{
"instruction_uid": "27",
"uid": "27",
"type": "Coil_scl",
"template_values": {},
"negated_pins": {
"operand": true
},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"gmPDS2000_Error_Fault\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "\"gmPDS2000_Error_Fault\" := (NOT \"AUX FALSE\");"
},
{
"instruction_uid": "28",
"uid": "28",
"type": "RCoil_scl",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "24",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_Variables_Status\".\"Meters\".\"QTM3012_PRD_Run\""
},
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {},
"scl": "IF (NOT \"AUX FALSE\") THEN\n \"HMI_Variables_Status\".\"Meters\".\"QTM3012_PRD_Run\" := FALSE;\nEND_IF;"
}
]
}
]
}