If TurkSaleh is using a Siemens PLC I recommend he takes JRW's advice and use the library. We have played with it for comparison. It will work. It is better to use a library that has been debugged than to try to re-invent the wheel.
drbitboy, break out your python and sympy and solve the 17 equations for 17 unknowns. Assuming all 7 segments are used the 17 unknowns are
t01, x1, v1, t12, x2, v2, t23, x3, t34, x4, t45, x5, v5, t56, x6, v6, t67
This assume point 0 is the starting point and x7 is the ending point.
The initial and final PVA are known and and commanded P, V, A are given.
you do not need everything Peter is referencing.
Probably not but we don't know for sure.
In my case the motion controller must be able generate any motion profile the customer wants. Whether the equipment can actually follow it is up to the designers.
The OP mentions 7-segment profiles, which implies the former.
I mentioned before the commanded acceleration and velocity may not be reached when making short moves. In this case there are only 3 segments and the motion is jerk limited.