View API documentation - Learn how to use the API
Edit the configuration JSON below. Be careful with the syntax.
PLC Configuration:
name: Unique name for the PLCip: IP address of the PLCrack: Rack number (usually 0)slot: Slot number (usually 1 for S7-1200)Data Area Configuration:
name: Name of the data areatype: read, write, or read_writedb_number: DB number (e.g., 100 for DB100)offset: Starting byte offsetsize: Size in bytesstructure (optional): Define how to parse the dataExample:
{
"plcs": [
{
"name": "PLC1",
"ip": "192.168.0.10",
"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}
]
}
]
}
]
}