As with all adapters, an existing
is required. https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview Where to find the different Gateway Adapters. Where to find
To find the Active MQ adapter, go to the Inspector window of a
component. https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview This can be added under https://unit040.atlassian.net/wiki/spaces/PUD/pages/280987237/Logic+Simulator#Overview Logic. Feature overview
Only the settings between the lines refer to the Active MQ Adapter.
Please check the documentation for the rest of the
Select a different adapter, please see respective documentation for more information
Adapter Setting (MQTTServerSettings)
File path to the policy file
Warning : <Make sure to fill in a relative path to the Asset folder of the project and include .xml file extension>
Is used as the an indicator in the XML policy file
The address of the ActiveMQ server. This can be a be in IPv4 address or a hostname like localhost
The port on which the ActiveMQ broker is running, the default port is
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
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
Not implemented for Active MQ
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:
Java Runtime Environment is required.
The README.txt in the zip file will help you setup the broker.
Once the broker is running you will find the broker admin page on
In the admin panel you will find an overview of the current queues and its connected consumers and producers when you click on ‘Queues’.
To communicate with the ActiveMQ adapter in prespective you need to have to apply the following protocol:
Each type has a specific Set and Get command. This differs a little bit per language. Please visit the ActiveMQ supported language page to check yours
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.
Simulator1 is the instance name of the simulator DrivenStepper the instance of a motor object iPosition is the variable name as defined in the signal definition
This structure is based on MQTT and can be adapted to any personal preference, because this adapter implementation uses queues instead of topics.