Jump to content

How to create a slider bar

Recommended Posts

  • MVP 2014

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

  • 4 years later...
  • MVP 2023

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
Link to comment
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.

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...