Simatic_XML_Parser_to_SCL/TestLAD_simplified.json

156 lines
5.3 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": "24",
"uid": "24",
"type": "Contact",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_10Hz\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {}
},
{
"instruction_uid": "25",
"uid": "25",
"type": "PBox",
"template_values": {},
"negated_pins": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
},
"bit": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"M19001\""
}
},
"outputs": {}
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Coil",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_5Hz\""
},
"in": {
"type": "connection",
"source_instruction_type": "PBox",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {}
}
]
},
{
"id": "1A",
"title": "Clock Bit",
"comment": "",
"logic": [
{
"instruction_uid": "24",
"uid": "24",
"type": "Contact",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "21",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_10Hz\""
},
"in": {
"type": "powerrail"
}
},
"outputs": {}
},
{
"instruction_uid": "25",
"uid": "25",
"type": "NBox",
"template_values": {},
"negated_pins": {},
"inputs": {
"in": {
"type": "connection",
"source_instruction_type": "Contact",
"source_instruction_uid": "24",
"source_pin": "out"
},
"bit": {
"uid": "22",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"M19001\""
}
},
"outputs": {}
},
{
"instruction_uid": "26",
"uid": "26",
"type": "Coil",
"template_values": {},
"negated_pins": {},
"inputs": {
"operand": {
"uid": "23",
"scope": "GlobalVariable",
"type": "variable",
"name": "\"Clock_5Hz\""
},
"in": {
"type": "connection",
"source_instruction_type": "NBox",
"source_instruction_uid": "25",
"source_pin": "out"
}
},
"outputs": {}
}
]
}
]
}