HI, This is a simple logic for LCRRamp block. The green color is the input. And the function follows it. We have two limits, upper and lower. On which the output is limited. But there is one thing that is strange. The blue graph is the output, which is trying to reach green. I set dy_up to 50 and dy_down to 20.
That is, I expected it to have a steep slope when it goes up and a gentle slope when it goes down. But as you can see, after passing through 0, when the output crosses 0, it seems like the two slopes are swapped and the slope of the line breaks. I’m a little confused. I’ve tested this many times. The result is the same.
When entering the negative region, the behavior of the slopes reverses. Have you experienced this? Unfortunately, there is no explanation in the manual.
TestRamp(
enable := enable,
x:=yset,
dy_up := dyup,
dy_down := dydn,
y_max := ymax,
y_min := ymin,
y_set := 0.0,
set := set,
);
OUT1 := Dualramp.y;
