2.9.5. Task Configuration Interface
The task configuration interface is used to retrieve or modify task configuration. For details on task configuration, see the Bivrost Gateway Manual 5.5. Task Configuration.
2.9.5.1. machine-task-interval-settings Get Machine Task Interval Settings
Section titled “2.9.5.1. machine-task-interval-settings Get Machine Task Interval Settings”This interface has no request parameters.
GET /api/config/machine-task-interval-settingsResponse example
{ "alarm": 5000, "machineStatus": 5000, "count": 5000, "currentToolNo": 5000, "energyConsumption": 60000, "feedAndSpindle": 5000, "laserPower": 5000, "load": 5000, "logHistory": 5000, "overload": 100, "plcData": 5000, "position": 5000, "currentProgramBlock": 5000, "programInfo": 5000, "machineTimeData": 5000, "toolLife": 5000, "toolOffset": 5000, "alarmHistory": 5000, "cycleData": 5000, "oee": 5000}The response parameters are shown in the table below:
Machine Task Interval Settings Parameters
Section titled “Machine Task Interval Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| alarm | Int32 | Alarm information interval (milliseconds) |
| machineStatus | Int32 | Machine status interval (milliseconds) |
| count | Int32 | Machining count interval (milliseconds) |
| currentToolNo | Int32 | Current tool number interval (milliseconds) |
| energyConsumption | Int32 | Energy consumption interval (milliseconds) |
| feedAndSpindle | Int32 | Feed rate and spindle speed data interval (milliseconds) |
| laserPower | Int32 | Laser power interval (milliseconds) |
| load | Int32 | Load data interval (milliseconds) |
| logHistory | Int32 | Log history interval (milliseconds) |
| overload | Int32 | Overload monitoring interval (milliseconds) |
| plcData | Int32 | PLC data interval (milliseconds) |
| position | Int32 | Position data interval (milliseconds) |
| currentProgramBlock | Int32 | Current program block interval (milliseconds) |
| programInfo | Int32 | Machining program information interval (milliseconds) |
| machineTimeData | Int32 | Machine time data interval (milliseconds) |
| toolLife | Int32 | Tool life interval (milliseconds) |
| toolOffset | Int32 | Tool offset interval (milliseconds) |
| alarmHistory | Int32 | Alarm history interval (milliseconds) |
| cycleData | Int32 | Cycle time data interval (milliseconds) |
| oee | Int32 | OEE monitoring interval (milliseconds) |
2.9.5.2. update-machine-task-interval-settings Modify Machine Task Interval Settings
Section titled “2.9.5.2. update-machine-task-interval-settings Modify Machine Task Interval Settings”Modifies the machine task interval settings and returns the updated settings.
POST /api/config/update-machine-task-interval-settingsRequest body example
{ "alarm": 6000, "machineStatus": 8000}For request parameters, see Machine Task Interval Settings Parameters. Parameters not included in the request body retain their original values.
Response example
{ "alarm": 6000, "machineStatus": 8000, "count": 5000, "currentToolNo": 5000, "energyConsumption": 60000, "feedAndSpindle": 5000, "laserPower": 5000, "load": 5000, "logHistory": 5000, "overload": 100, "plcData": 5000, "position": 5000, "currentProgramBlock": 5000, "programInfo": 5000, "machineTimeData": 5000, "toolLife": 5000, "toolOffset": 5000, "alarmHistory": 5000, "cycleData": 5000, "oee": 5000}For response parameters, see Machine Task Interval Settings Parameters.
2.9.5.3. group-task-interval-settings Get Group Task Interval Settings
Section titled “2.9.5.3. group-task-interval-settings Get Group Task Interval Settings”This interface has no request parameters.
GET /api/config/group-task-interval-settingsResponse example
{ "count": 5000, "oee": 5000, "cumulativeStatusTime": 5000}The response parameters are shown in the table below:
Group Task Interval Settings Parameters
Section titled “Group Task Interval Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| count | Int32 | Machining count interval (milliseconds) |
| oee | Int32 | OEE monitoring interval (milliseconds) |
| cumulativeStatusTime | Int32 | Cumulative status time (milliseconds) |
2.9.5.4. update-group-task-interval-settings Modify Group Task Interval Settings
Section titled “2.9.5.4. update-group-task-interval-settings Modify Group Task Interval Settings”Modifies the group task interval settings and returns the updated settings.
POST /api/config/update-group-task-interval-settingsRequest body example
{ "count": 3000, "oee": 2000, "cumulativeStatusTime": 1000}For request parameters, see Group Task Interval Settings Parameters.
Response example
{ "count": 3000, "oee": 2000, "cumulativeStatusTime": 1000}For response parameters, see Group Task Interval Settings Parameters.
2.9.5.5. oee-monitoring-settings Get OEE Monitoring Settings
Section titled “2.9.5.5. oee-monitoring-settings Get OEE Monitoring Settings”This interface has no request parameters.
GET /api/config/oee-monitoring-settingsResponse example
{ "monitorMode": "Scheduled Reset", "windowSize": 3600, "resetTime": "00:00", "availabilityMode": "Autorun Time / Total Time", "breakTimeInterval": ""}The response parameters are shown in the table below:
OEE Monitoring Settings Parameters
Section titled “OEE Monitoring Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| monitorMode | String | Monitoring mode; see monitorMode Monitoring Mode for details. |
| windowSize | Int32 | Window duration (seconds); effective in real-time window mode. |
| resetTime | String | Reset time (hour:minute); effective in scheduled reset mode. |
| availabilityMode | String | Availability rate calculation method; see availabilityMode Availability Rate Calculation Method for details. |
| breakTimeInterval | String | Break time interval (hour:minute-hour:minute) |
monitorMode Monitoring Mode
Section titled “monitorMode Monitoring Mode”| Option | Description |
|---|---|
| Scheduled Reset | Scheduled reset |
| Time Window | Real-time window |
availabilityMode Availability Rate Calculation Method
Section titled “availabilityMode Availability Rate Calculation Method”| Option | Description |
|---|---|
| Autorun Time / Total Time | Autorun time / total time |
| Autorun Time / (Total Time - Off Time) | Autorun time / (total time - off time) |
| Autorun Time / (Total Time - Off Time - Manual Time) | Autorun time / (total time - off time - manual time) |
| Autorun Time / (Total Time - Break Time) | Autorun time / (total time - break time) |
2.9.5.6. update-oee-monitoring-settings Modify OEE Monitoring Settings
Section titled “2.9.5.6. update-oee-monitoring-settings Modify OEE Monitoring Settings”Modifies the OEE monitoring settings and returns the updated settings.
POST /api/config/update-oee-monitoring-settingsRequest body example
{ "monitorMode": "Time Window", "windowSize": 6000, "resetTime": "00:00;22:00;01:00;2:00", "availabilityMode": "Autorun Time / (Total Time - Break Time)", "breakTimeInterval": "08:00-09:00;11:30-12:30"}For request parameters, see OEE Monitoring Settings Parameters.
Response example
{ "monitorMode": "Time Window", "windowSize": 6000, "resetTime": "00:00;22:00;01:00;2:00", "availabilityMode": "Autorun Time / (Total Time - Break Time)", "breakTimeInterval": "08:00-09:00;11:30-12:30"}For response parameters, see OEE Monitoring Settings Parameters.
2.9.5.7. tool-life-monitoring-settings Get Tool Life Monitoring Settings
Section titled “2.9.5.7. tool-life-monitoring-settings Get Tool Life Monitoring Settings”This interface has no request parameters.
GET /api/config/tool-life-monitoring-settingsResponse example
{ "enableToolLifeDetails": false}The response parameters are shown in the table below:
Tool Life Monitoring Settings Parameters
Section titled “Tool Life Monitoring Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| enableToolLifeDetails | Bool | Tool life details; true = enabled, false = disabled. |
2.9.5.8. update-tool-life-monitoring-settings Modify Tool Life Monitoring Settings
Section titled “2.9.5.8. update-tool-life-monitoring-settings Modify Tool Life Monitoring Settings”Modifies the tool life monitoring settings and returns the updated settings.
POST /api/config/update-tool-life-monitoring-settingsRequest body example
{ "enableToolLifeDetails": true}For request parameters, see Tool Life Monitoring Settings Parameters.
Response example
{ "enableToolLifeDetails": true}For response parameters, see Tool Life Monitoring Settings Parameters.
2.9.5.9. count-monitoring-settings Get Machining Count Monitoring Settings
Section titled “2.9.5.9. count-monitoring-settings Get Machining Count Monitoring Settings”This interface has no request parameters.
GET /api/config/count-monitoring-settingsResponse example
{ "monitorMode": "Time Window", "windowSize": 3600, "resetTime": "00:00"}The response parameters are shown in the table below:
Machining Count Monitoring Settings Parameters
Section titled “Machining Count Monitoring Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| monitorMode | String | Monitoring mode; see monitorMode Monitoring Mode for details. |
| windowSize | Int32 | Window duration (seconds); effective in real-time window mode. |
| resetTime | String | Reset time (hour:minute); effective in scheduled reset mode. Separate multiple times with ;. |
2.9.5.10. update-count-monitoring-settings Modify Machining Count Monitoring Settings
Section titled “2.9.5.10. update-count-monitoring-settings Modify Machining Count Monitoring Settings”Modifies the machining count monitoring settings and returns the updated settings.
POST /api/config/update-count-monitoring-settingsRequest body example
{ "monitorMode": "Scheduled Reset", "windowSize": 36000, "resetTime": "23:00;3:24;15:28;12:22"}For request parameters, see Machining Count Monitoring Settings Parameters.
Response example
{ "monitorMode": "Scheduled Reset", "windowSize": 36000, "resetTime": "23:00;3:24;15:28;12:22"}For response parameters, see Machining Count Monitoring Settings Parameters.
2.9.5.11. overload-monitoring-settings Get Overload Monitoring Settings
Section titled “2.9.5.11. overload-monitoring-settings Get Overload Monitoring Settings”This interface has no request parameters.
GET /api/config/overload-monitoring-settingsResponse example
{ "spindleLoadUpperLimit": 100.0}The response parameters are shown in the table below:
Overload Monitoring Settings Parameters
Section titled “Overload Monitoring Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| spindleLoadUpperLimit | Float | Spindle load upper limit (%) |
2.9.5.12. update-overload-monitoring-settings Modify Overload Monitoring Settings
Section titled “2.9.5.12. update-overload-monitoring-settings Modify Overload Monitoring Settings”Modifies the overload monitoring settings and returns the updated settings.
POST /api/config/update-overload-monitoring-settingsRequest body example
{ "spindleLoadUpperLimit": 80.0}For request parameters, see Overload Monitoring Settings Parameters.
Response example
{ "spindleLoadUpperLimit": 80.0}For response parameters, see Overload Monitoring Settings Parameters.
2.9.5.13. alarm-monitoring-settings Get Alarm Monitoring Settings
Section titled “2.9.5.13. alarm-monitoring-settings Get Alarm Monitoring Settings”This interface has no request parameters.
GET /api/config/alarm-monitoring-settingsResponse example
{ "mininumAlarmLevel": "Warning", "alarmMappingFileNames": "a.csv;b.csv;"}The response parameters are shown in the table below:
Alarm Monitoring Settings Parameters
Section titled “Alarm Monitoring Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| mininumAlarmLevel | String | Minimum alarm level; see mininumAlarmLevel Minimum Alarm Level for details. |
| infoLevel | String | Info-level keywords; not returned means not set |
| errorLevel | String | Error-level keywords; not returned means not set |
| alarmMappingFileNames | String | List of uploaded alarm mapping file names, separated by ; (terminated with ; when not empty). Read-only; ignored if supplied in a request. For uploading, downloading and deleting these files, see 2.9.5.19. upload-alarm-mapping-file Upload Alarm Mapping File, 2.9.5.20. download-alarm-mapping-file Download Alarm Mapping File and 2.9.5.21. delete-alarm-mapping-file Delete Alarm Mapping File. |
mininumAlarmLevel Minimum Alarm Level
Section titled “mininumAlarmLevel Minimum Alarm Level”| Option | Description |
|---|---|
| Information | Information |
| Warning | Warning |
| Error | Error |
| None | None |
2.9.5.14. update-alarm-monitoring-settings Modify Alarm Monitoring Settings
Section titled “2.9.5.14. update-alarm-monitoring-settings Modify Alarm Monitoring Settings”Modifies the alarm monitoring settings and returns the updated settings.
POST /api/config/update-alarm-monitoring-settingsRequest body example
{ "mininumAlarmLevel": "Error", "infoLevel": "消息;提示;Inf", "errorLevel": "错误;錯誤;Err"}For request parameters, see Alarm Monitoring Settings Parameters.
Response example
{ "mininumAlarmLevel": "Error", "infoLevel": "消息;提示;Inf", "errorLevel": "错误;錯誤;Err", "alarmMappingFileNames": "a.csv;b.csv;"}For response parameters, see Alarm Monitoring Settings Parameters.
2.9.5.15. machine-status-monitoring-settings Get Machine Status Monitoring Settings
Section titled “2.9.5.15. machine-status-monitoring-settings Get Machine Status Monitoring Settings”This interface has no request parameters.
GET /api/config/machine-status-monitoring-settingsResponse example
{ "enableStatusDetails": false, "enableAdjustedManualStatus": false, "maxManualPauseTime": 600, "enableStatusConversion": false}The response parameters are shown in the table below:
Machine Status Monitoring Settings Parameters
Section titled “Machine Status Monitoring Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| enableStatusDetails | Bool | Status details; true = enabled, false = disabled. |
| enableAdjustedManualStatus | Bool | Manual status adjustment; true = enabled, false = disabled. |
| maxManualPauseTime | Int32 | Maximum manual pause time (seconds) |
| enableStatusConversion | Bool | Status conversion; true = enabled, false = disabled. |
| statusConversionSettings | String | Status conversion; not returned means not set. |
2.9.5.16. update-machine-status-monitoring-settings Modify Machine Status Monitoring Settings
Section titled “2.9.5.16. update-machine-status-monitoring-settings Modify Machine Status Monitoring Settings”Modifies the machine status monitoring settings and returns the updated settings.
POST /api/config/update-machine-status-monitoring-settingsRequest body example
{ "enableStatusDetails": true, "enableAdjustedManualStatus": true, "maxManualPauseTime": 300, "enableStatusConversion": true, "statusConversionSettings": "CNCStatus_cncStatus = \"MANUAL_MDI_RUN\" | AUTO_RUN"}For request parameters, see Machine Status Monitoring Settings Parameters.
Response example
{ "enableStatusDetails": true, "enableAdjustedManualStatus": true, "maxManualPauseTime": 300, "enableStatusConversion": true, "statusConversionSettings": "CNCStatus_cncStatus = \"MANUAL_MDI_RUN\" | AUTO_RUN"}For response parameters, see Machine Status Monitoring Settings Parameters.
2.9.5.17. task-manager-settings Get Task Manager Settings
Section titled “2.9.5.17. task-manager-settings Get Task Manager Settings”This interface has no request parameters.
GET /api/config/task-manager-settingsResponse example
{ "maxTaskManagers": 255}The response parameters are shown in the table below:
Task Manager Settings Parameters
Section titled “Task Manager Settings Parameters”| Parameter | Type | Description |
|---|---|---|
| maxTaskManagers | Int32 | Maximum number of task managers; default is 255 |
2.9.5.18. update-task-manager-settings Modify Task Manager Settings
Section titled “2.9.5.18. update-task-manager-settings Modify Task Manager Settings”Modifies the task manager settings and returns the updated settings.
POST /api/config/update-task-manager-settingsRequest body example
{ "maxTaskManagers": 128}For request parameters, see Task Manager Settings Parameters.
Response example
{ "maxTaskManagers": 128}For response parameters, see Task Manager Settings Parameters.
2.9.5.19. upload-alarm-mapping-file Upload Alarm Mapping File
Section titled “2.9.5.19. upload-alarm-mapping-file Upload Alarm Mapping File”Uploads an alarm mapping file. The file name is supplied as a query parameter and the file content is sent as binary in the request body (Content-Type application/octet-stream).
POST /api/config/upload-alarm-mapping-file?fileName=FILENAME| Request Parameter | Type | Description |
|---|---|---|
| fileName | String | (Required) Alarm mapping file name. Returns GENERAL_API_INVALID_REQUEST (Invalid fileName.) when empty. |
When a file with the same name already exists, the gateway does not overwrite it and returns GENERAL_INVALID_PATH (file already exists.). To replace a file, first call 2.9.5.21. delete-alarm-mapping-file Delete Alarm Mapping File.
Response example
{ "errorCode": 0, "errorMsg": "Success"}| Response Parameter | Type | Description |
|---|---|---|
| errorCode | Int32 | (Required) Error code, 0 indicates success. |
| errorMsg | String | (Required) Error message |
2.9.5.20. download-alarm-mapping-file Download Alarm Mapping File
Section titled “2.9.5.20. download-alarm-mapping-file Download Alarm Mapping File”Downloads an uploaded alarm mapping file; the response body is a file stream.
GET /api/config/download-alarm-mapping-file?fileName=FILENAME| Request Parameter | Type | Description |
|---|---|---|
| fileName | String | (Required) Alarm mapping file name, which can be obtained from alarmMappingFileNames in Alarm Monitoring Settings Parameters. Returns GENERAL_API_INVALID_REQUEST (Invalid fileName.) when empty. |
When the file does not exist, GENERAL_INVALID_PATH (file not found.) is returned.
2.9.5.21. delete-alarm-mapping-file Delete Alarm Mapping File
Section titled “2.9.5.21. delete-alarm-mapping-file Delete Alarm Mapping File”Deletes an uploaded alarm mapping file.
GET /api/config/delete-alarm-mapping-file?fileName=FILENAME| Request Parameter | Type | Description |
|---|---|---|
| fileName | String | (Required) Alarm mapping file name, which can be obtained from alarmMappingFileNames in Alarm Monitoring Settings Parameters. Returns GENERAL_API_INVALID_REQUEST (Invalid fileName.) when empty. |
When the file does not exist, GENERAL_INVALID_PATH (file not found.) is returned.
Response example
{ "errorCode": 0, "errorMsg": "Success"}| Response Parameter | Type | Description |
|---|---|---|
| errorCode | Int32 | (Required) Error code, 0 indicates success. |
| errorMsg | String | (Required) Error message |

