Query Working Conditions

Last Updated on : 2022-04-02 09:00:53download

Query the working conditions of an industrial device by the device code.

API address

GET: /v1.1/iot-03/si/devices/{device_code}/working-condition

Request parameter

Parameter nameTypeINRequiredDescription
device_codeStringuritrueThe code of a specified device.

Return parameter

Parameter nameTypeDescription
resultWorkConditionDTOThe returned result.

Description of result

Parameter nameTypeDescription
timeLongThe time when it is updated.
conditionsListA list of working conditions.

Description of conditions

Parameter nameTypeDescription
nameStringThe attribute name of a specified working condition.
valueStringThe attribute value of a specified working condition.

Request example

GET: /v1.1/iot-03/si/devices/cnc/working-condition

Return example

{
    "result": {
        "time": 1638177928572,
        "conditions": [
            {
                "name": "Processing Quantity",
                "value": "0"
            },
            {
                "name": "Total Processing Quantity",
                "value": "0"
            },
            {
                "name": "Working Status",
                "value": "run"
            },
            {
                "name": "Power-On Time",
                "value": "0"
            },
            {
                "name": "Running Time",
                "value": "0"
            },
            {
                "name": "Cutting Time",
                "value": "0"
            },
            {
                "name": "Spindle Load",
                "value": "0"
            },
            {
                "name": "Current Rotation Speed of Spindle",
                "value": "0"
            },
            {
                "name": "Spindle Magnification",
                "value": "0"
            },
            {
                "name": "Rotation Speed of Spindle",
                "value": "0"
            },
            {
                "name": "Feed Axis Load",
                "value": "0"
            },
            {
                "name": "Current Rotation Speed of Feed Axis",
                "value": "0"
            },
            {
                "name": "Feed Axis Magnification",
                "value": "0"
            },
            {
                "name": "Feed Axis Speed",
                "value": "0"
            }
        ]
    },
    "t": 1638200245226,
    "success": true
}

Error code

For more information, see error code.