Web API
Local HTTP on port 18840, listening only on 127.0.0.1; it is used only for sessions and diagnostic observation (GUI sessions, visual comparison by engineers). Real-time process data goes through the language SDK, not HTTP.
Alignment: SDK device.Diagnostics Diagnostic Snapshot /api/diag, Alarms /api/alarms, Logs /api/records. Identify the path /api/im(corresponding ImData).
Online Documentation:profinet.apifox.cn · Specification Documents:/webapi/openapi.json
The specification document covers all endpoints listed in the table below, except GET /api/info for (GET /api/info which is a array of endpoints not included in the scope of the specification document).
| Category | Property | Type | Access | Description |
|---|---|---|---|---|
| Operational ST | GET /api/status | JSON | Read | Connected / State / WaitReason / ErrorCode / version |
GET /api/info | JSON | Read | Service name, self-reported version, port, and array of endpoints | |
POST /api/high-resolution-timer | JSON | Write | 1ms High-resolution timer switch (held by the service process; write-only) | |
| Process Data | GET /api/io | JSON | Read | Read I; returns the current Q with IOPS/IOCS, including whether Q has been sent |
POST /api/io | JSON | Write | Write Q; the response distinguishes between messages that have been sent and those that are temporarily stored and awaiting transmission | |
| Diagnosis | GET /api/diag | JSON | Read | Diagnostic snapshot, alignment DiagSnapshot |
| Alerts | GET /api/alarms | JSON | Read | Activity Alarms |
GET /api/alarms/history | JSON | Read | Historical alarms—the most recent 500 entries | |
POST /api/alarms/ack | JSON | Write | Acknowledge one | |
POST /api/alarms/ack-all | JSON | Write | Acknowledge All | |
| Identifiers | GET /api/im | JSON | Read | I&M, Align ImData |
GET /api/records | JSON | Read | User zone records, aligned with Records | |
| Start-Stop | POST /api/start | JSON | Write | Start |
POST /api/stop | JSON | Write | Stop | |
POST /api/reset | JSON | write | communication or factory |
GET /api/status HTTP/1.1
Host: 127.0.0.1:18840