### Working with control programs in the WebCTRL® interface A control program is typically defined in SiteBuilder when the system is engineered, but you can do the following in the WebCTRL® interface. These changes require you to download the controller. Add a control program to a controller Replace an existing control program Retrieve a control program from the WebCTRL®, edit it in EIKON®, and then return the edited program to the server Reload a revised control program located in webroot\<system>\programs. On the WebCTRL® Geographic tree, right-click the equipment, then select Reload Control Program. Reloading updates all instances of a control program throughout the system and marks the controller(s) for download. WebCTRL® determines the appropriate download option based on what changed in the control program. NOTE If you change a control program in the EIKON® application and it does not display correctly in the WebCTRL® interface, Ctrl+right-click the WebCTRL® action pane, and then select Refresh.
Click for details below To add a control program to a controller To replace an existing control program To edit a control program
7. #### To add a control program to a controller Select the controller on the WebCTRL® Network tree. On the Devices page > Manage tab, click the Add Control Program button. Type a Display Name for the control program. Select the Controller that you are adding the program to. Optional: You can change the control program's Reference Name if needed. Optional: You can select a different Icon. Do one of the following:
   If the control program is... |
   --- | ---
   In the Control Program drop-down list | Select the control program.
   Not in the Control Program drop-down list | a. Click Add New. b. Browse to select the control program. c. Click Open. d. Click Continue. e. Click Close.
Optional: Check Require operator to record any changes to control program. See Recording reasons for edits (21 CFR Part 11). Click Accept. Download All Content to the controller. NOTES You can click Delete Unused in the Control Programs section to delete all unattached control programs and any supporting files with the same name from the programs folder. In the Add Control Program dialog box, you can also attach or remove a .view file that will be displayed in the WebCTRL® interface for the control program. If you need to change a control program's Object Instance number, right-click the control program in the navigation tree, and then select Configure. Click next to the field for additional information.
4. #### To replace an existing control program Right-click the control program on the WebCTRL® navigation tree, then select Configure. The following steps are optional: Change the Display Name for the control program. Change the control program's Reference Name if needed. Select a different Icon. If the system has other control programs of this type, select which control programs you want to change. NOTES If you are changing an IP router's control program, the second option will change all control programs of this type only on the IP network. If you are changing a control program on the network below an IP router, the second option will not change control programs of this type in the router. Do one of the following:
   If the control program is... |
   --- | ---
   In the Control Program drop-down list | Select the control program.
   Not in the Control Program drop-down list | a. Click Add New. b. Browse to select the control program. c. Click Open. d. Click Continue. e. Click Close.
Optional: Check Require operator to record any changes to control program. See Recording reasons for edits (21 CFR Part 11). Click Accept. Download All Content to the controller. NOTES You can click Delete Unused in the Control Programs section to delete all unattached control programs and any supporting files with the same name from the programs folder. In the Add Control Program dialog box, you can also attach or remove a .view file that will be displayed in the WebCTRL® interface for the control program.
#### To edit a control program On a WebCTRL® client, you can get a copy of a control program from the server, edit it, then put it back on the server. To get the control program Right-click the equipment on the WebCTRL® Geographic or Network tree, then select Configure. In the Control Programs section, click Edit Existing. Click Save as. Browse to the folder you want to put the file in. Click Save. Click Close. To put the edited control program back on the server Right-click the equipment on the WebCTRL® Geographic or Network tree, then select Configure. In the Control Programs section, click Add New. Browse to select the control program. Click Open. Click Continue. Click Close. Click Close again.