Table of Contents

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

  1. All messages from Subscribe.IndexOfFirst to Publish.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.
  2. To indicate to the PLC that all messages have been read from the buffer Subscribe.IndexOfFirst should be set to the value of Publish.IndexOfNext.

Members

Publish MessagingComPublish

contains all messages and the index to the next buffer position, where the PLC will write to.

Subscribe MessagingComSubscribe

contains an index to the oldest entry in the message buffer. After reading the buffer this value should be updated.