omron — ODBC

Background Tasks Use the Body parameters on this worksheet as follows: • Tag Name field: Type the names of tags to update with file contents or tags whose values should be written to a file. • Column : Type the location in which to find data in the file (for example, R3CH corresponds to Row 3, Column H of an Excel sheet) You must use the Windows Control Panel to set up the ODBC interface for Excel files. The procedure is as follows: 1. Click the Start > Settings > Control Panel . 2. When the Control Panel window displays, double-click on the ODBC icon to open the ODBC Data Source Administrator dialog. 3.

In the ODBC Data Source Administrator dialog, click Excel Files in the User Data Sources list, and then click the Configure button. 4. When the ODBC Microsoft Excel Setup dialog displays, type the Windows configuration name to be used in the DSN field on ODBC worksheet into the Data Source Name field. 5. Click the Select Workbook button to configure the Excel file you want to use. 6. Return to the ODBC Data Source Administrator dialog and verify that your User DSN displays in the list. Click OK to close the dialog. 7. After configuring the ODBC Windows interface, you must configure the project's ODBC worksheets. 8. From the Tasks tab, insert a new ODBC worksheet. 9.

Be sure you set the ODBC Runtime to start automatically using the Execution Tasks dialog ( Tasks on the Home tab of the ribbon). To start this configuration, you simply need to run the project. Your project will handle the Select , Next , Insert , Delete , and Update triggers to allow data to exchange throughout rows in Excel and tags configured in the worksheet. Consult your Windows documentation for the meaning of specific error codes. The following is a list of IWS error codes: • Select command • 1 - Error in the ODBCPREPARE function. • 2 - Error in the ODBCBINDCOL function. • 3 - Error in the ODBCEXECUTE function. • 4 - Error in the ODBCSETCH function.

• Next command • Insert command • 5 - Error in the ODBCSETCH function. • 6 - Error in the ODBCPREPARE function. • 7 - Error in the ODBCEXECUTE function. • Update command • 8 - Error in the ODBCCOMMITE function. • 9 - Error in the ODBCPREPARE function. • 10 - Error in the ODBCEXECUTE function. • 11 - Error in the ODBCCOMMITE function. • Delete command • 12 - Error in the ODBCPREPARE function. • 13 - Error in the ODBCEXECUTE function. • 14 - Error in the ODBCCOMMITE function. Page 280 InduSoft Web Studio