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.IndexOfFirsttoPublish.IndexOfNext-1should 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.IndexOfFirstshould be set to the value ofPublish.IndexOfNext.
Members
PublishMessagingComPublishcontains all messages and the index to the next buffer position, where the PLC will write to.
SubscribeMessagingComSubscribecontains an index to the oldest entry in the message buffer. After reading the buffer this value should be updated.