Step 1: Server settings

<< Click to Display Table of Contents >>

Manual > Server Creation Guide > Interface > OPC Interface > OPC connection from VisualBasic.NET >

Step 1: Server settings

Step 1 Server settings

Start FA-Server and follow the steps below to set up the tags. In this example, we will use a virtual device instead of connecting to PLC. If you have a PLC at hand, you can set up the tags for PLC.

 

1.Adding a unit
 
Right-click "Driver" in the tree on the left side of the screen to display the menu and select "Add Unit".
 
c_interface_0055
 
A selection dialog will appear, so select "Memory", "Virtual Communication", and "Virtual Device", and then click "OK".
 
c_interface_0056

 

2.Add Folder
 
Right-click "U01" to display the menu and select "Add Folder".
 
c_interface_0057
 

3.Add Tag
 
Right-click "F01" to display the menu and select "Add Tag".  The tag "T01" will be added.
 
c_interface_0058

 

4.Tag property settings
 
Right-click "T01" from the list to display the menu, and select "Properties".
 
Select "04 - D Data Register" from the "Address Settings" tab and click "OK." In the following example, D0000 (word register) is set as the numeric tag.
 
c_interface_0059

 

5.Now save the configuration file and bring the application online.
 
c_interface_0181