...
Table of Contents |
---|
...
Overview
As with all adapters, an existing https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview is required.
...
Where to find the different Gateway Adapters.
...
Where to find
To find the Active MQ adapter, go to the Inspector window of a https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview component.
This https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview can be added under Logic.
...
Feature overview
...
Info |
---|
Only the settings between the lines refer to the Active MQ Adapter. |
...
Gateway settings | |||
---|---|---|---|
Adapter Target | Select a different adapter, please see respective documentation for more information | ||
Adapter Setting (MQTTServerSettings) | |||
XmlFilePath | File path to the policy file
| ||
ServerName | Is used as the an indicator in the XML policy file | ||
IP Address | The address of the ActiveMQ server. This can be a be in IPv4 address or a hostname like localhost | ||
Port | The port on which the ActiveMQ broker is running, the default port is 61616. | ||
CorrelationID | The identifier on which a message responds. Different Correlation IDs can communicate over the same queue, but is not recommended. Make sure other clients use the same Correlation ID | ||
DeliveryMode | Int that defines whether the message is persistent(0) or non_persistent(1). Persistent is default and makes sure the message survives a broker reset. It can be a slower than non_persistent | ||
Lifecycle settings |
|
...
Prerequisites
ActiveMQ can work with an online broker on the internet, but is more commonly used with a local broker. A local broker can be downloaded from the Apache Website: https://activemq.apache.org/components/classic/download/
...
In the admin panel you will find an overview of the current queues and its connected consumers and producers when you click on ‘Queues’.
...
Used Protocol
To communicate with the ActiveMQ adapter in prespective you need to have to apply the following protocol:
...
Destination = queue as defined in plc address
CorrelationID = same as defined in ActiveMQ adapter settings
...
Supported Types
BOOL
BYTE
SBYTE
WORD
DWORD
SHORT
USHORT
INT16
UINT16
INT32
UINT32
INT64
UINT64
REAL32
REAL64
BYTEARRAYSTRING
STRUCT
...
Naming Rules
Setting up the component works as like any other prelogic component. The thing you have to take into account is how the PLC Address Path Format (or implicit naming rule) is configured. The output of this Address is the path to the queue.
...