ObX Collector
A web based application tool for collecting various data from OPC, MQTT and Modbus devices and push it to ObX historian.
Last updated
A web based application tool for collecting various data from OPC, MQTT and Modbus devices and push it to ObX historian.
Last updated
If you haven't installed ObX collector go over here.
The system interfaces with diverse sources like OPCUA servers, MQTT brokers, and Modbus devices (TCP and Serial). It incorporates data buffering functionality, which autonomously caches data during network disruptions between the ObX collector and ObX Historian, or in the event of historian server downtime. Subsequently, it automatically transfers the buffered data to the ObX historian upon network restoration or server availability.
Currently the ObX Collector supports the following protocol. In the future release, it will soon support Bacnet and EthernetIP.
OPCUA (Polling and Subscribe)
MQTT (Pub and Sub)
Modbus (TCP and RTU)
We prioritize the utilization of diverse communication protocols, with a particular emphasis on those widely adopted across various industries. OPC UA and Modbus are prevalent in small, medium, and large-scale Industrial Automation settings, whereas MQTT is commonly employed in the Internet of Things (IoT) domain. One advantageous aspect of these protocols is their widespread device support. However, in instances where existing systems or devices lack compatibility with these protocols, we recommend the use of protocol gateways readily available in the market as a straightforward solution.
There are multiple gateways that can convert multiple communication protocol to OPCUA protocol. Here are some.
These are just a few of the many gateways that you can use, most of them are cheap and have a FREE trial. You may use them to convert almost any protocols into a protocol supported by ObX collector.
You can access the ObX Collector UI by opening your browser and typing in http://localhost:1881
Open your browser and typing in http://localhost:1881
From the top-left side, click on the hamburger
menu and click Go to Settings
.
A login dialog will open. Type in the following credentials:
username: admin
password: admin
In the production environment, it is recommended to change the default password of the admin. You can change it anytime.
Prior to incorporating any devices and adding tags into the ObX collector, it is imperative to configure the historian settings within the collector. These settings dictate the destination where the collector will transmit data for historization, typically the computer hosting the ObX historian software.
Open a browser and go to http://localhost:1881
Go to Settings and Login your credentials (see here)
Click on the Settings
, this will open the Historian Settings
Configure the Historian settings with the following:
Historian Type
Only ObX Historian available
N/A
IP Address
The IP address of computer where ObX historian component installed
IP address (xxx.xxx.xxx.xxx)
FQDN (server.example.com)
localhost
Datasource
Collector Username
String and Case-senstive
Collector Password
String and Case-sensitive
Click OK
Make sure to input the correct ObX Collector username and password created in the ObX Admin tool as discussed here.
Adding a device in ObX collector is pretty straightforward.
Open a browser and go to http://localhost:1881
From the upper right menu, click on the hamburger icon -> Go To Settings
and Login your credentials (see here)
In the name
field, type your preferred name of the device and from the type select OPCUA
.
Fill all the required fields with valid values:
Name
The name of the device (String)
String (any)
Type
The type of communication protocol.
OPCUA
Polling
How fast this device (client) polls data from the OPCUA server. Omitting it will default to (1000ms)
500ms
1 sec
5 sec
10 sec
30 sec
1 min
5 min
Enable
Wether this device is enabled (means polling data from the opcua server) or not (not polling data)
Toggled Boolean (True or False)
Address
The URL connection address of the OPCUA server in UA TCP protocol.
opc.tcp://server:port/
ObX Datasource Name
Security
List of all available security settings in the specified OPCUA server URL.
Basic123Rsa15 - Sign
Aes128_Sha256_RsaOaep - Sign
Basic256Sha256 - Sign
None - None
Aes256_Sha256_RsaPss - Sign & Encrypt
Basic256 - Sign
Basic256 - Sign & Encrypt
Aes256_Sha256_RsaPss - Sign
Basic256Sha256 - Sign & Encrypt
Basic128Rsa15 - Sign & Encrypt
Aes128_Sha256_RsaOaep - Sign & Encrypt
Security (Username and Password) -Optional
If there is a credential indicated in the OPCUA server, you must supply the username and password.
username - string & case-sensitive password - string & case-sensitive
Click OK
Repeat the steps if you want to add more.
A color green status of the device indicates that you are successfully connected to the OPCUA server. Otherwise it is color red indicating that there is a fault in the connection.
There is no limitation of the number of OPCUA device to add in the ObX collector. However, make sure that there is enough resource capacity of the server where ObX collector is installed, the more data your are polling, the more resources is needed.
Make sure you have successfully connected to the OPCUA server and you have enabled the OPCUA device first. You cannot add opcua tags when either of the conditions is met.
From the Device Settings of ObX Collector:
Browse and Select all the Tags you want to add in the ObX Collector. Then click OK
.
By default, the Tag Options for every new tag added was set to the following: Historian - enable Polling Type - polled Save value interval - 1sec ObX Tagname - the Tagname of the tag selected Unit - Empty string Description - Empty string Engineering Max - 0 Engineering Min - 0 Format - Empty Scale Mode - Empty To learn more about Tag Options, go here.
Open a browser and go to http://localhost:1881
From the upper right menu, click on the hamburger icon -> Go To Settings
and Login your credentials (see here)
In the name
field, type your preferred name of the device and from the type select ModbusTCP or ModbusRTU
.
Fill all required fields with valid values:
Name
The name of the device (String)
String (any)
Type
The type of communication protocol
ModbusTCP
Polling
How fast this device (Modbus Master) polls data from modbus slave device. Omitting it will default to (1sec)
500ms
1 sec
5 sec
10 sec
30 sec
1 min
5 min
Enable
Wether this device is enabled (means requesting data from Modbus slave) or not (not requesting data)
Toggled Boolean (True or False)
Connection Options
Type of connection on how this device will connect to the modbus slave.
TcpPort - using tcp as protocol
UdpPort - using udp as protocol
TcpRTUBufferedPort
TelnetPort
Slave IP and Port
The IP address of the modbus slave device.
IP address:port xxx.xxx.xxx.xxx:[port] e.g. (127.0.0.1:502)
Slave ID
The slave ID of the modbus slave
1-255
ObX Datasource Name
Fragmented
No effect
N/A
Name
The name of the device (String)
String (any)
Type
The type of communication protocol
ModbusRTU
Polling
How fast this device (Modbus Master) polls data from modbus slave device. Omitting it will default to (1sec)
500ms
1 sec
5 sec
10 sec
30 sec
1 min
5 min
Enable
Wether this device is enabled (means requesting data from Modbus slave) or not (not requesting data)
Toggled Boolean (True or False)
Connection Options
Type of connection on how this device will connect to the modbus slave.
SerialPort
RTUBufferedPort
AsciiPort
ObX Datasource Name
Serial Port
The serial port name where the modbus slave device is connected.
e.g. COM1
Slave ID
The slave ID of the modbus slave device.
1-255
Baudrate
Baudrate of the communication.
Select from the options.
Data bits
Data bits of the communication.
Select from the options.
Stop bits
Stop bits of the communication.
Select from the options.
Parity
The parity of the communication.
Odd
Even
None (default)
Fragmented
No effect
N/A
A color green status of the device indicates that you are successfully connected to the Modbus slave device. Otherwise it is color red indicating that there is a fault in the connection.
There is no limitation of the number of Modbus slave device to add in the ObX collector. However, make sure that there is enough resource capacity of the server where ObX collector is installed, the more data your are polling, the more resources is needed.
When adding Modbus tag, take note that you have to know the list of Modbus addresses on the specific Modbus slave device. Contact the device supplier for the modbus table.
Other thing to note is, the modbus address could be based zero or + 1, you can try to use other tool first like ModbusPoll so you can easily identify its behavior.
When you already know specific modbus address:
Configure necessary field related to modbus.
Tagname
The name of the Tag.
String (any) - case sensitive
Register
The type of register
Coil Status
Digital Input
Holding Registers
Input Registers
Type
The type of the modbus value.
Selection
Address offset
The modbus address of the tag.
1-655536
Divisor
Automatically divide the raw value of data to specific number. Suppose your recieve integer value of 100, and you set the Divisor = 10, then your value will become 100 / 10 = 10.
Number
Click OK
button.
By default, the Tag Options for every new tag added was set to the following: Historian - enable Polling Type - monitor Save value interval - 1sec ObX Tagname - the Tagname of the tag selected Unit - Empty string Description - Empty string Engineering Max - 0 Engineering Min - 0 Format - Empty Scale Mode - Empty To learn more about Tag Options, go here.
Open a browser and go to http://localhost:1881
From the upper right menu, click on the hamburger icon -> Go To Settings
and Login your credentials (see here)
In the name
field, type your preferred name of the device and from the type select MQTTClient
.
Fill all the required fields with valid values:
Name
The name of device.
String (any)
Type
The type of connection
MQTTClient
Polling
How fast this device (client) polls data from the OPCUA server. Omitting it will default to (1000ms)
500ms
1 sec
5 sec
10 sec
15 sec
30 sec
1 min
5 min
Enable
Wether this device is enabled (means actively subscribing to a topic from the MQTT broker) or not (inactive).
Toggled Boolean (True or False)
Address
The mqtt broker address.
mqtt://server:port
ObX Datasource Name
Security
If with Username and Password credentials
Client-ID - define your custom clientID. Username - the username when connecting to MQTT broker. Password - the password when connection to MQTT broker.
TLS Certificate
When connecting via TLS certificate, you have to upload the certificate given by the MQTT Broker.
Certificate
Private Key
CA Certificate
Click OK
A color green status of the device indicates that you are successfully connected to the MQTT Broker . Otherwise it is color red indicating that there is a fault in the connection.
There is no limitation of the number of MQTT broker to add in the ObX collector. However, make sure that there is enough resource capacity of the server wher ObX collector is installed, the more data your are polling, the more resources is needed.
Before adding any MQTT tags, make sure that you have successfully connected to the broker and that the device is enabled.
In the window, there are two tabs (Subscribe and Publish). Make sure you are in the Subscribe
tab.
In the Browser Topics in broker
, input the topic you want to subscribe. Then press the Search
πicon.
In the step 4, this will list multiple topics or a single topic depends on how to define the topic. If you use wildcards e.g. ("topic1/#"), then it should look to all topics under the "topic1".
From the list, click on the topic you want to add.
Select wether the payload format of the topic value is RAW or JSON. (You should select according to the actual value)
In the below configuration, specifically the "Name
", you may input the name of the Tag you want for this Tag.
In step 7, make sure you define a Name
for the specific tag, otherwise it will be "undefined" and may cause error.
Click the Subscribe
button.
By default, the Tag Options for every new tag added was set to the following: Historian - enable Polling Type - monitor Save value interval - 1sec ObX Tagname - the Tagname of the tag selected Unit - Empty string Description - Empty string Engineering Max - 0 Engineering Min - 0 Format - Empty Scale Mode - Empty To learn more about Tag Options, go here.
Tag options defines the characteristic of the Tag on how are they historized in the ObX Historian. Such characteristics will be based on the following configuration.
Historian
Wether this tag will be historized or not in the ObX historian.
Toggled switch Boolean True - means it will historized to ObX historian False - nothing
Polling type
The type of polling, wether to poll at every specific seconds (based on the settings of Save value interval
) or Monitored.
Polled
- will read the data and save it regardless if its value changed or not. Use this if you want to historized specific parameters that very seldom to change its value.
Monitored
- will read and save the data if there is only a change in the value of the tag. Use this if your data changes frequently. Monitored items are only applicable for OPCUA device.
Save value interval (sec)
1 - 1 sec 5 - 5 sec 10 - 10sec 15 - 15sec and so on.. Note: Make sure that you will only input number that is when divided by 60 (1 minute), will not give you remainder.
ObX Tagname
The name of the Tag in the ObX historian.
String (Optional) default to the name of Tag itself.
Unit
The unit of the Tag
String (Optional)
Description
The description of the Tag
String (Optional)
Engineering Max
The maximum value of the Tag
Number (Optional)
default to 0
Engineering Min
The minumum value of the Tag
Number (Optiona)
defaul to 0
Format digits
The number of decimal number points.
Number (Optional) default to Nothing, automatically gets all the decimal number. Specifying 2 will only get the first 2 decimal number in the floating value.
Scaling
Setting if you want to Scale Up or Down the raw value of the specific Tag.
Options (default to No Scaling) No Scaling - No scaling of the value Linear - Linear scaling of up or down of the value
Configure the Tag Options
based on your requirements.
and Click OK
.
To take effect all the Tag Options settings, click on the save icon πΎ
Note: There are 2 save icon buttons in the collector, please click the save icon (right-side of the Timestamp column)
A confirmation dialog will open, simply click OK
.
Deleting a tag in any devices is pretty straight-forward.
From the Device setting in ObX Collector:
Once you have deleted all the tags you want to delete. Click on the Save (At the top left corner) button to take effect.
Make sure you hit that Save
button (at the top left corner) to take effect the deletion.
On the upper left side menu, click on the settings
button with icon, this will open the collector settings window.
The datasource name in the ObX historian as discussed . This will override the datasource field indicated in the Collector historian settings
Selection - a list of datasources created in the ObX Admin tool as discussed .
The username of the ObX Collector user. Make sure the user is existing as discussed
The password of the ObX Collector user. Make sure the user is existing as discussed
On your lower right corner, click on the button, this will open a Device Property
window.
The datasource name in the ObX historian as discussed . This will override the datasource field indicated in the Collector historian settings
Selection - a list of datasources created in the ObX Admin tool as discussed .
Click the edit device tag
icon of the specific device you want configure. This will open the List of tags already added in that device.
From lower right, click on the icon. This will open the Browse Tags in Server
window. This windows will allow you view and select existing tags in the opcua server.
On your lower right corner, click on the button, this will open a Device Property
window.
The datasource name in the ObX historian as discussed . This will override the datasource field indicated in the Collector historian settings
Selection - a list of datasources created in the ObX Admin tool as discussed .
The datasource name in the ObX historian as discussed . This will override the datasource field indicated in the Collector historian settings
Selection - a list of datasources created in the ObX Admin tool as discussed .
Click the edit device tag
icon of the specific device you want configure. This will open the List of tags already added in that device.
From lower right, click on the icon. This will open the Tag Property
window.
In your lower right corner, click on the button, this will open a Device Property
window.
The datasource name in the ObX historian as discussed . This will override the datasource field indicated in the Collector historian settings
Selection - a list of datasources created in the ObX Admin tool as discussed .
Click the edit device tag
icon of the specific device you want configure. This will open the List of tags already added in that device.
From lower right, click on the icon. This will open the Broker Topics to subscribe and publish
window.
The value in seconds to how frequent this tag to be historized in ObX historian. Note: This will not override the polling in the Device level. Basic rule of is always make the polling interval in the Device level to be faster than the settings you will configure in a Tag level.
Click the edit device tag
icon of the specific device you want configure. This will open the List of tags already added in that device.
From the table of list of Tags, each row of Tag contains an ellipsis icon (on their right-side). Click on this icon and select -> Tag Options
.
Click the edit device tag
icon of the specific device you want configure. This will open the List of tags already added in that device.
From the list of Tags, you can see that for every tag, it has an option (at right side). Click the X mark of the Tag you want to delete. You can also delete multiple tags.