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.

Troubleshooting<br />

Q. How do I insert a background picture on the screen<br />

A. Right click on the screen and select the option Screen Attributes from the popup menu. Enable the checkbox<br />

Enable Background and choose the picture format in the combo-box besides this label. Copy the picture file to<br />

the Screen sub-folder of the project and rename it with the same name of the screen (ScreenName.scr file).<br />

Using the Shared image option, it's possible to copy a bitmap file to the Screen sub-folder and share this picture<br />

with more than one screen. In this case, it's necessary to type the bitmap name in the Shared image field.<br />

Tasks<br />

Q. How do I convert the History Trend to an ASCII file<br />

A. To convert a History Trend file to an ASCII format, copy the file "StudioPath\bin\hst2txt.exe" to<br />

the path "\project_name\hst\". Alternatively, you can use the HST2TXT function in a Math worksheet to<br />

convert binary files into text format automatically without having to use a DOS window.<br />

Q. How do I exchange data with FOX Pro by an ODBC protocol<br />

A. When exchanging data with FOX Pro database, it's necessary to set the parameter UseQuote=0 from the<br />

[ODBC] section in the project_name.app file.<br />

Q. How do I set a DATE field for an ODBC interface with an Oracle package<br />

A. Configure the "Column" cells in the ODBC worksheet with the syntax ColumnName.ts (for example:<br />

MyDate.ts ).<br />

Q. How do I execute a Math worksheet during the startup and another Math worksheet during the project<br />

shutdown<br />

A.<br />

• Startup: Execute a Math worksheet during the startup by creating a Math worksheet and filling in its<br />

Execution field with the expression =0 (for example, StartTag=0 ). In the last line of the Math<br />

worksheet, set the value 1 to the tag. The tag type should be Boolean.<br />

• Shutdown: Instead of executing the ShutDown() function directly, execute one Math worksheet and<br />

configure the ShutDown() function in the last line of this Math worksheet.<br />

Communication<br />

Q. How do I set a "communication error" alarm<br />

A. Configure a tag in the Write Status or Read Status field of the driver worksheets and configure an alarm<br />

whenever this tag is not 0 (zero).<br />

Q. How do I communicate with a Siemens S7-200 PLC without using Prodave software<br />

A. Siemens S7-200 PLC has a Freeport that can implement any protocol via PLC programming. There is<br />

PLC free software distributed by Siemens that implements Modbus protocol in the PLC Freeport (for further<br />

details contact Siemens support). Using this software in the PLC with IWS's Modbus driver (MODBU), you can<br />

exchange information between them.<br />

Q. How do I start and stop communication drivers during runtime<br />

A. There are three functions available to handle the execution of the communication drivers during runtime:<br />

• Start all drivers configured in the project: StartTask("Driver")<br />

For example: StartTask("Driver")<br />

• Start a specific driver configured in the project:<br />

WinExec("StudioPath\bin\Studio Manager.exe" + " + "StudioPath\bin\Driver.dll" + " +<br />

"DriverName")<br />

For example:<br />

WinExec( Asc2Str(34) + "C:\Program Files\<strong>InduSoft</strong> Web Studio v7.1\Bin\Studio<br />

Manager.exe" + Asc2Str(34) + " " + Asc2Str(34) + "C:\Program Files\<strong>InduSoft</strong><br />

Web Studio v7.1\Bin\Driver.dll" + Asc2Str(34) + " " + Asc2Str(34) + "MODBU" +<br />

Asc2Str(34) )<br />

Page 518<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!