网关V1,添加批量写

This commit is contained in:
2025-08-13 18:13:09 +08:00
commit 04bdb5f52b
1377 changed files with 186064 additions and 0 deletions

66
gateway/dist/config/config.json.bak vendored Normal file
View File

@ -0,0 +1,66 @@
{
"plcs": [
{
"name": "PLC1",
"ip": "192.168.0.100",
"rack": 0,
"slot": 1,
"areas": [
{
"name": "DB100_Read",
"type": "read",
"db_number": 100,
"offset": 0,
"size": 4000,
"structure": [
{
"name": "temperature",
"type": "real",
"offset": 0
},
{
"name": "pressure",
"type": "int",
"offset": 4
},
{
"name": "status",
"type": "bool",
"offset": 6,
"bit": 0
}
]
},
{
"name": "DB100_Write",
"type": "write",
"db_number": 100,
"offset": 4000,
"size": 5000
},
{
"name": "DB202_Params",
"type": "read_write",
"db_number": 202,
"offset": 0,
"size": 2000
}
]
},
{
"name": "PLC2",
"ip": "192.168.0.101",
"rack": 0,
"slot": 1,
"areas": [
{
"name": "DB100_Read",
"type": "read",
"db_number": 100,
"offset": 0,
"size": 4000
}
]
}
]
}