FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
02-02-2024 02:59 PM - edited 02-02-2024 03:04 PM
Hello,
what is changed with motion in V2.04?
After updating from v1.20 nohting is working right anymore.
Doing commissioning with CtrlX or Drive, everything seems to work. But when doing movements with PLC it's strange.
The drive should do a cycle with right/left turning. Speed right 1000 rpm for 3 turns, left 1000 rpm for 6 turns, acceleration/deccelaration 30 ms. This is via a PLC program.
With drive oszi it looks this:
green = speed
First, acceleration is as should wihtin 30ms to target speed 1000 rpm. But then, braking, going left, going right, going left, stop.... Normally it should look like a positive trapezium, then a negative one.
When doing jogging (via own PLC program) acceleration is not what it should be. It's imited in any way. But deccelartion is working right.
Code is that, using Jog-Mode:
Did another test with Vel-Mode:
Now acceleration is working right but not decceleration, code is that:
All limits in CtrlX are high enough that they don't bother:
And there are no limits in drive (except speed):
And no issues with any status reports from drive:
That's the way it worked with v1.20 and before.
What's different with v2.04?
Solved! Go to Solution.
02-02-2024 06:19 PM
Updated libraries covering the MotionInterface functionality were released recently. Before investigating further, can you verify that you are using the latest libraries?
02-05-2024 07:32 AM
Hello alink
After checking the MotionInterface libs (like Carl mentioned) please check this futher points
Regards
Jochen
02-05-2024 08:47 AM - edited 02-05-2024 08:51 AM
I did some test. Please beware that using "MODE_AH" will change mode to "Moxe_AXS_STOP" and is using its deceleration settings:
When entering same deceleration it works like expected on my side:
For jogging I could not find a problem, but if also "MODE_AH" is used there, same behaviour will occur:
Official release note of the CXA_MotionInterface are release as part of the motion runtime documentation. Wee will add a link in the library reference book to make it easier to find.
02-05-2024 09:24 AM
I updated Motion Interface to v2.4.0.1 (indeed, it was v2.4.0.0). Did everything as written in Releasenotes.
What happens: I get an exception --- license invalid! ---
Changing back to MotionInterface 2.4.0.0 no license issue.
If MotionInterace 2.4.0.1 is necessary, how to fix invalid license?
02-05-2024 10:14 AM - edited 02-05-2024 10:16 AM
License problem sounds lika a known bug in ctrlX PLC Engineering 2.4. Please do a clean all and download again. This should do the trick.
02-05-2024 11:44 AM
After clean/all it works - no license invalid.
Now, with MotionInterface 2.4.0.1 it's the same:
Example:
speed right 2400rpm with acc / dec in 100ms
speed left 2000 rpm with acc / dec 100ms
In PLC it looks this: for test, acc/dec limits are set to 0 for left rotation
Osci shows this:
Acc takes about 700ms, dec is as it should be within 100ms in both ways (right/left). Interessting fact, speed setpoints (S-0-0036) are congruent to speed-feedback (S-0-0040).
Taking a acc/dec of 300ms, dec is 300ms but acc keeps unchanged at 700ms
And another test: Acc to right is 1000ms, dec right 50ms, acc left 50ms, dec left 50ms
Acc right goes to 1000ms (as it should), dec is 50ms (as it should), acc to left is about 700ms (should be 50ms) and dec left is 50ms (as it should).
It looks like there is a (torque-) break right/left which limits acc. With other speeds the acc time differs, but dec time is as it should be.
Taking torque and acc value to the chart it looks this:
Limits in CtrlX Motion are high enough
and there shouldn't be a mismatch because of something set in commissionig
And no wrong limits in Drive:
02-05-2024 01:37 PM
I will check the behaviour again. And post as soon as I have new information.
02-06-2024 09:04 AM
Did another test:
When jogging via ctrlxCore - commissioning - it looks that:
Speed setpoints are set to target speed and drive is following. Everything OK.
Doing the same via PLC and own Visu, it looks still that way:
Acc and Dec should be the same
02-06-2024 03:17 PM
I could reproduce the behaviour. We are checking this internally.
02-06-2024 05:11 PM - edited 02-06-2024 05:13 PM
Thanks for feedback.
I did another test, this time starting a process of right/left rotating with some other actions.
Could you check if this is the same reason why the engine spins out instead of braking when swithing in _OpModeBits.Mode_AH := TRUE; ?
Because: in my process there is a time control. If time is exceeded, then error message occurs and the drive should stop. With this method it worked fine before v2.0.4
Now, from target speed, it takes >> 6000ms to reach standstill instead of a sudden stop.
02-07-2024 07:20 AM
Did you try my suggestions above? There I could reproduce and fix this.
If not I would need some more information about your program to get to to know what could be wrong. You could send me an export or archive via private message.
02-07-2024 09:25 AM - edited 02-07-2024 09:27 AM
Sorry, overseen.
Yes, now stopping works as expected (in case of time exceeding for example). Independent if using .MODE_AXS_STOP or .MODE_AB
But question? Why now (with V2.0.X) to set it in PLC/motion as well when the setting is in Drive? Having two possibilities is bad, which one is right, which one does the work, this is confusing.... or I am misunderstanding something and didn't know.
But no effect on this issue:
Acc takes 600ms instead of 50ms (like dec).
02-07-2024 01:18 PM
ctrlX MOTION is not using the drive based functions to be drive independent. This did not change from 1.20 to 2.x (as far as I know). Drive isn't even commanded to AH but simply gets decelarted to 0rpm and stays in AF. Useability of of drive mode AH will be implemented in version 2.6 of ctrlX MOTION and CXA_MotionInterface.
The acceleration/deceleration difference is, like mentioned above, reproduceable and we are investigating this. I will post new information about it here as soon as available.
02-07-2024 01:55 PM
mystify.. never used a .StopMode.xxxx to set anything
Now with setting it it works
In .StopMode.Deceleration the value before was 2 (rad/s²). If nothing was changed in function, maybe an initial value? Because before it allways was a real fast stop without setting any dec value in code.
So now, let's see what can be found out after investigation of acc/dec difference.
02-13-2024 10:29 AM - edited 02-13-2024 10:29 AM
Good news this issue will be solved in the version 2.6 coming up end of march. Please test again with this version and come back if there are open topics.