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

Motion error when y-axis follows x-axis

Motion error when y-axis follows x-axis

AndroidzZ
New Contributor

I'll keep getting an error while I command with one of my two axis when I try to turn it. And it feels like the moment the second axis gives an error is random. one time he gives an error message after a position of 6 and the other time after a position of 170 and than to position of 84, it feels really random. I've even had a few times that he just turns correctly to his position 

To give you an idea of what I am trying to do I will briefly explain what needs to be done. A cable must be wound on a drum(x-axis). the cable is guided through a traverse(y-axis). The y-axis must follow the x-axis.What I have done now, I determine to which position the x-axis should go to get a correct cable length. then I send the x-axis to that position with arAxisCtrl_gb[X_Axis.AxisNo].PosMode.Position and right after that I send the y-axis to a certain factor of the actual x position. I get the actual position from Posistion_X := arAxisStatus_gb[X_Axis.AxisNo].Data.ActualPosition.

I have already looked into the error codes but that doesn't help me.
The x-axis rotates normally but the y-axis gives an error message every time it is rotating. See pictures to see the error codes and a bit of the code i use. 

 

11 REPLIES 11

CodeShepherd
Community Moderator
Community Moderator

The error on your pictures means:

Invalid state
Cause/Remedy 1: Cause: An invalid status was returned. Remedy: Make sure that the correct status is reached in the PLC Open state machine.

Please have a look in the diagnostic log of the control to see if there are more information available and send a screenshot or export.

Logs 

also these logs with errors come up.

The error codes are a bit confusing to us because we do not know what you are commanding exactly.
There is for example also a gantry command set in the system that does absolutely not fit to the application described.
There are also a lot of motion object reset without an error pending.
And also a lot of abort commands.

Could you please switch on the system trace of the motion  app, create the error and download another log file with all additional information active? Then we can have an exact look which commands are sent when.

2021-02-22_12h52_45.png2021-02-22_12h53_52.png

This error log has trace enabled 

I am sory to say that there are no traces included. Please beware that the trace settings are resetted after restarting the control if not saved via Configurations -> Save.

Now i believe the trace messeges are included 

I will contact you directly. Something is not working.

oke, thanks. Im awating your message 

With the help of CodeShepherd, the problem was identified. I use ctrlX in a virutal windows and this gave unwanted conflicts.
In 'normal' windows the program runs like a charm!

After checking with you directly please remark following hint:

Note, that this application can/will lead to strange movement. The motion command always plan with an end velocity of 0 mm/s (full stop at the target position). This means, when a motion with a length of 15 µm is commanded and the acceleration is 25 mm/s², it will only get to a velocity of ~0,875 mm/s. When you have a higher initial velocity (because its a non-buffered command), this will lead to an overshoot. This means, the ctrlX MOTION breaks with the allowed limit deceleration, changes the direction and moves back to the target position.

Currently, there is no way implemented to command cyclic set points to the ctrlX MOTION.

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