Simatic_XML_Parser_to_SCL/TestLAD_simplified.json

121 lines
3.8 KiB
JSON

{
"block_name": "TestLAD",
"block_number": 2,
"language": "LAD",
"block_comment": "",
"interface": {
"Return": [
{
"name": "Ret_Val",
"datatype": "Void"
}
]
},
"networks": [
{
"id": "9",
"title": "Clock Bit",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact",
"template_values": {},
"negated_pins": {},
"inputs": {
"in": {
"type": "powerrail"
},
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_10Hz\""
}
},
"outputs": {}
},
{
"instruction_uid": "24",
"uid": "24",
"type": "Coil",
"template_values": {},
"negated_pins": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
},
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_5Hz\""
}
},
"outputs": {}
}
]
},
{
"id": "1A",
"title": "Clock Bit",
"comment": "",
"logic": [
{
"instruction_uid": "23",
"uid": "23",
"type": "Contact",
"template_values": {},
"negated_pins": {
"operand": true
},
"inputs": {
"in": {
"type": "powerrail"
},
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_10Hz\""
}
},
"outputs": {}
},
{
"instruction_uid": "24",
"uid": "24",
"type": "Coil",
"template_values": {},
"negated_pins": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "23",
"source_pin": "out"
},
"operand": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_5Hz\""
}
},
"outputs": {}
}
]
},
{
"id": "2B",
"title": "",
"comment": "",
"logic": [],
"error": "FlgNet not found"
}
]
}