Welcome, Guest
Username: Password: Remember me

TOPIC: Slider value update into tag as you drag it

Slider value update into tag as you drag it 1 year 1 month ago #3189

Hi,
I'm quite a new user of the soft, so sorry in advance for silly questions if they may seem so.
I have a horizontal slider in the program and it is linked to a tag which send the value to a PLC.
However, the value of the tag changes only when i let the slider go. For example you touch the slider, you drag it and see that the digital value changes, however the actual PLC doesn't get the value until i let the slider go.
I couldn't find any settings for this in the basic slider properties. assuming it needs to be linked to a script to update the tag live as you drag it accordingly?
I'm not familiar with the scripts at all, any help would be appreciated.

Thanks
The administrator has disabled public write access.

Slider value update into tag as you drag it 1 year 1 month ago #3190

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 984
  • Thank you received: 134
  • Karma: -103
Hello,
There is no need scripts fro changing value in PLC. Check that you correctly bind tag to PLC register.

Best regards,
Ruslan
The administrator has disabled public write access.

Slider value update into tag as you drag it 1 year 1 month ago #3192

Hi,
I think i wasn't 100% clear in my explanation.

i didn't mean any script in actual PLC but in teslascada project with script related to specific object namely the slider.

What i say, i have the runtime in a touchpad. when i either drag the slider with a finger, or with a mouse, i have the value changed in PLC only when i let mouse button go, but not as i drag the slider. so the tag update happens only once in the end when i let either mouse button or finger go depending on how i drag it. In fact the tag update is not simultaneous.
Attached three pictures.
- in 1, value on slider is 0 and the variable in plc is 0.
- in 2, i slid the slider to value 96 but i'm still holding the finger on the slider. slider shows 96, but value in PLC is still 0.
- in 3. i let the finger go off the slider, and only then the value in PLC updated.
server for the tag refreshing time i have 200ms so it is not the case

End the question is: if it is possible to set the slider that way, to update the tag simultaneously.
Thanks.

Приветствую,
Возможно, я не совсем четко выразился в объяснении.

Я имел в виду не скрипт в самом ПЛК, а в проекте TeslaSCADA, связанный с конкретным объектом, а именно со слайдером.

Что я хочу сказать: у меня запущен проект на тачпаде. Когда я перетаскиваю слайдер либо пальцем, либо мышью, значение в ПЛК меняется только тогда, когда я отпускаю кнопку мыши или палец с бегунка слайдера. То есть, тег обновляется только один раз в конце, когда я отпускаю кнопку мыши или палец, в зависимости от того, как я перетаскиваю слайдер. Обновление тега не происходит одновременно с движением слайдера.
Прикрепил три картинки.

на первой картинке значение на слайдере 0, и переменная в ПЛК также 0.
на второй картинке я передвинул слайдер на значение 96, но всё ещё держу палец на слайдере. Слайдер показывает 96, но значение в ПЛК по-прежнему 0.
на третьей картинке я отпустил палец от слайдера, и только тогда значение в ПЛК обновилось.
Интервал обновления тега у меня установлен 200 мс, так что дело не в этом.
Вопрос: можно ли настроить слайдер так, чтобы обновление тега происходило одновременно с перемещением?

Спасибо!
Attachments:
The administrator has disabled public write access.

Slider value update into tag as you drag it 1 year 1 month ago #3193

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 984
  • Thank you received: 134
  • Karma: -103
Hello,

The slider works as intended. The value is sent to the controller only when the user releases the finger. If this is not done, then intermediate values ​​will be sent to the controller, which is unacceptable in most tasks.

Best regards,
Ruslan

Ползун работает так как и было задумано. Значение посылается в контроллер только когда пользователь отпускает палец. Если так не делать, то в контроллер будут посылаться промежуточные значения, что в большинстве задач недопустимо.
The administrator has disabled public write access.
Go to top