Hello, I am trying to figure out how to make a block which should be used as gradually controlled voltage and current source (0-10V and 4-24mA) initiated/stopped with two push buttons. There should be a possibility to enter voltage or current max and min values, time period in which decreasing/increasing of voltage or current should happened, and, what is the most important thing, gradual change should be initiated/stopped with the two push buttons. Unfortunately I am a novice, I addressed Siemens and few other forums about this, but all I got from them is to try to combine some of OSCAT's solutions in order to achieve the solution. Please let me know if you have some idea how this could be arrange it.
Thank you for your video, however the presentation is very blurred. Would you be able to correct or re do this tutoral I would greatly appreciate it. Best regards, Tony.
Well it would be pretty much identical. You'd say #temp_normalizedValue := NORM_X(MIN:=#MIN_VALUE, VALUE:=#rawValue, MAX:=#MAX_VALUE); output := SCALE_X(MIN:=.............) One thing that maybe I should actually have done different would be, if you're using FC to pass the output as the RETURN of the function rather a dedicated output.