MVP 2023 Flex727 Posted August 23, 2012 MVP 2023 Report Share Posted August 23, 2012 Is there any way to create a slider bar on the HMI that would control an MI smoothly between two values? An example might be to control the screen brightness by varying SI9 between 0 and 100 with the slider controlling the value. Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted August 24, 2012 MVP 2014 Report Share Posted August 24, 2012 I am not aware of a built-in way. When you say "any way" - you can use the direct draw functions to create your own (Draw Line, Draw Pixel and Clear Rectangle). Also use SI40 and 41 to read the touch coordinates. You can then manually draw the slider bar based on where the user touches the screen. What model PLC are you using? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 27, 2012 Author MVP 2023 Report Share Posted August 27, 2012 Thanks, I should've mentioned that I'm using a v570. Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted August 29, 2012 MVP 2014 Report Share Posted August 29, 2012 No worries, those direct draw functions should work fine on the V570. They needed a bit of tweaking for the V1040/V1210 but I think that has been done now. Link to comment Share on other sites More sharing options...
UdoB Posted December 30, 2016 Report Share Posted December 30, 2016 Hallo, I try the same (a slider on HMI to influence a MI). But this is not avaiable in the Toolbox of HMI (V1040). i got this with SI41, but ist not a good way. Any other idea? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted January 2, 2017 Author MVP 2023 Report Share Posted January 2, 2017 Here is how I ended up solving it. This application changes the display brightness by touching and sliding the Bar Graph left or right. The ladder logic would need to be adjusted for the actual coordinates of the slider bar. Note that I check to make sure the correct screen is being displayed and that the PLC is not in INFO Mode. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now