News:

  • October 13, 2025, 09:40:01 AM

Login with username, password and session length

Author Topic: Write to PLC through User Pages?  (Read 2309 times)

Kristjan

  • Sr. Member
  • ****
  • Posts: 67
    • Idnadartaekni ehf
Write to PLC through User Pages?
« on: August 11, 2022, 05:51:49 AM »
I have BX User Pages up and running, really like the web server functionality.

In the user pages I am only reading data from the PLC (like in the ACC Automation Youtube video). Is it possible to write data to the PLC through User Pages?

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Write to PLC through User Pages?
« Reply #1 on: August 11, 2022, 08:59:36 AM »
Is it possible to write data to the PLC through User Pages?
Currently, this is read-only.
« Last Edit: August 11, 2022, 09:03:24 AM by Greg »
There are two types of people in the world; those that can extrapolate from incomplete data sets.

Kristjan

  • Sr. Member
  • ****
  • Posts: 67
    • Idnadartaekni ehf
Re: Write to PLC through User Pages?
« Reply #2 on: August 11, 2022, 11:10:14 AM »
Thank you for the reply.
I guess this is on a wish list somewhere  :)
Read/Write through user pages would be great for multiple use cases, e.g. customers that just need a simple user interface or a contractor who is installing our system and wants to test on his own. I understand there are both security and safety implications - the sharpest knives will hurt you if you don't know how to handle them  ;)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: Write to PLC through User Pages?
« Reply #3 on: August 11, 2022, 11:37:17 AM »
Thank you for the reply.
I guess this is on a wish list somewhere  :)
Read/Write through user pages would be great for multiple use cases, e.g. customers that just need a simple user interface or a contractor who is installing our system and wants to test on his own. I understand there are both security and safety implications - the sharpest knives will hurt you if you don't know how to handle them  ;)

We've kicked around several ideas. The easiest to justify is to add write capability when we add HTTPS server capability, which may or may not ever get added to current hardware due to performance considerations. Obviously it could be done with the current server if users take responsibility for security. Unfortunately lots of people are prone to do dumb things, so there is some reluctance. We are adding the ability to set tag read/write permissions as part of supporting some new POMs we are developing, so being able to restrict what things can be written might add some weight to the side of adding write capability to HTTP, but again, there is reluctance.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

etElMadr

  • Full Member
  • ***
  • Posts: 37
Re: Write to PLC through User Pages?
« Reply #4 on: August 30, 2022, 08:37:30 PM »
FWIW, I ran into this some time ago. Ended up building a UI in Node Red, using a node called UIBuilder, and learning VueJS. PLC & RaspPi communicate via MQTT & UDP. It works well, though I have a lot of concern about the robustness of the Rasp Pi (Maybe a product idea for Host?)