@j.palmeL29YX wrote:
Tomorrow I will give you an explanation.
A first note:
My suggestion above is too complicated, the dummy part (temp.ipt) and its relationships are not necessary. You can delete the part temp.ipt. (It would be only necessary if the movement is more complex). For the angle we can write a function depending directly on the parameter d0 (the Flash constraint). But the formula will be the same (only d12 substituted by d0):
We can imagine the angle as a function of the linear movement.
d21=f(d0)
(see attached image, where x-axis = d0, y-axis = d21)
While a move of 9.5 (-24 ... -33.5) mm the rod must rotate about 90°.
So the slope of the line is 90/9.5.
The angle is 0 where the movement is at -24 (and higher).
So we can write a linear function
d21= d0 * (90 / 9,5) + 24 * (90 / 9,5)
Check it:
d0 = -33.5 => d21 = -90
d0 = -24 => d21 = 0
If d0 will be greater than -24 the calculated angle d21 will be greater than 0. Therefore I use the min-function to get always the value which is the smaller one of both, the calculated value or 0.
d21= min((d0 * (90 / 9,5) + 24 * (90 / 9,5)) ; 0)
At last we need to clean up the units of measurement. d0 brings the unit mm, the result d21 needs the unit deg.
Therefore we remove the mm with a division by 1 mm and add the degrees with a multiplication by 1 deg. The factor (90/9.5) is unitless (ul).
The complete formula:
min(( d0 * 1 deg / 1 mm * 90 ul / 9,5 ul + 24 deg * 90 ul / 9,5 ul);0 deg)
Now we can drive the parameter d0 as shown in the video above.
HTH
Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
