Here you can find all the example projects supplied along with the Reliance 4 SCADA/HMI system. To view the detailed description of an example, please click on its name. To download the example, please click on the Download button next to the example. All example projects below are a standard part of the Reliance 4 Installation Package.
Complete archive
Type | Project name | Edited | Download |
| The ZIP archive contains all example projects shipped with the Reliance 4 SCADA/HMI system. Unpack the archive contents to the folder where you have installed Reliance 4. | 2.8.2010 |
The following tables contain the example projects divided into the thematic groups.
Demos
| Type | Project name | Edited | Download |
| | AirCondition is an interactive visualization project designed to demonstrate functions of basic graphical components. Simple scripts are also used in the project to simulate the environment in an office. The project is translated into several languages (English, Russian, Czech, Dutch, and Turkish). | 06/19/2009 | |
| | BoilerRoom is an interactive project designed to demonstrate functions of basic components, such as Button, Display, Active Picture, Pipe, Progress Bar, and Real-Time Trend, for the visualization of the water-heating process in a central heating gas boiler. The project also demonstrates how to use alarms, trends, reports, and event and periodic scripts. Within the project, several users with different access rights are defined through the User Manager (you can log on with an empty password). A similar visualization project is created step by step during the Reliance 4 training courses. | 06/19/2009 | |
| | Factory is an interactive project designed to demonstrate functions of basic components, such as Button, Display, Pipe, Picture, Progress Bar, for the visualization of a simple chemical production process. Four basic chemicals are mixed together in a boiler (the mixing ratio can be defined manually or via recipes). The final product is stored in a tank and fed to moving tank trucks. A truck is represented as a picture and a progress bar grouped together. The movement of the truck is achieved by dynamically changing the X coordinate using scripts. | 06/19/2009 | |
| | SMS is a project designed to demonstrate sending and processing text messages via scripts. To successfully run the project, it is required that SMS Driver be installed and a GSM modem connected (e.g., Siemens M20 Terminal). | 06/19/2009 | |
| | Tannery is a project designed to demonstrate how to use the Reliance system for the control of the chemical process of leather tanning. The project contains about 250 tags and is based on a real industrial process. | 06/19/2009 |
Alarms/Events
| Type | Project name | Edited | Download |
| | The project SendAlarmsUsingGroups_TwoAreas demonstrates how to send alarm/event information to certain users based on the alarm/event groups defined in the project. The alarm/event information can be sent via E-mail or SMS (text messages) as the alarms/events occur, end or get acknowledged. | 05/09/2011 |
Components
| Type | Project name | Edited | Download |
| | DataGrid is a simple project designed to demonstrate basic features of the Data Grid component. There are several tags defined within the System device which are displayed in the data grid's columns (Array_Value, Array_FgColor, and Array_BgColor) and tags which control the global behavior of the component (Offset, Position, and RowCount). The Array_FgColor tag controls the font color. The Array_BgColor tag controls the background color. These tags are initialized in scripts. | 06/19/2009 | |
| | DataTree_ControlArea is a project designed to demonstrate how to use the Data Tree component for the visualization of the control area tree structure. Tags of all basic data types listed in the tree structure (the Tags subtree) are defined within the System device. Two data tables are defined via the Data Table Manager to log the System device's tags. Two trends and two reports are also defined via the Trend Manager and the Report Manager to visualize historical data. In addition, actions to display current and historical alarms/events, tables, and trends are defined via the Action Manager. These actions are connected to the data tree nodes. The Data Tree component's structure simulates the structure of the control area. | 06/19/2009 | |
| | DataTree_Grid is a project designed to demonstrate how to use the Data Tree component to display non-array tags in a tabular format. The project contains ten virtual devices defined via the Device Manager. All virtual devices contain the identical set of tags. For each virtual device, one data table is defined via the Data Table Manager to log the tag values. The same number of trends are defined via the Trend Manager to display historical data. | 06/19/2009 | |
| | DataTree_Localized is an example project designed to demonstrate how to use text strings in the Data Tree component which are translated into several languages. | 06/19/2009 | |
| | IPCamera_Axis is a project designed to demonstrate how to use the Axis IP Camera component to display and record data received from the Axis IP camera connected to the computer. To successfully run the project, it is required to have IP camera drivers installed on your computer (they are part of the Reliance 4 Add-On Pack installer). | 06/19/2009 | |
| | IPCamera_Vivotek is a project designed to demonstrate how to use the Vivotek IP Camera component to display and record data received from the Vivotek IP camera connected to the computer. To successfully run the project, it is required to have IP camera drivers installed on your computer (they are part of the Reliance 4 Add-On Pack installer). | 06/19/2009 | |
| | RealTimeChart_Stacked is a project designed to demonstrate how to configure the Real-Time Chart component to show a horizontal stacked bar chart. Each bar of the chart consists of two differently colored parts whose size can be changed separately using a Display component. The total bar size is the sum of each part's size. | 06/19/2009 | |
| | SimpleTimeProgram is a project designed to demonstrate how to use the Simple Time Program component. Within the System device, the DataArray tag is defined to store the time program's configuration data. The remaining tags (auxiliary tags - stored in folders) are used to display this data in the visualization window. | 06/19/2009 |
Databases
| Type | Project name | Edited | Download |
| | The AppendRecordsToDb project shows how to manually (randomly) write data to a data table via script. One record (row) in the 'Data1' data table contains the values of the following tags (columns): RecordTimeStamp, LongInt, String and Word. | 06/19/2009 | |
| | The AppendRecordToDb project demonstrates how to use the RDB.AppendRecord method to log data to the defined data table. The LongInt, String and Word named tags are defined in the System device. The values of these tags will be logged into the data table. The following tags are also defined in the System device: RecordTimeStamp containing the current time (the RSys.Now method) and BlockSamplingData which is linked to a button in the visualization window (you can enable/disable data logging with this button). | 06/19/2009 | |
| | The LogDataToSQLServer project demonstrates how to log tag values to an external SQL server and how to visualize this data in the trend viewer. The example requires access to an SQL server (MS SQL Server is a part of the Reliance 4 Add-On Pack). | 06/19/2009 | |
| | The ODBCFromScript project shows how to access the ODBC databases in the Reliance 4 SCADA/HMI system via scripts. The project contains a script named 'Define', that contains the ReadDataFromSQLTable and WriteDataToSQLTable procedures. The procedures work with the "ADODB.Connection" object and related objects. The procedures are called from the ReadDataFromSQLTable and WriteDataToSQLTable scripts with parameters c_ConnectString and c_TableName. You have to set this parameters according to your database. To help you construct the c_ConnectString constant, see the "Project Options > SQL > Connection string" field (configure the connection via the "Edit connection string" command before you copy the string). | 06/19/2009 | |
| | The RandomAccessToDataTable project demonstrates the manual (random) access (read/write) to the DBase type data table. The 'Records' data table is defined in the Data table manager. The 'Data acquisition method' parameter of this data table is set to 'Not specified' and the 'Archive files' parameter on the 'Advanced' tab is set to 'None'. The table contains the following items: Number, Length, Color and Material. The items are linked to corresponding tags. The records in the data table are accessed manually from a script. You can view the records stored in the data table via record viewer (the 'Report1' report). | 02/15/2009 | |
| | The SQLFromScript project demonstrates how to read and write data from/to SQL database via methods of the "ADODB.Command" and "ADODB.Connection" objects. The "ReadDataFromSQLTable", "WriteDataToSQLTable" and 'Define' scripts are defined in the project. The first two scripts are event scripts calling procedures defined in the 'Define' script (the script is started only once before all other scripts at the process – script engine – initialization). You have to set the "Connection string" in the 'Define' script according to your SQL server. show The usage of SQL commands SELECT and INSERT is demonstrated in the procedures. | 06/19/2009 |
Data Exchange
| Type | Project name | Edited | Download |
| | The CommWithExternalProgram project is designed to demonstrate how to transfer data between the Reliance system and an external application via COM interface. The project contains the 'RandomValue' and 'Seconds' tags which are used to hold the data received from an external application. The project also contains the 'RelianceValue' tag which is used to send the data to the external program (you can set its value in the visualization window). The external application is located in the "<Project>\Apps" folder and it is automatically started with the visualization project (the "Project Options > Scripts > Other > After start project" parameter is set to a script that contains a command to run the program). Before the project is started for the first time, execute the external program manually to register the COM object. | 06/19/2009 | |
| | The DDE_Client project shows how to use the DDE protocol to exchange data between two Reliance projects. The DDE_Client project needs to be started in the Reliance Control software (and simultaneously the DDE_Server project needs to be started in the Reliance Control Server software). If both projects are successfully running, you can set the value in the DDE_Server project and the change is instantly visible in the DDE_Client project (and vise versa). | 06/19/2009 | |
| | The DDE_Client project shows how to use the DDE protocol to exchange data between the two Reliance projects. The DDE_Server project needs to be started in the Reliance Control Server software (and simultaneously the DDE_Client project needs to be started in the Reliance Control software). If both projects are successfully running, you can set the value in the DDE_Server project and the change is instantly visible in the DDE_Client project (and vise versa). | 06/19/2009 | |
| | The ExportImportXLS project is designed to demonstrate how to access the MS Excel files via COM interface (the MS Excel application has to be installed on the same computer as the Reliance system). The Var_Float, Var_Int and Var_Str tags are linked to corresponding Display components in the main visualization window (the display's "Enable setting value" parameter is enabled). The values of these tags are exported/imported from/to *.xls or *.xlsx file. The ExportToExcel and ImportFromExcel event scripts (activated via buttons in the main window) are defined in the Script manager. The Excel file is named "Values.*" and it is located in the <Project> folder. | 06/19/2009 | |
| | The ExportToCSV project demonstrates how the scripts can be used to export the historical data into a text file (CSV). The project contains the AfterMidnight time script that is started each day one minute after the midnight (you can simulate the start of this script if you click on the button in the visualization window). The script starts the Temperatures_Air_ExportToCsv and Temperatures_Water_ExportToCsv scripts. These two scripts call the ExportYesterdayArchiveDbTable procedure with the required parameters. This procedure (which is defined in the 'Define' script) is designed to read the data from a data table and to export it into a text file. The project also contains a group of SmallInt type tags and two DBase data tables with periodical data logging. The exported files are stored in the <Project>\History\Data\xxxx\ folder, where xxxx represents a year. | 06/19/2009 | |
| | Project ImportFromCSV demonstrates how to use the scripts to import data from a text file (CSV). The project contains the following tags: RoomNumber, Occupied, Date and Time. The ImportCsvFile event script is designed to load the data from a file to these tags. The visualization window contains a button that starts the script. After the script is finished the four Display components contain the data imported from the <Project>\Import.csv file. | 06/19/2009 | |
| | The LogDataToFileAndDb project shows how to log tag values to a file and database via script. The main visualization window contains three display components (displaying the sine and cosine of a periodically incrementing angle) and two buttons that activate/deactivate data logging to the file or data table. The data is logged to the "<Project>\ History\ Data\ AngleData.txt" file and/or to the 'AngleData' data table (the sampling method for the data table is set to "Script-controlled"). You can browse the data logged to the data table in the Report viewer (the AngleData report). | 06/19/2009 |
Devices
| Type | Project name | Edited | Download |
| | AMiT is a project designed to demonstrate basic features of the AMiT PLC connected to the visualization application, i.e., reading/writing tag values, logging values to a data table, bit access, etc. Within the AMiT1 device, a group of tags containing current values (Sawtooth_1, Sawtooth_2, Sine, ARC_index) and current digital values (Bit1, Bit2, Bit3), and a group of array-type tags used to display the Real-Time Trend component are defined via the Device Manager. The current tag values are logged to the Database1 data table and can be displayed in Trend1 defined through the Trend Manager. Via the Real-Time Trend Manager, Trend1_RT is defined to be displayed directly in the visualization window. | 06/19/2009 | |
| | DeviceCommErrorAlarm is a project designed to demonstrate how to replace the alarm automatically triggered by a device communication error with a custom alarm defined through the Device Manager. This alarm will remain active for the duration of the communication error. This is the difference from the alarm that is automatically triggered by Reliance when an error in the communication with a device occurs. It is an "event" type of alarm - it is triggered, but it does not remain active; Reliance does not check to see if the error condition still exists - this is a drawback). | 07/02/2010 | |
| | OPC_DeviceCommStatus is a project designed to demonstrate how to use a script to determine the state of an OPC server by testing the quality of a tag. Via the Device Manager, you have to configure the OPCDevice1 device according to your local OPC server. The OPC group of this device contains an internal tag which is periodically tested in the script (if the tag quality is not 'Good', it means that the OPC server is not connected). For this purpose, the Random_UInt1 tag is used in the project. The project also contains the OPCDevice1Connected tag which, after the script is evaluated, contains information regarding the OPC device connection status and is linked to the Active Text component placed in the visualization window. | 06/19/2009 | |
| | OPC_EmbeddedServer is a project designed to demonstrate how to connect Reliance's runtime software to an OPC server which is not running locally. The EmbeddedDevice1 device of type OPC is defined via the Device Manager. The OPC server Prog ID property allows you to select the OPC server for the device (e.g., from the local network). The PC1 computer, to which EmbeddedDevice1 is connected, is defined via Project Structure Manager. On the Driver page of the device's Channel1, the Connect to driver property is set to On remote computer. Also the computer name is specified (EmbeddedDevice1). The EmbeddedDevice1 computer is the second computer defined via the Project Structure Manager. This computer's only purpose is to identify the remote computer on which the OPC server is running. It holds the IP address of the OPC server (the Basic page). | 06/19/2009 | |
| | Teco_Databox is a project designed to demonstrate how to transfer data from/to the Databox memory of the Teco device. Via the Device Manager, the Tecomat1 device of type Teco and its IP address are defined. On the Databox page, the Enable reading/writing Databox option is active and the links to the respective tags defined within the System device are specified. The following tags are defined within the System device: The Control of type Byte tag is used to control the data transfer from/to the databox (0 – ready, 1 – read, 2 – write). The Status tag of type LongInt is connected to the Active Text component placed in the visualization window and indicates the activity which is being performed with the databox (Ready/Reading/Reading completed/Read error/Writing/Writing completed/Write error). The DataLength and DataOffset tags are used to define the range of data to be transferred from/to the databox. The current data range is accessed via the DataBuffer tag of type Array of Byte. | 06/19/2009 | |
| | Teco_ModemComm is a project designed to demonstrate how to make a connection to the Teco PLC via a modem connected to the computer's serial port. Within the System device, several tags of type Word are defined to monitor and control the state of the modem and the PLC device. The Modem1Control tag is used to control Modem1 – it connects the Combo Box component placed in the visualization window and the Modem1 object defined via the Project Structure Manager (on the Basic page, the Control property must be active and the tag specified). The Tecomat1Control tag is used to control Tecomat1 (allows selecting one of the following commands: Disconnect, Connect, 'Connect, read data and disconnect') – it connects the Combo Box component placed in the visualization window and the Channel1 object defined via the Project Structure Manager. The Tecomat1Status tag, which is also connected to the Channel1 object, is processed in the Tecomat1StatusChanged script and the result is shown in the visualization window. The Tecomat1Status tag is linked to the Status property via the Project Structure Manager (Tecomat1 > Channel1 > Advanced). Similar tags exist for Modem2 and Tecomat2. Also, the Tecomat1 and Tecomat2 devices and the required tags are defined via the Device Manager. | 06/19/2009 |
Embedded Objects
| Type | Project name | Edited | Download |
| | The BoilerRoom_WindowTemplate project demonstrates using data structures and window templates. The visualization represents a boiler room with a gas boiler. Information related to particular devices (e.g. pump and burner), measured quantities (water and air temperature), and control parameters is arranged into data structures (Pump, Burner, MeasuredTemperature, ControlParameters - see the Data Structure Manager). These elementary structures are then contained in more complex data structures: Boiler and BoilerRoom. | 06/19/2009 |
Network Applications
| Type | Project name | Edited | Download |
| | BoilerRoom_MobileClient is a project based on the BoilerRoom demo. The project is designed to run on the PDA devices – it contains visualization windows (PDA - Overview, PDA - Trends, and PDA - Boiler) designed for a limited resolution. The windows can be viewed on mobile devices via Reliance Mobile Client (program designed to run on the Windows CE/Windows Mobile operation system with .NET Compact Framework 2.0 installed). You can also test the example in a Windows CE emulator. | 06/19/2009 | |
| | BoilerRoom_MultipleServers is a project which adds a second server computer (Server2) to the BoilerRoom_ClientServer project. Server2 communicates to the BoilerRoom2 device. In this case, Server1 only communicates to the BoilerRoom1 device. | 06/19/2009 | |
| | BoilerRoom_ClientServer is a project which adds the network functionality to the BoilerRoom demo. A new computer named Client1 is added to the project through the Project Structure Manager. The already defined users, trends, and reports are connected to this computer (objects are only accessible from a specific computer if they are connected to it). In addition, a New Server Connection Group with a New Server Connection (Server1) are created. The Server computer property is set to Server1. This connection is used to connect the BoilerRoom1 and BoilerRoom2 devices and the same-named data tables to the Client1 computer (the Data transfer property is set to Network instead of Direct and directories for the data tables are set to $(HistoryData)\Client1\). The Address property (Server1 > Basic) is set to 127.0.0.1, which is the local address (if you want to run the example over the network, set this property to a real IP address or hostname). | 06/19/2009 | |
| | BoilerRoom_RedundantServers is a project which adds a second server computer named Server2 (a standby server) to the BoilerRoom_ClientServer project. A new client computer named Client2 is also added. The two new computers were added by duplicating the original configurations through the Project Structure Manager. A second server connection (pointing to Server2) is added to the Servers server connection group of the Client1 and Client2 computers. The connection priority is set so that Client1 is primarily connected to Server1 and Client2 is primarily connected to Server2. If one of the servers is not available (e.g., Server1 is terminated), Client1 automatically connects to the Server2 computer. If a client is not connected to its primary server, the availability of the primary server is periodically tested. At runtime, you can see the connections on the Network connections page in the System Information window. | 06/19/2009 | |
| | ThinClientListFromScript is a project designed to demonstrate how to access the list of connected thin clients from a script. After the project is started in the runtime software, the main window contains a Display component with the number of connected thin clients (the ThinClients_Count tag) and a Data Grid component with detailed information about all connected thin clients. The Data Grid component is connected to array-type tags which are periodically updated in the GetThinClientList script. The script is started every 5 seconds and uses the RWS.GetThinClientList method to load the information about the thin clients to the ClientList array. Subsequently, this information is transferred to the array-type tags (ThinClients_xxxx) to be displayed by the Data Grid component. | 06/19/2009 | |
| | ThinClientRequestHandlingFromScript is a project designed to demonstrate how to handle requests from thin clients (Reliance Web Client or Reliance Mobile Client). In the Web section of the Project Options dialog box, there is the HandleThinClientRequest script set to be executed when a thin client request is received by a data server (Reliance Server or Reliance Control Server). The client's request information (request type, unique session identifier, client IP address, etc.) is obtained using the RScr.GetCurrentScriptDataEx function. This information is written to the corresponding tags in the System device. The values of these tags are shown in Display components in the visualization window. | 08/05/2010 |
Reports
| Type | Project name | Edited | Download |
| | CustomReport_AVG is a project designed to demonstrate how to use a custom report of type FastReport to access an SQL database and to display a data grid containing hourly average values based on this data. A sample tag named ActFlow is defined via the Device Manager. The SQL type data table defined via the Data Table Manager is used to log the values of the sample tag. The SQL server is named (LOCAL)\SQLEXPRESS. It is a standard name set when Microsoft SQL Server 2005 Express Edition is installed with setup.bat. | 12/01/2011 | |
| | CustomReport_ADOChart is a project designed to demonstrate how to use a custom report of type FastReport to access an SQL database and to draw a trend based on this data. The TimeRange_From and TimeRange_Till tags (used to specify the time range) are defined via the Device Manager. A sample tag of type Word is also defined. The SQL type data table defined via the Data Table Manager is used to log the values of the sample tag. The SQL server is named (LOCAL)\SQLEXPRESS. It is a standard name set when Microsoft SQL Server 2005 Express Edition is installed with setup.bat. | 10/06/2009 | |
| | CustomReport_ADOChart is a project designed to demonstrate how to use a custom report of type FastReport to visualize data from an SQL database in the form of a data grid. The project contains three virtual devices defined via the Device Manager. Each of this devices contains five tags (Tag1, ..., Tag5). Also, three SQL-type data tables are defined via the Data Table Manager. Each of this tables contains items corresponding to the tags in the virtual devices and has different settings of the Time stamp base property. The SQL server is named (LOCAL)\SQLEXPRESS. It is a standard name set when Microsoft SQL Server 2005 Express Edition is installed with setup.bat. | 06/19/2009 | |
| | CustomReport_EquithermalCurve is a project designed to demonstrate how to print an equithermal curve via a custom report of type FastReport. To define the equithermal curve, fourteen tags are defined via the Device Manager. A custom report of type FastReport named Report1 is defined through the Custom Report Manager – the items of this report correspond to the tags defined within the System device. You can edit the report template via the Edit Report command. The template file is located in the <Project>\Main\CustomReports folder. At runtime, you can change the tag values in the visualization window using the Equithermal Curve or Display components. | 06/19/2009 | |
| | CustomReport_Form is a project designed to show how to use a custom report of type FastReport to print a simple form. The main visualization window contains a form assembled of several Edit Box components. The components are linked to the corresponding tags defined within the System device. The CustomReport_CertificateOfPosting object is defined through the Custom Report Manager and contains items corresponding to the tags from the System device. At runtime, you are enabled to enter values to the form. To switch among the Edit Box components, use the Tab button. To preview and/or print the form, press the Display button. The project also demonstrates the use of multilanguage support. It is localized into Czech and English. If you switch the language of the project, the language is also changed in the text strings of the custom report. | 06/19/2009 | |
| | CustomReport_HTML is a project designed to demonstrate how to use a Web page as a template for the custom report. The project contains several sets of tags organized to folders according to the technological unit (see the Device Manager). A Web custom report named WebReport is defined via the Custom Report Manager. The custom report contains items connected to the corresponding tags from the System device. The custom report template files are located in the <Project>\Main\CustomReports folder. This folder also contains a Microsoft Office Word document which is a source for the custom report template. The visualization window contains several components forming a table. You can set the tag values via this table. | 06/19/2009 | |
| | CustomReport_Text is a project designed to demonstrate how to use a text custom report. Within the System device, five tags which contain water level values in tanks are defined. The TextReport custom report is defined via the Custom Report Manager. The custom report contains five items linked to the corresponding tags from the System device. The file Template.txt (custom report template) is located in the <Project>\Main\CustomReports folder. At runtime, you can set the tag values and generate the text report based on the current values. | 06/19/2009 |
Scripts
| Type | Project name | Edited | Download |
| | The AutomaticUserLogOff project demonstrates how to automatically log off the current user off the runtime software after a certain time of mouse and keyboard inactivity. The "LogoffUser" script defined in the Script Manager logs off the current user by calling the RUser.LogoffUser method. In order for the script to be run after a certain time of inactivity, some parameters in the project's main file (the one with a .rp4 extension) must be altered. The project's main file is a text file which can be opened for example with the Notepad program (Notepad.exe). The parameters are stored in a section named [Section50] and have the following meaning: | 01/26/2011 | |
| | The DeclareArrayVar project shows how to define and use the global and local array variables. Main visualization window contains two buttons that start the UseGlobalVar and UseLocalArray scripts. | 06/19/2009 | |
| | The DownloadAndSaveFile project shows how to download and save the file defined by an URL to a local computer. The project's main functionality is done in the 'DoDownloadAndSaveFile' script. This script downloads the file based on the string values of the 'FileURL' and 'FileName' tags. The 'FileURL' tag is linked to a display component in the visualization window and defines the source file name and address (the URL has to be entered with the leading "http://"). The 'FileName' tag is linked to the second display component and defines the target file. To start the script press the 'Download file' button. | 06/19/2009 | |
| | The ExtractBits project shows how to use scripts to extract bits from an integer tag and store the bit values in tags of type Bool. | 06/25/2010 | |
| | The GetCurrentScriptDataEx project shows how to pass a parameter from the Reliance system to the script and how to access it inside a script. The ScriptParamValue LongInt type tag, defined in the project, is linked to a display component. The EventScript script defined in the Script manager is linked to three buttons located in the visualization window. If you click the button, the number associated with the button is passed to the script, accessed inside the script, stored in the ScriptParamValue tag and shown in the Display component located below. | 06/19/2009 | |
| | The GetFolderContents project demonstrates how to list the contents of a directory. The main visualization window contains the Display component (enter the name of a directory you want to list), the Button component (which starts the GetFolderContents script) and the two Table components. After the script is finished, the table to the left shows subdirectories and the table to the right shows the file list. | 06/19/2009 | |
| | The LogMessage project is designed to show you how to log a text to a file form a script. The main visualization window contains a button, that starts the 'LogMessageTest' script, that contains the 'LogMessage' procedure. This procedure is defined in the 'Define' script (also the functions for custom date and time formatting are defined in this script). | 06/19/2009 | |
| | The MoveTagElementValues project demonstrates how to use an event script to copy the first 10 elements from WordArray20 array to the positions 50-59 in the WordArray100 array. The RTag.MoveTagElementValues method is used to copy the values of array type tags. The script is started via a button in the visualization window. | 06/19/2009 | |
| | The MoveTagValue project demonstrates how to copy a tag value between two devices. The project contains the AfterStartProject script. The script starts on the Runtime software start (see "Project options > Scripts > Other > After start project"). This script initializes the DataTime tag. The remaining scripts are event scripts linked to the buttons in the main visualization window. The scripts show how to use the 'RTag.MoveTagValue' method for the tags of different type. Visualization window contains the Display components showing values of source and target tags. | 06/19/2009 | |
| | The ScriptDebugging project requires a debugging tool installed on your computer. You can use the Microsoft Skript Debugger application (it is shipped with the Reliance system as a part of the Add-On Pack). The visualization window contains two buttons that enable/disable script debugging function (this is done in the window registry via actions that execute the "ScriptDebuggerEnabled.reg" and "ScriptDebuggerDisabled.reg" files). Runtime program has to be restarted before the change takes place. Since the Reliance 4.1.3 you can also enable/disable the script debugging function via "Environment Options" in the development environment. If the debugging is enabled and the "Start script" button is pressed, the debugging tool is opened. | 11/12/2009 | |
| | The ScriptTypes project demonstrates usage of the different script types. The main visualization window contains five panes, each demonstrating features of one script type. The first pane introduces the "Data change" script – if you change the value of A or B, C is automatically recalculated. The second pane introduces the "Periodic" script – the angle value is periodically incremented. The third pane introduces the features of the "Key" script – if you press the F5 button a dialog window is shown (all scripts run in the same thread and therefore other scripts are paused if the dialog is shown). | 06/19/2009 | |
| | SendEmail is a project designed to demonstrate how to send an email message from a script. Before any email can be sent, you have to set the information about the SMTP server. This can be done via the Project Structure Manager on each project computer's E-mail page. The main visualization window of the project contains Display components where the email's recipient, subject, attachments, and body can be specified. The Send Email button is used to activate the script which sends the email. The core part of the script is the RInet.SendMail method. | 06/19/2009 |
| Top |