Process Data
Read I, write Q. The alignment's SDK IoStatus quality byte is also in the same snapshot.
JSON The field name is " GSDML Caliber," which is the opposite of I/Q: input* the Q-plane (this device → controller) is the Q-plane, output* and the I-plane (controller → this device) is the I-plane.
| District | Field | Direction | Reading and Writing |
|---|---|---|---|
| Q | inputHex | This Device → Controller | Reading and Writing (POST /api/io Placement) |
| I | outputHex | Controller → This Device | Read-only |
All response fields not listed in the table above are read-only.
GET /api/io
GET /api/io HTTP/1.1
Host: 127.0.0.1:18840
{
"inputHex": "0100",
"outputHex": "0000",
"inputLength": 2,
"outputLength": 2,
"inputIopsHex": "80",
"outputIopsHex": "80",
"inputValid": true,
"outputValid": true,
"inputSyncedToDriver": true,
"formatVersion": 3,
"timestamp": "2026-09-16T10:24:31.4829173+08:00"
}
All response fields are read-only.
| Field | Note |
|---|---|
inputValid | District QI've written And Has been sent to a location where the controller can retrieve it. Written but not yet sent = false |
outputValid | This generation has received Zone I data from the controller |
inputSyncedToDriver | Q: Has the current content in the Q zone been sent? Always false when process data is not ready.; Once ready, check whether the current content has been sent. false = The controller cannot retrieve it. |
formatVersion | Contract Version, Current 3. Just skip the extra fields. |
inputHex Data is also written to the cable break window (and cached there), so don't just look at the bytes: whether this snapshot is useful is determined inputSyncedToDriver by inputValid / .
IOPS 0x80 = GOOD, 0x00 = BAD. If the link drops, it's all BAD.
POST /api/io
Write Q. In the request body, offset and data are the write fields: data is a hexadecimal value that overwrites starting from offset. Bytes that are not overwritten remain unchanged. Writing is possible even without a link; the data is automatically sent once a link is established.
POST /api/io HTTP/1.1
Host: 127.0.0.1:18840
Content-Type: application/json
{"offset": 0, "data": "0100"}
Response: Accurately distinguish between "Sent" and "Queued":
| Field | Note |
|---|---|
ok | Whether the write operation has been delivered to a location accessible by the controller (equivalent delivered to ) |
delivered | Same as above; read literally; there is no need to understand the combined meaning ok of . |
queued | The write operation has been cached on the server side and will be automatically transmitted with the cyclic frame once the link is restored; no retransmission is required. Always true. |
connected / state | The link and operational ST at the time of this write |
reasonCode | Reason code for non-delivery (fixed string; empty upon delivery) |
waitReason / message | Read the instructions if you haven't sent it yet (will be blank when sent) |
errorCode | Current service fault code; 0 = none. A cable break is not an fault code in itself; check for failure by reasonCode |
offset / length | Actual starting offset and number of bytes written |
Send (HTTP 200):
{
"ok": true,
"delivered": true,
"queued": true,
"connected": true,
"state": "DataExchange",
"reasonCode": "",
"waitReason": "",
"message": "",
"errorCode": 0,
"offset": 0,
"length": 2,
"timestamp": "2026-09-16T10:24:31.4829173+08:00"
}
cable break Window (HTTP Still 200(only ok if true is false):
{
"ok": false,
"delivered": false,
"queued": true,
"connected": false,
"state": "Initialized",
"reasonCode": "PnS.Io.NotDelivered.LinkDown",
"waitReason": "尝试连接",
"message": "输出区写入未到达过程映像: 尝试连接。已暂存服务过程映像 (offset 0, 2 字节), 控制器链路恢复后随周期帧下发",
"errorCode": 0,
"offset": 0,
"length": 2,
"timestamp": "2026-09-16T10:24:31.4829173+08:00"
}
reasonCode | Meaning |
|---|---|
PnS.Io.NotDelivered.LinkDown | Disconnected / Link not established; data is not being sent to the controller |
PnS.Io.NotDelivered.DataPlaneStopped | Process Data Exchange is not RUN (not started / STOP) |
PnS.Io.NotDelivered.NotFlushed | Process data exchange is in progress, but this write operation has not yet received an acknowledgment. |
There are three non-200 ST codes: Invalid Request = 400, Request Body Too Large = 413, and Internal Server fault = 500.
| Situation | HTTP |
|---|---|
offset Missing / negative number, data not hexadecimal, or odd length; invalid JSON | 400 |
offset + Write length exceeds the Q zone | 400 |
| Request body is too large (limit 64 KB) | 413 |
Internal service fault (response contains errorCode) | 500 |