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

Motion App not Working

Motion App not Working

Thomas_SF
Established Member

Hello everyone,

I have a ctrlx Drive with built-in ctrlX Core and a Rexroth motor with linear axis connected to it.
I am using ctrlX OS version 2.4, as well as all apps in version 2.4.x. (Motion 2.4.3, PLC 2.4.0, Ethercat 2.4.0, etc.). The appropriate ctrlX DRIVE Runtime in version 05RS is also installed.

The setup of the linear axis via ctrlX Drive worked without any problems and it can also be moved via the Easy-Start-Up mode.
Now I wanted to control the linear axis via the PLC and configured the Motion App for this. I also created an axis profile with the appropriate fieldbus address and checked the mapping of the variables.

 

inputs:
   ...
   position *| ctrlX_DRIVE_XCS_SoE_/AT.Position_feedback_value_1
   ....
   statusword *| ctrlX_DRIVE_XCS_SoE_/AT.Drive_status_word
   ...
outputs:
   controlword * | ctrlX_DRIVE_XCS_SoE_/MDT.Master_control_word
   position * | ctrlX_DRIVE_XCS_SoE_/MDT.Position_command_value
   ...

 

I then created the axis under "Axes" and transferred the appropriate parameters to General/Limits and units.
I then transferred the motion app to the Running state and the system handler reports the Operating state.

Everything fine so far, but when I now try to control the axis via Commissioning, nothing happens. I can operate the interface (switch power on/off, jogging etc.) and also see how the position/speed and state values change, but the real axis does not react. 

In addition, the axis position does not match the encoder values that I see in ctrlx Drive. The commissioning always starts at position 0.0 and seems to have no connection to the actual position as well as all other variables in the mapping.
In the data layer, however, I can see the correct transmission of the position values: "fieldbuses/ethercat/master/instances/ethercatmaster/realtime_data/input/data/ctrlX_DRIVE_XCS_SoE_/AT.Position_feedback_value_1".

I have the assumption that something is not working properly with the access to the data layer data and I have the assumption that I cannot control the axis via the PLC without fixing this problem.

I also noticed in ctrlx engeneering that the PLC also seems to have a problem accessing the data layer:
Screenshot 2024-02-22 181758.png

I would appreciate any helpful input.
Thanks

Regards
Thomas

2 REPLIES 2

CodeShepherd
Community Moderator
Community Moderator

I guess you forgot to connect the axis profile to your axis object:

ctrlX web UI - assigning axis profile to motion axisctrlX web UI - assigning axis profile to motion axis

oh yes that was the mistake, thanks for the quick reply!

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