18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Communication with Other Devices<br />

Configuring an OPC Client connection to an OPC Server<br />

The OPC Client task/worksheet is used to communicate with any system that implements the OPC Server<br />

protocol.<br />

This task implements the OPC standard as described in the OLE for Process Control Data Access Standard<br />

Version 1.0A document, which is available at the OPC Foundation web site.<br />

Note: Before using the OPC Client task/worksheet in your project, you must make sure the OPC<br />

server software is properly installed and configured on the system to which you want to connect.<br />

To configure a new connection, insert a new OPC Client worksheet on the Comm tab of the Project Explorer.<br />

Sample OPC Client worksheet<br />

Use the following parameters in the configuration table for OPC:<br />

• Description text box: Type a description of the OPC task for documentation purposes only. (The OPC Client<br />

task ignores this information.)<br />

• Server Identifier: Type the name of the server you want to connect. If the server is already installed on the<br />

computer, you can select the server name from the list.<br />

• Disable: Type a tag or a constant with a value other than 0, to disable communication with the OPC server.<br />

Specify 0, or leave the field blank to enable communication.<br />

• Read Update Rate: Specify how often the server should update this group (in milliseconds). Specify 0 to<br />

indicate the server should use the fastest practical rate.<br />

• Percent Deadband (valid for analog items only): Specify how much percent change in an item value should<br />

cause a notification by the server.<br />

• Status: Type the name of a tag to receive the status of the connection. Good status is 1.<br />

• Remote Server Name: Node name or IP address of server on node network.<br />

• Read before writing checkbox: Check this option to force your project to read the original values of items on<br />

the OPC server just before writing new values to the server. The project does this by first buffering the<br />

new values to be written and then reading the original values from the server. Only after the project is<br />

synchronized with the server are the new values written from the buffer to the server.<br />

• Read after writing checkbox: Check this option to force your project to read back the new values of items on<br />

the OPC server just after the project has written those values.<br />

Caution: The Read before writing and Read after writing options are offered because the OPC Client/<br />

Server specification says that the value of an item on the client — in this case, your project —<br />

should not change unless the server sends the change. That way, the client always stays in sync<br />

with the server.<br />

Your project, however, may be designed to change those values according to runtime processes or<br />

user input. Therefore, the best way to change the values while staying in sync with the server is<br />

to make it seem like the changes originate on the server. With both options enabled, the following<br />

sequence of events happens on every scan of the OPC worksheet:<br />

Page 336<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!