164 lines
5.9 KiB
JSON
164 lines
5.9 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_scl",
|
|
"template_values": {},
|
|
"negated_pins": {},
|
|
"inputs": {
|
|
"operand": {
|
|
"uid": "21",
|
|
"scope": "GlobalVariable",
|
|
"type": "variable",
|
|
"name": "\"Clock_10Hz\""
|
|
},
|
|
"in": {
|
|
"type": "powerrail"
|
|
}
|
|
},
|
|
"outputs": {},
|
|
"scl": "// RLO: \"Clock_10Hz\""
|
|
},
|
|
{
|
|
"instruction_uid": "25",
|
|
"uid": "25",
|
|
"type": "PBox_scl",
|
|
"template_values": {},
|
|
"negated_pins": {},
|
|
"inputs": {
|
|
"bit": {
|
|
"uid": "22",
|
|
"scope": "GlobalVariable",
|
|
"type": "variable",
|
|
"name": "\"M19001\""
|
|
},
|
|
"in": {
|
|
"type": "connection",
|
|
"source_instruction_type": "Contact",
|
|
"source_instruction_uid": "24",
|
|
"source_pin": "out"
|
|
}
|
|
},
|
|
"outputs": {},
|
|
"scl": "\"stat_M19001\" := \"Clock_10Hz\"; // P_TRIG: \"Clock_10Hz\" AND NOT \"stat_M19001\""
|
|
},
|
|
{
|
|
"instruction_uid": "26",
|
|
"uid": "26",
|
|
"type": "Coil_scl",
|
|
"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": {},
|
|
"scl": "\"Clock_5Hz\" := \"Clock_10Hz\" AND NOT \"stat_M19001\";"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "1A",
|
|
"title": "Clock Bit",
|
|
"comment": "",
|
|
"logic": [
|
|
{
|
|
"instruction_uid": "24",
|
|
"uid": "24",
|
|
"type": "Contact_scl",
|
|
"template_values": {},
|
|
"negated_pins": {
|
|
"operand": true
|
|
},
|
|
"inputs": {
|
|
"operand": {
|
|
"uid": "21",
|
|
"scope": "GlobalVariable",
|
|
"type": "variable",
|
|
"name": "\"Clock_10Hz\""
|
|
},
|
|
"in": {
|
|
"type": "powerrail"
|
|
}
|
|
},
|
|
"outputs": {},
|
|
"scl": "// RLO: (NOT \"Clock_10Hz\")"
|
|
},
|
|
{
|
|
"instruction_uid": "25",
|
|
"uid": "25",
|
|
"type": "NBox_scl",
|
|
"template_values": {},
|
|
"negated_pins": {},
|
|
"inputs": {
|
|
"bit": {
|
|
"uid": "22",
|
|
"scope": "GlobalVariable",
|
|
"type": "variable",
|
|
"name": "\"M19001\""
|
|
},
|
|
"in": {
|
|
"type": "connection",
|
|
"source_instruction_type": "Contact",
|
|
"source_instruction_uid": "24",
|
|
"source_pin": "out"
|
|
}
|
|
},
|
|
"outputs": {},
|
|
"scl": "\"stat_M19001\" := (NOT \"Clock_10Hz\"); // N_TRIG: NOT (NOT \"Clock_10Hz\") AND \"stat_M19001\""
|
|
},
|
|
{
|
|
"instruction_uid": "26",
|
|
"uid": "26",
|
|
"type": "Coil_scl",
|
|
"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": {},
|
|
"scl": "\"Clock_5Hz\" := NOT (NOT \"Clock_10Hz\") AND \"stat_M19001\";"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |