Communication with Other Devices Configuring a TCP/IP Client connection to another project The TCP/IP Client task/worksheet is used to communicate with another IWS project server. TheTCP/IP Client and Server tasks enable two or more projects to keep their databases synchronized. These tasks use the TCP/IP protocol to provide communication between projects. Before using the TCP/ IP Client and Server tasks, you must make sure that TCP/IP (Ethernet) communication is properly configured and running on both servers. • To configure the server: You do not have to configure anything on the server itself. You just have to run the IWS TCP/IP Server task.
You can choose to run it automatically on start up, or run the task manually by clicking Tasks (either local or remote) on the Home tab of the ribbon. After running this program, a small icon displays in your system tray. • To close the IWS TCP/IP Server task: Right-click the TCP/IP Server icon in the system tray and click Exit . • To configure the client: You must use the TCP/IP Client Configuration program to specify the server IP address and the tags you want to share with the server on the client system. The TCP/IP Client Configuration program is located on the Comm tab and it uses the same commands as the Driver Configuration program.
TCP/IP Client Worksheet Configuration Use the following parameters to complete the TCP/IP Client Configuration: • Description field: Type a description of the TCP/IP Client worksheet, for documentation purposes only. The TCP/IP Client task ignores this information. • Connection Status field: Type a tag name and the TCP/IP Client Configuration task will update this tag according to its connection status. A tag value of zero indicates the connection is okay. Any other tag value indicates an error code returned by the Windows Socket library. • Disable : Type a tag name in this field. When this tag has any value other than 0, this TCP/IP worksheet will be disabled.
Using this field, you can enable/disable the TCP/IP Client worksheet during runtime. • Server IP Address field: Type the IP address and Port (optional) of the target server — for example, 169.254.182.158:123 . The Port should be the same on both the Client and Server stations. You can also specify a String tag enclosed in curly brackets (e.g., { tagname } ) if you want to dynamically change this address during runtime. • Send Fields checkbox: • Disable this box and the TCP/IP Client/Server tasks exchange only the tag values, and their TimeStamp and Quality.
• Enable this box and the TCP/IP Client/Server tasks also exchange the Min, Max, Ack, Unit, LoLoLimit, LoLimit, HiLimit, HiHiLimit, RateLimit, DevSetPoint, DevpLimit, and DevenLimit tag fields. Note: It is possible to add other fields to the TCP/IP communication or to disable any field individually. Contact your vendor for more information. • Tag Name field: Type the tags you want to share with the server. If the tag is an array or a class (or both), the project automatically enables every array position and class member for TCP/IP communication by default.
To configure a specific array position and/or a specific class member, type the array position and/or class member in square brackets following the tag name. For example, level[3].member . InduSoft Web Studio Page 313