Beckhoff-USA-Community / SPT-Libraries

MIT License
70 stars 16 forks source link

MM or EM custom HMI Communication #50

Open 99jj234 opened 2 months ago

99jj234 commented 2 months ago

HMI patterns for components are well documented. No problems there.

But what are the recommendations for Equipment Module or Machine Module HMI communication? Documentation for that either does not exist yet, or I suck at finding it.

AB#4650

nshiggins commented 1 month ago

Apologies for delayed response...busy times to be sure.

For descendants of FB_PackML_BaseModule the pattern should be more or less the same as components. There is a method HMICommunication that is called cyclically, and a group of structs underneath ST_PackMLBaseModule_HMI that allow for basic commands like changing modes, commanding state changes, etc.

For application-specific stuff, override the HMICommunication method (or just copy/paste from the base) and make your own struct/variables/whatever. Make a call to SUPER^.HMICommunication() to preserve the base functionality.