Quickstart
Last updated
Last updated
In this 5–10 minute guide, you will set up communication with a Modbus TCP device and create several tags available for the OPC UA client. If you do not have Monokot Server, go to this section to download and install it.
Open Monokot Server Administrator
Create a new connection or just click the Connect button to connect to the local server
Please wait until the main application window opens
In the Server Explorer pane, double-click on Devices to open the device manager
In the device manager, click on the New Device button
In the drop-down menu, select Modbus TCP
On the settings pane, enter the IP address of the target device and slave ID (if required)
In the Server Explorer pane, double-click on Tags to open the tags manager
In the tags manager, click on the New Group button
Double-click on the new group, name it as MyModbusTags and press the Enter key
Click on the New Tag button
To associate the tag with a device, double-click on the Device cell
Click on the ... button in the device cell
In the device selector dialog window, select the Device1 and click the OK button
Double-click on the Address cell
To specify Modbus register, in the address editor, type 300000@WORD and press the Enter key or use graphical address editor by clicking on the Pen button. Thus, the tag will be addressed to the first register of the Internal Registers area in the Word format
Click on the New Tag button and associate the created Tag2 with Device1
Set address 400001.3 to Tag2. Thus, the tag will be addressed to the fourth bit of the second register from the Holding Registers area
To make your changes take effect, click on the Sync button (on the top panel) or press the F5 key
After the changes are synchronized with the server, the Tag1 and Tag2 will be associated with the specified registers and will become available to the OPC UA client.
In the OPC UA client, connect to the Monokot Server using the following endpoint parameters:
Endpoint URL - opc.tcp://localhost:43043/MonokotOPC
Security Policy - None
Authentication Mode - Anonymous
Now you can see the created tags and device in the object browser of your OPC UA client.