Getting Started – Excel

Follow the steps below for a simple setup for read and write functions in Microsoft Excel or view the video in the Videos-Excel topic in this section.

Step 1

Start the OAS Excel tag browse application from the program group Open Automation Software.

Step 2

Start Microsoft Excel.

Step 3

In the OAS Excel tag browse application select the Local service or the remote service that has the Open Automation Software Tags you want to read and write to.

Step 4

Browse for either an Open Automation Software Tag Value to read or DirectOPC item to read.

Getting Started-Excel 428

Step 5

Select the Copy to Clipboard button.

Getting Started-Excel 429

Step 6

Switch to Microsoft Excel and paste the formula into any cell and move off of the cell.

The value will appear in the cell.

Step 7

To enable a write function back to Open Automation Software Tags or DirectOPC items return to the OAS Excel tab browser and select a tag you want to write to.

Getting Started-Excel 430

Step 8

Under the Read / Write section select the Write option and specify either a value to write or a cell location in the Worksheet where the value will come from.

Getting Started-Excel 431

Step 9

Select the Copy to Clipboard button.

Getting Started-Excel 429

Step 10

Switch to Microsoft Excel and paste the formula into a cell.

=RTD(“OPCExcel”,,”Write OPC Output.Value”,”Write”,B2,0.01,1)

Step  11

Enter your desired value you want to write, in this example the data will be coming from the value in the cell B2.

Verify that the value has been written to the tag. If the data source is an OPC Item the value will be written to the OPC Server.

Step 12

If the service you are connected to has Security enabled for reading or writing to tags you can specify the Security option in the OAS Excel tag browser and specify the User Name and Password for the Log In option.

Getting Started-Excel 432

=RTD(“OPCExcel”,,”Security”,”Log In”,””,””,1)

The User Name and Password can come from other cells that can be made hidden in the Excel Workbook if you like.

=RTD(“OPCExcel”,,”Security”,”Log In”,D2,E2,1)

Step 13

You can then save your Microsoft Excel Workbook and open anytime in the future to update the values.

Step 14

If you plan to run the Workbook on a different PC than the OAS Service include the Network Node Name, IP Address, or registered Internet domain name in the tag path.





To run the Workbook remotely you will need to install the product feature OAS Excel Connector on that PC, but you only need a license of OAS Excel Connector on the data source PC where the OAS Service is running.