Jump to content

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.Slider Bar.jpg

  • Upvote 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...