Page 1 of 1

OpcUa Extender Server:如何當Modbus Client 、 OPC UA Client 使用等?

Posted: Fri Feb 16, 2024 9:52 am
by OpcUa Support
  • 當 Modbus Client 使用。
Environment:
  • modsim32
  • OpcUa Extender Server
  • UaExpert/IoT Studio
Step 1:
Utilize modsim32 to create a Modbus TCP device.
modbus_tcp_device.PNG
modbus_tcp_device.PNG (91.21 KiB) Viewed 1810 times

Step 2:
Launch OpcUa Ext. Utility, then select the "Industrial Protocol" tag.
Add a "Modbus Tcp Configuration".
Prepare a Modbus device nodes config file for access and add it in the "Modbus Tcp Configuration".
Example: Modbus device nodes config file

Code: Select all

;TagName , DisplayName , Directory , Type , Trans , Address , Length , Factor , Offset
"TagString_4_40100","TagString_4_40100","InputReg/STRING","STRING","",40100,4,,
"TagString_4H_40100","TagString_4H_40100","InputReg/STRING","STRING.H","",40100,4,,
"TagString_4L_40100","TagString_4L_40100","InputReg/STRING","STRING.L","",40100,4,,
"TagString_4_30100","TagString_4_30100","InputReg/STRING","STRING","",30100,4,,
"TagString_4H_30100","TagString_4H_30100","InputReg/STRING","STRING.H","",30100,4,,
"TagString_4L_30100","TagString_4L_30100","InputReg/STRING","STRING.L","",30100,4,,
modbus_tcp_device_config.PNG
modbus_tcp_device_config.PNG (20.63 KiB) Viewed 1809 times
After configuring Modbus TCP, apply the changes, then restart the OpcUa Extender Server.

Step 3:
Utilize UaExpert to connect to OpcUa Extender Server, locate the Protocols in the relative Modbus TCP folder.
UaExpert_Client.PNG
UaExpert_Client.PNG (13.42 KiB) Viewed 1809 times
Then, you can read/write to the Modbus TCP device like a Client.

  • 當 OPC UA Client 使用。
  • Another OpcUa Extender Server/other OpcUa Server
  • OpcUa Extender Server
  • UaExpert/IoT Studio
Step 1:
Utilize OpcUa Extender Server to create a target OpcUa Server.
Then got the target OpcUa Server Endpoint like: opc.tcp://os-x:48010

Step 2:
Launch OpcUa Ext. Utility, then select the "Industrial Protocol" tag.
Add a "OPC UA Client".
Prepare a OPC UA Client nodes config file for access and add it in the "OPC UA Client Configuration".
Example: OPC UA Client nodes config file

Code: Select all

;TagName , DisplayName , Directory , Type , Trans , Address , Length , Factor , Offset
Int32_Var01,Int32_Var01,,INT32,,ns=2;i=6003,1,,
Int32_Var02,Int32_Var02,,INT32,,ns=2;i=6004,1,,
Int32_Var03,Int32_Var03,,INT32,,ns=2;i=6005,1,,
Int32_Array,Int32_Array,,INT32,,ns=2;s=Tags.TagType.INT32.TagInt32_Arr[4],1,,
Float,Float,Float,FLOAT,,ns=2;i=6012,1,,
Verify the OpcUa Server is Exist, press the "Connection Test" button.
opcua_client.PNG
opcua_client.PNG (18.95 KiB) Viewed 1808 times
After configuring OPC UA Client, apply the changes, then restart the OpcUa Extender Server.

Step 3:
Utilize UaExpert to connect to OpcUa Extender Server, locate the Protocols in the relative OPC UA Client folder.
UaExpert_OpcUaClient.PNG
UaExpert_OpcUaClient.PNG (11.27 KiB) Viewed 1808 times
Then, you can read/write to the OPC UA Client like a Client.