Error when homing axis through REST API

I get an error when I try to home an axis through the REST API, and my axis also goes to the error state. I try to home the axis by sending a POST request to the homing command.

I use the following request:
url: https://192.168.0.61/automation/api/v1/motion/axs/Axis_4/cmd/homing
body: {"buffered": false, "newRefPos": 10.0}

The response tells me there is an error:
{"type": "about:blank","title": "General axis command error","status": 500,"detail": "original error: DL_CREATION_FAILED","instance": "motion/axs/Axis_4/cmd/homing","mainDiagnosisCode": "090F2002","detailedDiagnosisCode": "0C570101","dynamicDescription": "cmd: 

One problem is that the response is truncated to 256 chars which results into a JSON parse error in Python.

The second problem is that I get an error combination which is not documented (090F2002 0C570101). I am following the homing schema (types/motion/axs/cmd/homing). Why do I get this error?

Additional background information: I am able to home my axis through the PLC application, using the axisinterface. I use the same newRefPos := 10.0, and the _opMode := ModeAxsHoming.

 

Best reply by Jin

Hello Robert,

homing command is cuurently regiested as buffered command therefore, please try to change the payload to: 

{"buffered":true, "newRefPos":10.0}

If the command still doesn't works, please contact us. 

View original
2 replies