Section for configuring WinTr as Server and Client.
WinTr can be configured as Server, Client or both in order to accessing remote tags synchronously.
There is no limitation at the WinTr Client count for connecting the WinTr Server.
A WinTr Client can connect up to 1000 WinTr Server at a time.
Client(Only Connection Server):
Configures WinTr as a client in order to accessing remote WinTr Server tags. Thus WinTr Client can read and write remote WinTr Server tags synchronously.
This synchronous access made via Client side synchronous tags.
This option contains fields about server address and tag list for creating and configuring synchronous tags.
Server(Enable Remote Connection):
When WinTr configured as Server, it's tags can be read or written by Client WinTr stations. When Disable Multiple Connection/Enable Multiple Connection option is checked, all WinTr Client connections will be accepted and all tags can be read or written by Client. If this option is unchecked, only specified IP address connection will be accepted.
In TCP/IP Port field, port number specified. To establish a connection port number must be same for both side.
Restart button starts server.
For Tag List's right click menu;
Remove Snychronization, removes Synchronized tag for selected row.
To establish a connection between Server and Client, firewall settings should allow to WinTr. If WinTr server is behind ADSL modem, routing should be made for the server.
When configurations done, Client WinTr stations can connect to WinTr Servers and read or write tags.
It is not necessary switching to runtime mode for server. Connections can be established in development mode also.
By entering server address and clicking connect button, taglist will be filled with the Server tags.
To read and write to remote WinTr Server's tags, Synchronous tags should be created at the Client WinTr.
Synchronous tags will be shown at the "Synchronous Tag Name" column in the taglist.
Tag information is fetched from the remote WinTr server by clicking connect button. Because of the no Synchronization hasn't been done yet "Synchronous Tag Name" column is empty at that time.
Synchronous tags can be created at once or can be specified among previously created tags.
To create them at once:
Select whole list by clicking left mouse button at the top left corner of tag list.
Right click and open menu. Select Add New Tag in Client.
If same tag name exists with the Synchronized tag, tag name extended by "_" with following number starting from 1.
Read/Write permissions for Synchronized tags are determined in Read-Write column.
IP Address: Address for connected computer.
TCP/IP Port: Port number for connected computer. Port number should be same for both side.
Time Out: Time out period for establishing connection.
Connect: Connects to the server and fetches tag information.
Clear All Asynchronous Tag, removes the rows that not Synchronized.
Delete, deletes synchronization and rows.
To finishing and updatingSynchronization with the server Tag Synchronization Table and Tag List Synchronized button must be clicked.
There is two command at the ConnectionManager section for checking synchronization: Synchronous Tag List and Synchronous Tag Test.
These commands locates in the menu which opens by right clicking on tag list in Connection Manager.
Synchronous Tag List: Listssynchronized tags at the right.
Synchronous Tag Test: Checks for type mismatches and absences of synchronizedtags. Errors shown at the right side.
If there is any error, a message shown indicating server is disabled and will not attemp to connecting server again unless the synchronization remade.
Server and Client:
WinTr can be used as Server and Client at same time. This option contains both server and client configuration settings.
For specifying one by one among existing tags;
Right click on selected row and menu will open. Select a tag form Tag Synchronization group.
If client can not establish the connection when runtime first started, It will not attempt to connect again.
Control Panel - Configuring WinTr for Local Usage
Control Panel - Configuring WinTr as a Server
Control Panel - Configuring WinTr as a Client
Control Panel - Tag Synchronization
Control Panel - Creating synchronous tags
Control Panel - Synchronous Tag Names
Control Panel - Synchronizing Tags
Control Panel - Synchronize Tags Read/Write permissions
Control Panel - Removing Synchronization
Control Panel - Removing Asynchronous Tags
Control Panel - Deleting Synchronization
Tag Synchronization Table and Tag List Synchronized
Synchronous Tag List - Synchronous Tag Test
Synchronization warning message
Control Panel - Configuring WinTr as a Server and Client
Local(Disable Remote Connection):
Option for not using Server - Client features. This option has no subsetting.
Sample WinTr Server-Client Configuration:
You can follow below instructions for configuring WinTr as Server and Client:
After creating Tags and building the screens, go to Control Panel - Server&Client Tab and select Server(Enable Remote Connection) to configure WinTr as Server. Then save the project.
To create a Client for the Server project, click Save As on toolbar and save the project by giving the "Client" name then select Client from Control Panel - Server & Client tab. Now opened project has changed to Client project. If Client not selected, both project will try to use same port as a Server and error message will be shown.
Open Server project in another WinTr. Now both Server and Client projects are opened on same computer.
Go to Client project and delete all tags. (Go to Connection Manager, right click on Tag List and select Delete All. Other connection module's tags should be deleted from related tabs.)
Select Client(Only Connection server) from Control Panel's Server&Client tab. Determine Server IP and Port Mumber. Because of two project located on same computer now leave 127.0.0.1 here.
Connect to Server project by clicking Connect button. All tags in the server will be listed. Select all tags and open right click menu on the list then select "Add New Tag in Client" thenclick on Tag Synchronization Table and Tag List Synchronized button. Now, Tags are created and synchronized with the server.
Switch both project to Runtime Mode and see the tags working synchronized.
Using WinTr in Local-Server and Client modes:
Click here for downloading sample server-client project files. After you download the projects, you need to make Save As in the WinTr first.