Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Kristjan on August 11, 2022, 05:51:49 AM

Title: Write to PLC through User Pages?
Post by: Kristjan 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?
Title: Re: Write to PLC through User Pages?
Post by: Greg 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.
Title: Re: Write to PLC through User Pages?
Post by: Kristjan 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  ;)
Title: Re: Write to PLC through User Pages?
Post by: BobO 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.
Title: Re: Write to PLC through User Pages?
Post by: etElMadr 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?)