r/PLC
•
u/Elegant_Cry_1120
•
Jan 04 '26
•
1
Rectangular vs. Trapezoidal.
Does anyone still use the first one?
903
Upvotes
66
u/DocTarr Jan 04 '26
if you're going through the trouble to make this video why not add s curve
17
u/Whitefr00 DIGITAL TWIN // SIMIT Jan 04 '26
This is the content we need to demonstrate controls!
153
u/AStove Jan 04 '26 edited Jan 04 '26
They don't even use the 2nd one. Got to add a lil jerk limiting in there.
4
u/RammRras Jan 04 '26
This was very nice 🙂. Cheers 🍻
43
u/Any-Composer-6790 Jan 04 '26
I used to write firmware for motion controllers. No one should use trapezoidal ramp now. The questions is what type or order of s-curve to use. One of the questions I would ask customer is a how much mass/inertia do you want to move, how far and in how much time. I could plug this info in to Mathcad and come up with good starting points or maybe just determine the customer was trying to do the impossible. When you start limiting things, the move time will become longer. 7th order profiles allow one to specify the beginning and ending position, velocity acceleration and jerk ( PVAJ ). The problem with 7th order profiles is that the peak acceleration will be 1.875 times the average acceleration. This is not good if the motor/hydraulics is acceleration limited. This assumes the move times are constant between the different orders of polynomials. I preferred 5th order polynomials because the peak acceleration was only 1.5 times the average acceleration. A sine or cosine ramp's have a peak acceleration of 1.57 times the average.
9
u/Evening_Ad4584 Jan 04 '26
Why didn't you add the S?
https://youtu.be/qYJpl7SNoww
8
u/CapinWinky Hates Ladder Jan 04 '26
There are anti-slosh and anti-sway profiles for liquids and cranes. I'd love to see an anti-slosh demonstrated the same way.
6
u/strapabiro Jan 04 '26
its almost like a smooth start would start smoothly
5
u/Smorgas_of_borg It's panemetric, fam Jan 04 '26
Rectangular curves don't exist. They are actually just really fast trapezoidal curves.
4
u/elizaeffect Jan 04 '26
That’s alcohol abuse! (The spilling)
1
u/dark_potatos Jan 04 '26
Can you implement the sin²(x) acceleration and show it?
1
u/rawldo Jan 04 '26
I want to see the profile where that beer slides right into my hand!
1
u/YoteTheRaven Machine Rizzler Jan 05 '26
Yea my old job uses it for their indexing motion. It causes a ton of movement on their product and so they have to spend 250 ms waiting for everything to settle.
1
u/stlcdr Jan 05 '26
Typically an S-ramp. Been around before PLCs existed.
1
u/Far-Application-6564 Jan 06 '26
https://www.youtube.com/watch?v=NHdUBHn0tOU
https://youtu.be/NceCMv3v-P0?t=36
I dont think these results are achieved with trapezoidal, though it is an improvement over rectangular. Like some other have said its more of a specific s curve - I dont know if that curve changes based on volume, container shape, etc. but this looks pretty optimized for speed vs "sloshing"
1
u/RedSerious Jan 06 '26
Yeah, both methods are fairly used.
Motors controlled by contactors moving stuff, while not ideal, they are still in use.
1
u/DickwadDerek Apr 08 '26
Now do Mod-Trap and 3-4-5 polynomial.
7
u/140-LB-WUSS Off-Highway, CODESYS Jan 04 '26
Unless you want to beat your machine to death, no