MessagingCom
- Namespace
- ZApplication
This struct is used to receive messages from the PLC in an external application, e.g. a receiver.
The receiver has to listen to changes of the Publish
struct. Whenever Publish.IndexOfNext
changes
- All messages from
Subscribe.IndexOfFirst
toPublish.IndexOfNext-1
should be read from the buffer. The array overflow has to be dealt within this regard, as the last index in the array is a library parameter. - To indicate to the PLC that all messages have been read from the buffer
Subscribe.IndexOfFirst
should be set to the value ofPublish.IndexOfNext
.
Members
Publish
MessagingComPublishcontains all messages and the index to the next buffer position, where the PLC will write to.
Subscribe
MessagingComSubscribecontains an index to the oldest entry in the message buffer. After reading the buffer this value should be updated.