Author Topic: AdvancedHMI as Soft-PLC  (Read 1244 times)

kallileo

  • Newbie
  • *
  • Posts: 7
    • View Profile
AdvancedHMI as Soft-PLC
« on: January 03, 2019, 06:39:53 AM »
I was wondering how it's possible to use AdvancedHMI as Soft PLC.
I understand all the real-time restrictions of the OS and the whole setup but for test purposes and non critical applications it could work.

Lets assume that it's acceptable so I guess that a separate thread should be created in order to run the control code.
Has anyone done it before?




Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5323
    • View Profile
    • AdvancedHMI
Re: AdvancedHMI as Soft-PLC
« Reply #1 on: January 03, 2019, 11:27:12 AM »
I have only done this one time at the customer's insistence, but I advise against it. The technique I used was with a serial IO block that used a custom protocol. Basically it would send the outputs, then the IO would respond with the values from the inputs. This would then trigger the next request cycle. I created a custom class that had an InputsChanged Event and properties for the outputs.