Simatic_XML_Parser_to_SCL/TestLAD_simplified.json

113 lines
3.5 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",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"AUX FALSE\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {}
},
{
"instruction_uid": "26",
"uid": "26",
"type": "BLKMOV",
"template_values": {
"blk_type": "Type"
},
"negated_pins": {},
"inputs": {
"en": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "25",
"source_pin": "out"
},
"SRCBLK": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"HMI_PID\".\"PPM303\""
}
},
"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\""
}
]
}
}
]
}
]
}