Compare commits

...

1 Commits
main ... dev

Author SHA1 Message Date
Taryel Hlontsi 74da693836 Update data 2024-09-18 16:47:53 +02:00
2 changed files with 154 additions and 120 deletions

View File

@ -2,13 +2,22 @@
{ {
"Name": "ThirdPartyInput", "Name": "ThirdPartyInput",
"RunAs": "Client-script", "RunAs": "Client-script",
"Script": "import time\r\nt = int(time.time() * 1000)\r\ncounter = 0\r\nchunks = []\r\nchunks.append(2)\r\nchunks.append(counter)\r\nchunks.append((t >> 48))\r\nchunks.append((t >> 32) & 0xFFFF)\r\nchunks.append((t >> 16) & 0xFFFF)\r\nchunks.append(t & 0xFFFF)\r\nchunks.append(128)\r\nchunks.append(5)\r\nchunks.append(65)\r\ninstance.write_multiple_registers(505, chunks)", "Script": "import time\r\nt = int(time.time() * 1000)\r\ncounter = 0\r\nchunks = []\r\nchunks.append(2)\r\nchunks.append(counter)\r\nchunks.append((t >> 48))\r\nchunks.append((t >> 32) & 0xFFFF)\r\nchunks.append((t >> 16) & 0xFFFF)\r\nchunks.append(t & 0xFFFF)\r\nchunks.append(128)\r\nchunks.append(1)\r\nchunks.append(65)\r\ninstance.write_multiple_registers(505, chunks)",
"ScriptExample": "import time\r\nt = int(time.time() * 1000)\r\ncounter = 0\r\nchunks = []\r\nchunks.append(2)\r\nchunks.append(counter)\r\nchunks.append((t >> 48))\r\nchunks.append((t >> 32) & 0xFFFF)\r\nchunks.append((t >> 16) & 0xFFFF)\r\nchunks.append(t & 0xFFFF)\r\nchunks.append(129)\r\nchunks.append(1)\r\nchunks.append(65)\r\ninstance.write_multiple_registers(505, chunks)" "ScriptExample": "import time\r\nt = int(time.time() * 1000)\r\ncounter = 0\r\nchunks = []\r\nchunks.append(2)\r\nchunks.append(counter)\r\nchunks.append((t >> 48))\r\nchunks.append((t >> 32) & 0xFFFF)\r\nchunks.append((t >> 16) & 0xFFFF)\r\nchunks.append(t & 0xFFFF)\r\nchunks.append(129)\r\nchunks.append(1)\r\nchunks.append(65)\r\ninstance.write_multiple_registers(505, chunks)"
}, },
{ {
"Name": "Ads", "Name": "Ads",
"RunAs": "Client", "RunAs": "Client",
"Registers": [ "Registers": [
{
"CanOverride": false,
"Name": "ThirdExposedTurbine",
"Type": "Input",
"Function": "F4",
"Address": 771,
"DisplayAs": "RawBinary",
"PossibleValues": []
},
{ {
"CanOverride": false, "CanOverride": false,
"Name": "Status", "Name": "Status",
@ -149,130 +158,34 @@
] ]
}, },
{ {
"Name": "CIP300", "Name": "CIP400",
"RunAs": "Server", "RunAs": "Server",
"Registers": [ "Registers": [
{ {
"CanOverride": true, "CanOverride": true,
"Name": "PhotecellSensing", "Name": "Dimming",
"Type": "Input",
"Function": "F4",
"Address": 20202,
"DisplayAs": "DropdownVariants",
"PossibleValues": [
{
"Night": 1
},
{
"Twilight": 2
},
{
"Day": 3
},
{
"FailSafeIntensity": 255
}
]
},
{
"CanOverride": true,
"Name": "FullSystemStatus",
"Type": "Input",
"Function": "F4",
"Address": 19000,
"DisplayAs": "DropdownVariants",
"PossibleValues": [
{
"Normal": 1
},
{
"Fail": 2
},
{
"Alarm": 3
},
{
"FailAndAlarm": 4
},
{
"BAD": 666
}
]
},
{
"CanOverride": true,
"Name": "TimeOfDay",
"Type": "Input",
"Function": "F4",
"Address": 20200,
"DisplayAs": "DropdownVariants",
"PossibleValues": [
{
"ControllerOff": 0
},
{
"Night": 1
},
{
"Twilight": 2
},
{
"Day": 3
},
{
"Off": 4
},
{
"SarMode1": 16
},
{
"SarMode2": 17
},
{
"FailSafeIntensity": 255
}
]
},
{
"CanOverride": false,
"Name": "ForcedOffAdls",
"Type": "Holding", "Type": "Holding",
"Function": "F3", "Function": "F6",
"Address": 20210, "Address": 20203,
"DisplayAs": "DropdownVariants", "DisplayAs": "DropdownVariants",
"PossibleValues": [ "PossibleValues": [
{
"100%": 128
},
{
"30%": 129
},
{
"10%": 130
},
{ {
"Auto": 0 "Auto": 0
}, },
{ {
"AircraftNotDetected": 128 "Garbage": 512
},
{
"AircraftDetected": 129
} }
] ]
} },
],
"DisplayVariants": [
"DropdownVariants",
"RawBinary",
"RawInteger"
],
"Functions": [
"F1",
"F2",
"F3",
"F4",
"F5",
"F6",
"F15",
"F16"
]
},
{
"Name": "CIP400",
"RunAs": "Server",
"Registers": [
{ {
"CanOverride": true, "CanOverride": true,
"Name": "SelfStatus", "Name": "SelfStatus",
@ -425,6 +338,127 @@
"F16" "F16"
] ]
}, },
{
"Name": "CIP300",
"RunAs": "Server",
"Registers": [
{
"CanOverride": true,
"Name": "PhotecellSensing",
"Type": "Input",
"Function": "F4",
"Address": 20202,
"DisplayAs": "DropdownVariants",
"PossibleValues": [
{
"Night": 1
},
{
"Twilight": 2
},
{
"Day": 3
},
{
"FailSafeIntensity": 255
}
]
},
{
"CanOverride": true,
"Name": "FullSystemStatus",
"Type": "Input",
"Function": "F4",
"Address": 19000,
"DisplayAs": "DropdownVariants",
"PossibleValues": [
{
"Normal": 1
},
{
"Fail": 2
},
{
"Alarm": 3
},
{
"FailAndAlarm": 4
},
{
"BAD": 666
}
]
},
{
"CanOverride": true,
"Name": "TimeOfDay",
"Type": "Input",
"Function": "F4",
"Address": 20200,
"DisplayAs": "DropdownVariants",
"PossibleValues": [
{
"ControllerOff": 0
},
{
"Night": 1
},
{
"Twilight": 2
},
{
"Day": 3
},
{
"Off": 4
},
{
"SarMode1": 16
},
{
"SarMode2": 17
},
{
"FailSafeIntensity": 255
}
]
},
{
"CanOverride": false,
"Name": "ForcedOffAdls",
"Type": "Holding",
"Function": "F3",
"Address": 20210,
"DisplayAs": "DropdownVariants",
"PossibleValues": [
{
"Auto": 0
},
{
"AircraftNotDetected": 128
},
{
"AircraftDetected": 129
}
]
}
],
"DisplayVariants": [
"DropdownVariants",
"RawBinary",
"RawInteger"
],
"Functions": [
"F1",
"F2",
"F3",
"F4",
"F5",
"F6",
"F15",
"F16"
]
},
{ {
"Name": "Quantec", "Name": "Quantec",
"RunAs": "Server", "RunAs": "Server",

View File

@ -1,16 +1,10 @@
[ [
{ {
"Type": "CIP400", "Type": "CIP400",
"Enabled": true, "Enabled": false,
"Ip": "127.0.0.1", "Ip": "127.0.0.1",
"Port": 11507 "Port": 11507
}, },
{
"Type": "Quantec",
"Enabled": true,
"Ip": "127.0.0.1",
"Port": 11704
},
{ {
"Type": "ThirdPartyInput", "Type": "ThirdPartyInput",
"Enabled": true, "Enabled": true,
@ -25,7 +19,7 @@
}, },
{ {
"Type": "CIP300", "Type": "CIP300",
"Enabled": true, "Enabled": false,
"Ip": "127.0.0.1", "Ip": "127.0.0.1",
"Port": 11508 "Port": 11508
}, },
@ -34,5 +28,11 @@
"Enabled": true, "Enabled": true,
"Ip": "127.0.0.1", "Ip": "127.0.0.1",
"Port": 11705 "Port": 11705
},
{
"Type": "Quantec",
"Enabled": true,
"Ip": "127.0.0.1",
"Port": 11802
} }
] ]