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.

Background Tasks<br />

• Transaction Completed field: Type a tag that changes value when the transaction is executed.<br />

• Select, Next, Insert, Delete, or Update Trigger fields: Type a tag to work as a trigger, where each value change<br />

causes the system to execute the corresponding command. At least one trigger field is required.<br />

Use the Body parameters on this worksheet as follows:<br />

• Tag Name field: Type the names of tags to update with file contents or tags whose values should be written to<br />

a file.<br />

• Column: Type the location in which to find data in the file (for example, R3CH corresponds to Row 3, Column<br />

H of an Excel sheet)<br />

You must use the Windows Control Panel to set up the ODBC interface for Excel files. The procedure is as<br />

follows:<br />

1. Click the Start > Settings > Control Panel.<br />

2. When the Control Panel window displays, double-click on the ODBC icon to open the ODBC Data Source<br />

Administrator dialog.<br />

3. In the ODBC Data Source Administrator dialog, click Excel Files in the User Data Sources list, and then<br />

click the Configure button.<br />

4. When the ODBC Microsoft Excel Setup dialog displays, type the Windows configuration name to be used in<br />

the DSN field on ODBC worksheet into the Data Source Name field.<br />

5. Click the Select Workbook button to configure the Excel file you want to use.<br />

6. Return to the ODBC Data Source Administrator dialog and verify that your User DSN displays in the list.<br />

Click OK to close the dialog.<br />

7. After configuring the ODBC Windows interface, you must configure the project's ODBC worksheets.<br />

8. From the Tasks tab, insert a new ODBC worksheet.<br />

9. Be sure you set the ODBC Runtime to start automatically using the Execution Tasks dialog (Tasks on the<br />

Home tab of the ribbon).<br />

To start this configuration, you simply need to run the project. Your project will handle the Select, Next, Insert,<br />

Delete, and Update triggers to allow data to exchange throughout rows in Excel and tags configured in the<br />

worksheet.<br />

Consult your Windows documentation for the meaning of specific error codes.<br />

The following is a list of IWS error codes:<br />

• Select command<br />

• 1 - Error in the ODBCPREPARE function.<br />

• 2 - Error in the ODBCBINDCOL function.<br />

• 3 - Error in the ODBCEXECUTE function.<br />

• 4 - Error in the ODBCSETCH function.<br />

• Next command<br />

• 5 - Error in the ODBCSETCH function.<br />

• Insert command<br />

• 6 - Error in the ODBCPREPARE function.<br />

• 7 - Error in the ODBCEXECUTE function.<br />

• 8 - Error in the ODBCCOMMITE function.<br />

• Update command<br />

• 9 - Error in the ODBCPREPARE function.<br />

• 10 - Error in the ODBCEXECUTE function.<br />

• 11 - Error in the ODBCCOMMITE function.<br />

• Delete command<br />

<strong>InduSoft</strong> Web Studio Page 313

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

Saved successfully!

Ooh no, something went wrong!