08.05.2014 Views

OPTOCONTROL USER'S GUIDE - Opto 22

OPTOCONTROL USER'S GUIDE - Opto 22

OPTOCONTROL USER'S GUIDE - Opto 22

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING VARIABLES<br />

Saving the Initialization File. You must include a carriage return at the end of each line in the<br />

initialization file. In addition, the last line of the file must be blank. If you add comments to the<br />

file, they must be preceded by a backslash (\) and a space. When you have finished modifying the<br />

file, save it as a text file to your strategy directory. You can name the file anything you like. (You<br />

can also save it to any directory you like, but it is good practice to save each initialization file to<br />

the directory of the strategy that references it.)<br />

Downloading the Initialization File<br />

To use the file, you need to download it with your strategy.<br />

1. With the strategy open in Configure or Online mode, click the Configure Controllers button<br />

on the toolbar, choose Configure➞Controllers, or double-click the controller name.<br />

2. Highlight a controller and click the Download Options button.<br />

The Download Options dialog box appears. The initialization file must be downloaded<br />

immediately after your strategy is downloaded.<br />

Download the initialization<br />

file after the strategy.<br />

3. Click the bottom Add button in the Download Options dialog box.<br />

4. Navigate to the initialization file you created. Double-click the file name.<br />

The file appears in the Download Options dialog box.<br />

5. Click OK.<br />

The initialization file sets values for the variables and table elements immediately after<br />

your next full strategy download.<br />

IMPORTANT: When you create each variable, you must check “Initialize on Strategy<br />

Download” in the Add Variable dialog box. See “Adding Numeric, String, and Pointer Tables”<br />

on page 8-7.<br />

Since download options are specific to each controller, make sure you set the initialization<br />

file as a download option for every controller on which the strategy will run.<br />

<strong>Opto</strong>Control User’s Guide 8-11

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

Saved successfully!

Ooh no, something went wrong!