cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Error when homing axis through REST API

Error when homing axis through REST API

Robert_
Member

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.

 

2 REPLIES 2

Jin
Member

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. 

Yes, homing works as a buffered command. Thank you!

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist