Skip to main content

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.

DistrictFieldDirectionReading and Writing
QinputHexThis Device → ControllerReading and Writing (POST /api/io Placement)
IoutputHexController → This DeviceRead-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.

FieldNote
inputValidDistrict QI've written And Has been sent to a location where the controller can retrieve it. Written but not yet sent = false
outputValidThis generation has received Zone I data from the controller
inputSyncedToDriverQ: 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.
formatVersionContract 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":

FieldNote
okWhether the write operation has been delivered to a location accessible by the controller (equivalent delivered to )
deliveredSame as above; read literally; there is no need to understand the combined meaning ok of .
queuedThe 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 / stateThe link and operational ST at the time of this write
reasonCodeReason code for non-delivery (fixed string; empty upon delivery)
waitReason / messageRead the instructions if you haven't sent it yet (will be blank when sent)
errorCodeCurrent service fault code; 0 = none. A cable break is not an fault code in itself; check for failure by reasonCode
offset / lengthActual 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"
}
reasonCodeMeaning
PnS.Io.NotDelivered.LinkDownDisconnected / Link not established; data is not being sent to the controller
PnS.Io.NotDelivered.DataPlaneStoppedProcess Data Exchange is not RUN (not started / STOP)
PnS.Io.NotDelivered.NotFlushedProcess 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.

SituationHTTP
offset Missing / negative number, data not hexadecimal, or odd length; invalid JSON400
offset + Write length exceeds the Q zone400
Request body is too large (limit 64 KB)413
Internal service fault (response contains errorCode)500