Skip to main content

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).

CategoryPropertyTypeAccessDescription
Operational STGET /api/statusJSONReadConnected / State / WaitReason / ErrorCode / version
GET /api/infoJSONReadService name, self-reported version, port, and array of endpoints
POST /api/high-resolution-timerJSONWrite1ms High-resolution timer switch (held by the service process; write-only)
Process DataGET /api/ioJSONReadRead I; returns the current Q with IOPS/IOCS, including whether Q has been sent
POST /api/ioJSONWriteWrite Q; the response distinguishes between messages that have been sent and those that are temporarily stored and awaiting transmission
DiagnosisGET /api/diagJSONReadDiagnostic snapshot, alignment DiagSnapshot
AlertsGET /api/alarmsJSONReadActivity Alarms
GET /api/alarms/historyJSONReadHistorical alarms—the most recent 500 entries
POST /api/alarms/ackJSONWriteAcknowledge one
POST /api/alarms/ack-allJSONWriteAcknowledge All
IdentifiersGET /api/imJSONReadI&M, Align ImData
GET /api/recordsJSONReadUser zone records, aligned with Records
Start-StopPOST /api/startJSONWriteStart
POST /api/stopJSONWriteStop
POST /api/resetJSONwritecommunication or factory
GET /api/status HTTP/1.1
Host: 127.0.0.1:18840