Beckhoff-USA-Community / SPT-Libraries

MIT License
70 stars 16 forks source link

General HMI to PLC interface design #52

Open micfonon opened 2 months ago

micfonon commented 2 months ago

With the PackML interface, it's only possible to control the PackML state either by using a control source or accessing the PackMLBaseModule_HMI.Command variable.

two questions:

AB#4689

nshiggins commented 1 month ago

ControlSource was originally intended as a way to handle simple things like pushbutton clusters (think Start/Stop/Reset buttons). The ***_HMI structures are there for....HMIs....or for that matter anything that can reach in via ADS (or OPC, but that would require use of unfiltered symbols at the moment).

I'm not 100% clear on point 2 above. I would guess that the answer may be that for product specific logic, override CyclicLogic (or any of the existing methods that are automatically called for you) and make it your machine. Make a SUPER^ call to the method you overrode to preserve existing behaviors.