UPC script examples

User programmable control (UPC) scripts are a flexible way of controlling assets in an InfoWorks WS Pro model. This topic aims to show some examples of UPC scripts so that they can be used to build your own UPC scripts.

Please refer to UPC scripts and UPC script language for more information on UPC scripts.

This sections below contain a few simple examples as well as a more complex one to demonstrate the use of UPC scripts in InfoWorks WS Pro.

Simple examples

More complex example

Let us now consider the example of two pumps (Pump 1 and Pump 2) and two reservoirs (RESA and RESB). Both pumps pump from RESA to RESB under certain conditions.

Worked Example 1

Pump conditions are detailed in the sections below.


UPC Scripts

UPC Script Language

UPC Script Page

Global UPC Script View