3. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
POWERSTUDIO SCADA v2.5 TUTORIAL
CIRCUTOR 2007
PURPOSE OF THE TUTORIAL: to learn how to use the Powerstudio SCADA Energy
Management Program, using real communication with a series of devices (practical kit). The
steps in the tutorial must be followed in order to familiarise yourself with the operation of the
program. Finally, the steps that the tutorial follows are in some way the steps that will be
followed for an "actual" application.
1. Setting the practical kit devices
a. SET-UP of the CVM-MINI, EDMK and RGU-10 equipment
b. SET-UP of the COMMUNICATIONS for this EQUIPMENT
c. Setting the practical computer IP
2. Setting the LM-50 TCP
a. Setting the IP and other parameters
b. Adding an LM-50 TCP connection to Powerstudio SCADA
3. Detecting and communicating with several pieces of equipment
a. Starting communication devices
b. Option for setting equipment using the software
c. Edit Mode and Run Mode
4. Displaying the application
a. Monitoring equipment via Java Applet and Website
b. Drawing graphs with histories
c. Making history tables
d. Exporting data to an Excel table
5. Creating SCADA screens
a. Creating SCADA screens and adding a background screen image
b. Defining text styles
c. Using SCADA tools on the created screens
6. Defining virtual variables
a. Example of an application for a virtual variable
7. Creating reports
a. Creating an Energy Report
b. Creating timeslots
c. Creating reports by applying timeslots
8. Creating Events (application alarms)
9. DDE and XML Data Server
a. DDE
b. XML
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – -3-
4. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Description of the training DEMO KIT:
In order to undertake the tutorial, a Circutor Equipment Kit to communicate with and to
be treated as though it were actual equipment in installation. The Demo Ket comprises the
following pieces of equipment:
• LM 50 TCP
o Ethernet-485 Gateway for communication with its and also with the other
equipment
o Digital inputs (0/1 or Pulses)
The LM 50 TCP device shall act as an energy pulse receiver from an EDMk meter. It will also read in the
0/1 status of the two buttons and finally shall act as an Ethernet/485 gateway so that the EDMk, CVM MINI and
RGU 10C MT equipment can be read.
• EDM k ITF: energy meter with 485-communication + output pulses to the LM 50
TCP
Active energy / power factor meter. Consumed energy shall be read from the Powerstudio SCADA
software both by 485-communications and the no. 1 pulse input on the LM50 TCP, thanks to the EDMk meter
pulse output connection with the LM 50 TCP input. In general, reading internal energy meters is carried out by
pulse signals collected by LM-24 or LM 50 pulse centralisers. In this case it can directly communicate with the
meter.
• CVM MINI: power analyzer with 485 communication
Electrical power analyzer and energy meter. Device which measures and calculates the main electrical
parameters in the system. Provides more information than an EDMk. They are mounted on the distribution boards
to measure consumption, voltages, power factor in each load for subsequent analysis using Powerstudio SCADA
software.
• EARTH-LEAKAGE PROTECTION:
o RGU 10 C MT: earth-leakage protection with self-reclosing and 485
communication.
o WGS - 20: protection transformer.
o MT-C-E62-6 A: motorised overload device, governed by the RGU 10.
The RGU is earth-leakage protection relay measuring current leakage via the WGS-20. It carries out the
function of cutting the MT overload when there is a leakage for filling the trip conditions based on the preset trip
current and time thresholds. Using the Powerstudio SCADA software the instant current, relay status, etc. may be
monitored. It is also possible to set a cycle of two automatic reconnections thanks to the overload device. It also
can be used as a remote control to activate or deactivate a load.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – -4-
5. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Practical kit
It also has a signal generator module which allows:
• The current consumption level and the EDMk and CVM-MINI power to be varied.
• A leakage up to 30030 mA in the RGU-10 to be generated.
• 2 digital signals (0/1) to be generated to simulate the status is of inputs 2 and 3 on the LM 50
TCP.
The signal generator can vary the parameters read by the devices.
Detail picture of signal generator
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – -5-
6. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
1. Setting the Practical Kit equipment
SET-UP of the EDMk, CVM MINI and RGU 10C MT equipment
The EDMk, CVM-MINI and RGU-10 MT devices are set from the keyboard. As with every energy meter
or power analyser and earth-leakage protection relay, there are some parameters which must be set. It shall be
shown that these parameters may also be set from the Powerstudio SCADA software itself.
SET-UP of the Communications for this equipment
The LM 50 TCP is set in the following section using software. Setting the other devices.
LM 50 TCP = Peripheral no. 1 and baud rate 19200 (it is not necessary to set this as it is done so in the factory).
Setting the following peripheral numbers in the EDMk, CVM MINI and RGU 10 MT. Each step is essential
so that the software can distinguish each device within the system.
EDM k = Peripheral no. 2, baud rate 19200
CVM MINI = Peripheral no. 3, baud rate 19200
RGU 10 MT = Peripheral no. 4, baud rate 19200
Setting the IP Address in the Practical computer.
• Check that the LM 50 TCP device has a crossed network cable connected to the Practical PC Ethernet
network port.
• Check the IP address on the Practical computer. Check that the IP address on the computer is found
within the IP range for example: 172.16.11.X:
o In Windows, press START and then RUN the CMD command:
o On the run on screen, enter CMD and press OK (as shown in the figure).
o An MS-DOS screen will appear. On this screen run IPCONFIG, and see the current IP address
data (see figure).
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – -6-
7. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o In this case, the IP address for the computer will be 172.16.11.34 with a subnet mask of
255.255.0.0. This information will be useful to define the IP address for the LM 50 TCP gateway
which must belong to the IP range compatible with the practical computer. The LM 50 TCP shall
operate as a digital and pulse input device as well as the Ethernet 485 communications gateway
with the other devices.
o Change (if necessary) the practical computer IP to the IP address in the range 172.16.11.XX.
Go to the desktop and in MY NETWORK PLACES click right on the mouse and select
PROPERTIES. The following screen will appear:
Click right again on LOCAL AREA CONNECTION and select PROPERTIES. The following
screen will appear:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – -7-
8. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Edit the TCP/IP Internet Protocol properties
Select an IP and network mask as shown in the figure below.
Once this operation has been performed, the practical computer is configured with the
required IP range.
The network is ready to configure the visible IP address for the LM 50 TCP such as
172.16.11.100, for example.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – -8-
9. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
2. Setting the LM-50 TCP
Setting the IP Address and other network parameters.
• Once has been checked that the IP address for the practical computer is within the range of IP's
between: 172.16.11.10 and 172.16.11.30, an IP address of 172.16.11.100 must be assigned to the LM
50 TCP.
• Open the TCP folder found in the practical PC desktop.
• Run the Tcp2rsconfig.exe program which is found within the folder.
• Check that the LM 50 TCP has the MAC address written on the side and front. Enter the MAC address
for the LM 50 TCP equipment and the IP Address which is required to be entered in the LM 50 TCP.
This address, for the time being, is temporary and will be definitively entered and saved in the next step.
• The Ethernet address is shown (MAC address) with the temporary IP address for the LM 50 TCP. Once
this data has been introduced, press PROGRAM and the following screen will appear:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – -9-
10. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• When the previous screen appears, enter the appropriate NETWORK parameters:
a. IP = 172.16.11.100
b. Subnet Mask = 255.255.0.0
c. Gateway = 0.0.0.0
d. Port = In this case we have two possibilities. The fist possibility is that your
device was modbus RTU, in this case the port is 10001. By the other way, the
port could be modbus TCP, in this case the port is 502.
• The other parameters to be set must be entered as shown in the previous figure.
• When everything has been correctly entered, press UPDATE to save the LM 50 TCP NETWORK
setting.
Now the LM 50 TCP device has the correctly configured NETWORK port and it will be very easy to add
Powerstudio SCADA. Therefore a PING call is made to the IP Address on the LM 50 TCP to see that it exists on
the NETWORK.
• Open the DOS window, run the CMD command from the START menu.
• When the DOS window is available, enter: PING 172.16.11.100.
• If the LM 50 TCP has been correctly configured a response to the PING calls will be received as shown
in the above figure.
• Each unit of the LM 50 TCP or Ethernet Circutor peripheral must have its own permanent IP address
(fixed). The PC where the Powerstudio SCADA is installed must show all IP addresses for the installed
Circutor equipment.
• There are other means of setting the LM 50 TCP NETWORK port, for example via:
o ARP and TELNET commands (port 9999)
In order for the ARP command to work on Windows, the ARP table on the PC must have at least one IP address
defined other than its own. If the ARP table is empty, the command will return an error message. Type ARP -A at
the DOS command prompt to verify that there is at least one entry in the ARP table.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 10 -
11. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
If the local machine is the only entry, ping another IP address on your network to build a new entry in the ARP
table; the IP address must be a host other than the machine on which you are working. Once there is at least one
additional entry in the ARP table, use the following command to ARP an IP address to the TCP2RS/LM50TCP:
Figure 1: ARP on Windows
arp -s 191.12.3.77 00-20-4a-xx-xx-xx
Now open a Telnet connection to port 1. The connection will fail quickly, but the TCP2RS/LM50TCP will
temporarily change its IP address to the one designated in this step.
Figure 2:
telnet 191.12.3.77 1
Telnet to Port 1
Finally, open a Telnet connection to port 9999 and set all required parameters.
Figure 3: Telnet to Port 9999
telnet 191.12.3.77 9999
Note: This IP address is temporary and will revert to the default value when the TCP2RS/LM50TCP’s
power is reset, unless you log into the TCP2RS/LM50TCP and store the changes permanently.
Refer to Chapter 4 for instructions on permanently configuring the IP address.
o http (Port 80)
To call the IP from any internet navigator (e.g. iexplorer, netscape,…). It need to know which IP address
has the device to communicate with it.
Adding the connection and LM 50 TCP device to Powerstudio SCADA
• Run the Powerstudio SCADA program (there is direct access in the desktop).
• The program shall run in DEMO MODE (there is no problem, the program must work for one hour in
demonstration mode, then it will close saving the changes. The program can be run again by starting it
again).
• It is not necessary to save the application or the project being used. The program automatically saves
the application.
• Initially, the following window will appear in order to add a device.
• DO YOU WISH TO ADD DEVICES TO THE PROGRAM'S CONFIGURATION?
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 11 -
12. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Click YES and proceed to add an LM 50 TCP device which will carry out the function of input device
and connection device (communication gateway). A connection is understood to mean the path via
which devices are added to the program.
Possible connections are:
Free series ports (COM available in the PC to which RS 232 equipment has been directly
connected, or free series port + RS232/485Converter + NETWORK of EQUIPMENT)
IP connection via TCP2RS or LM50-TCP (IP Address of a Circutor NETWORK gateway)
Connecting equipment with its own Ethernet port: CVM 144 / 96 Ethernet, ...
Logically it is first necessary to add the connection and LM 50 TCP device for the other devices.
• Select which device is to be added, an LM 50 TCP:
Details of the available equipment for Powerstudio SCADA
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 12 -
13. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• The name and alias of the device is defined. When installing on site, the name which will properly define
the measurement points or purpose of the equipment should be entered.
The name associated with the equipment will be the name of which shall subsequently be used by the
program.
• Click on NEXT and the following message will appear:
• DO YOU WANT TO CREATE A NEW CONNECTION FOR ...?
• Click YES and the NETWORK parameters will be set.
• The following screen is displayed:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 13 -
14. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Select TCP2RS if the device is modbus RTU or select Converter ModbusTCP if the device is modbus
TCP.
The Modbus TCP option (Network protocol available in several pieces of Circutor equipment), is used
when communication is required from different Software or PLCs at the same time with the same piece of
equipment. It is a multi-master protocol. The equipment to be communicated with it must support this protocol if
the Modbus-TCP option is to be used.
• Once the TCP2RS converter option has been selected, the following screen will appear.
• A name for the connection will be defined (as required) and the 172.16.11.100 IP network address and
10001 port if the device is modbus RTU or 502 port if the device is modbus TCP.
• Press NEXT, and the following will appear:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 14 -
15. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
This screen shows that the LM 50 TCP device is using the peripheral no. 1 and is invariable. Therefore, 2,
3 and 4 have been reserved for the other pieces of equipment in the KIT.
• Click on OK and the Powerstudio SCADA will detect the LM 50 TCP:
The green V indicates that communication has been properly established.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 15 -
16. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
3.- Detecting and communicating with several pieces of equipment
Starting communication devices
Now the other pieces of equipment must be added and the communication network configuration must be
completed.
• Now another device is added, the CVM MINI.
• Go to the SETTING menu and select DEVICES. A screen with the devices added to the
application shall appear.
• Click on ADD and select CVM-MINI. A screen will appear where the device's name and
description must be entered (if required).
• Select MAIN as the device's name and already created database saved in the practical computer
may be used. Enter the name MAIN and click on next.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 16 -
17. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Then the connections selection screen will appear with which the equipment will communicate.
• The connection to be selected is the connection previously created for the LM 50 TCP. Logically, the
other pieces of equipment will also communicate via this connection.
• Enter the connection via the LM 50 TCP, and the program will ask for the CVM MINI peripheral
number.
• Enter peripheral number 3 and click on OK.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 17 -
18. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
If everything is OK, the equipment will immediately be detected and will appear on the list of detected equipment.
• If OK is clicked on the previous screen, the communication's status is displayed:
Notice in the figure that validation is displayed in green, confirming that the communication is correct. If
one other hand, there is a red arm, it means that the equipment in question is not communicating.
• Now you can add the remaining equipment following the same steps as above:
o EDM k = Peripheral no. 2, baud rate 19200
o RGU 10 MT = Peripheral no. 4, baud rate 19200
Enter any description name for each of the pieces of equipment and select the same connection as the
communication channel.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 18 -
19. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Option for setting equipment using the software
There is the option to modify the equipment's setting using the Powerstudio SCADA software:
1. Setting the communication parameters: It is possible to modify the peripheral number and the
connection on the same ADD equipment screen. This is useful for modifying the peripheral
number of a piece of equipment. WARNING: the peripheral number is only changed to another
number in the event that the latter number is not being used.
2. Setting the device's parameters: The parameters for each setting for each piece of equipment
and other parameters may be modified, such as for example: directory where the histories,
history recording period, analogue or digital data display, etc. may be saved.
• Double-click on CVM-MINI. The following screen will appear:
• Select the driver parameters and the following screen will appear:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 19 -
20. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
In this part of the program, the recording period for the database may be selected (DATA-LOGGER), for
this equipment. The route where the database is to be stored can also be selected as well as well whether the
data is to be displayed in digital or analogue format, etc.
• Click on OK, to return to the previous screen.
• Now enter SETTING CVM-MINI, the following screen will appear:
This screen allows the CVM MINI instrument to be set as though it were being set from the keyboard.
This screen will vary depending on the equipment to be set. Each piece of equipment has its own SET-UP.
• Click on OK and if any change has been made to the SET-UP, this change will be sent to the
device.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 20 -
21. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Now enter VARIABLE LIMITS and the following screen is displayed:
This option in the program allows some visual alarms to be set for each parameter read by the devices.
For example, if a rated voltage value is set for the CVM MINI and this voltage is within the PRE-alarm or alarm %
(outside limits), when the devices parameters are displayed in real-time, the voltages shown in red are warning
that there is a fault in the system. Later, another higher grade of alarms, successive calls which are in fact
SCADA alarms, are explained.
Example of visual alarms in current
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 21 -
22. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• ACCEPT the setting of the CVM MINI (MAIN) limits and ENTER SETTING VARIABLE UNITS
This option allows the possibility of changing the units displayed by the software using information from
the devices.
• Click OK, on the above screen and exit the MAIN equipment settings (CVM -MINI).
Now the LM-50 TCP device parameters are set to set for the number on the digital inputs as an energy
meter input from the EDMk equipment. However, first the EDMk digital output is set so that it generates one port
per kWh metered.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 22 -
23. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Double-click on the EDMk equipment
Two possible configurations for this device appear. Noticed that there is no option for visual alarms. The
reason for this is that the energy meter only displays accumulated consumption values for that meter. As these
are variables, accumulative values, the program cannot show alarm values...
• CLICK on device parameters to access the setup parameters for the equipment. Remember
that this section can also be carried out using the device's keyboard.
• Set the active output on 1000 Kw/pulse, so that the LM 50 TCP reads energy consumed by
the EDMk.
• Click on OK and the changes shall be sent to the device.
• Now enter the LM 50 TCP setting.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 23 -
24. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Click on DEVICE INPUTS, set inputs 1, 2 and 3 as shown in the figure.
The LM 50 TCP inputs are set on the screen in accordance with the connection and use to be given to
each of them. In this case, the digital output for the EDMk sends pulses to input number one, therefore input on is
defined as a Wh meter and input two and three as digital signals corresponding to the buttons on the simulator.
• ACCEPT the changes made.
• Now, you may try out the different setting options for the devices in order to familiarise
yourself with the program.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 24 -
25. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Edit Mode and Run Mode
The application can work in two modes:
• Edit Mode: the application is created or modified in this mode:
o Starting communication connections
o Starting connection devices (Networks)
o Setting equipment
o Creating SCADA screens
o Creating reports
o Defining events (alarms)
o Etc.
• Run Mode: in this mode, the application activates the Web server and allows the online operation
of each application created:
o Displaying equipment data
o Viewing SCADA screens with updated information
o Displaying the reports created
o Viewing the status of events and the option of recognising them
o Viewing graphs and tables
o Etc.
When the application moves from EDIT MODE to RUN MODE, the program compiles all of the edited
application and checks that there are no errors, warning if any errors exist.
Up to now it has been running in edit mode and the devices and communication connections have been
set. From now on it will also operate in run mode to observe the data from the equipment in real-time and the
results obtained by the application.
• Change the application's operating mode to Run Mode
• In order to do this enter the SETTING menu and then enter PREFERENCES
• Activate the Web SERVER, for example for port 80 (Standard Port)
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 25 -
26. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
This option enables the display via Web or Java Applet. Also this option has the following options from
the program's preferences:
1. Activating and EDIT password. Protects the program from being edited if a previously
defined password is not known.
2. Language: selecting the language.
3. Activating menus and task bar on the display.
4. Activating the web server.
5. User authentication. This allows users and privileges to be established for the
SCADA display which is useful for restricting the use of certain parts of the program
to certain users.
6. SCADA start screen. Defines which of the SCADA screens created in application is
the start screen.
Returning to the guided tutorial, which are now go into RUN MODE.
• Enter the SETTING menu, select RUN OPERATING MODE
• Once the program is in run mode, note that the SETTING menu disables the editing options.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 26 -
27. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
4.- Displaying the application
Monitoring equipment via Java Applet and Website
Editing applications and setting devices and/or connections is the part of a program called
communications engine. Displaying the application in (Run-time), is not carried out with the communications
engine, but the application is displayed by using the XML protocol (data server) and software tools such as
Java Applet and a Web page explorer.
Connecting to Powerstudio Scada via Java Applet
• Run the direct access called: "Appletscada.jar" which is found in the practical computer
desktop. The following screen will appear:
On the start screen, the OK status for communication with the equipment can be seen
• Now the data from the equipment can be monitored in real-time.
• Go to the DEVICES option and choose the four available devices in the application one by
one. Note the values for the equipment.
• Vary the commands for the signal generator and note that the variables are refreshed.
Detail of the monitoring of data from the RGU-10
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 27 -
28. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
The Java Applet is a remote console which monitors the application created with Powerstudio SCADA,
the communication between the communications engine (Powerstudio SCADA) and the Java Applet is carried out
via XML. This console may be installed on remote computers to subsequently display Powerstudio SCADA from
any computer.
• To be able to connect with Powerstudio SCADA via Java Applet Java, from a remote
computer, it is necessary to go to the General Menu and click on CONNECT. Enter the IP
address for the master computer which stores Powerstudio SCADA. Validate for Intranet or
to connect via the Internet.
For the purposes of the tutorial, it is not necessary to define the IP address where it is to be connected as
monitoring is carried out in local mode (on the same computer where the communications engine is running:
Powerstudio SCADA)
Connecting to Powerstudio Scada via the Web
Now connect to Powerstudio Scada from Internet Explorer
• Run Internet Explorer
• Enter the practical computer IP address using the address keyboard (in Internet Explorer). If
the computer's IP address is not known, enter: //LOCALHOST
• The application will monitor from Internet Explorer, as shown in the figure:
Detail of the display via the Web of real-time data from an EDMk.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 28 -
29. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Drawing graphs with histories
Displaying histories, tables, data and the whole application can be carried out using both Internet Explorer and
Java Applet. The Java Applet is used for more convenience. The data displayed in tables and graphs are just
data recorded by Powerstudio SCADA from each device added to the application. As a default, Powerstudio
SCADA records all parameters available to each piece of equipment in a database.
• Run the Java Applet keeping Powerstudio SCADA in run mode.
• Real-time monitoring of data from the MAIN equipment (CVM-MINI).
• Select any of these variables and then click on GRAPH.
• Drawing different types of graphs for the MAIN device (CVM-MINI) given that the time axis
may be as much as one year of data. GROUPED BY = 1 Year.
• Also modify the data period to see more or less samples on the graph. When a graph period
is selected which is higher than the history logging period, the program averages the data
displayed.
• Dates for the histories can be moved by using the BACK and NEXT arrows.
• Clicked right on the mouse on the graph to show the MAGNIFYING GLASS, PAN and ZOOM
options.
• The graphs can be drawn using different variables at the same time, by selecting as many
variables required to draw the graph from the MAIN display screen.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 29 -
30. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Also, by clicking on PROPERTIES, several graphs can be made into one graph by adding
more variables to the same graph (even though they are from other equipment). The colour
of the graphs may be changed, etc.
Detail of the graph properties
• Graphs may be printed using PRINT.
• Also, graphs may be exported to a PNG image using the EXPORT option.
Detailed of an energy graph for one day
• Now you may try out the tools on the graphs and with the properties in order to familiarise
yourself with the graph function.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 30 -
31. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Making history tables
• The process for making tables is the same as that for a graph.
• Keeping the last graph shown on the screen, click on table and all data in the graph will
appear as a table. Also a table may be called by clicking on grass and drawing a graph of the
table.
Example of the table where energy accumulated in each hour is shown. Noticed that the total of all
energy in the table appears in the upper right section.
• The tables also have lower options which allowed sample was in a table to be changed,
grouping data contained in the table, the option for moving between histories using the Back
and Next arrows...
• Other parameters may also be added for the same piece of equipment or different pieces of
equipment to the table by clicking on PROPERTIES:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 31 -
32. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Another way of drawing a table, is by clicking directly on TABLE then selecting the device
and/or parameter which is to be shown as a table:
Exporting data to an Excel table
This section shows how to export a table of data to a text document or an Excel document. There are two
ways to export data:
1. Creating a text file with information from the table for subsequent use.
2. By cutting and pasting from the briefcase.
Each method is demonstrated:
• Generating any table
• Opened the OPTION menu and select EXPORT
• A Menu will appear to save the TXT file as shown in the figure:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 32 -
34. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Introduce file name, for example DATOS, and save in desktop.
• Consequently, TXT file has been saved in desktop.
• Now all data will be imported to DATOS.TXT file.
• Execute Microsoft EXCEL, select FILE, OPEN, as kind of file select ALL FILES.
• Select DATOS as file name, and click OPEN.
• On screen will appear the following message from EXCEL assistant
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 34 -
35. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• In the first step of assistant, select DELIMITADOS and press next:
• In the second step of assistant, try SEPARADORES, TABULACIÓN y PUNTO Y
COMA, press SIGUIENTE: (data will appear in columns)
• Finally, press FINALIZAR, import process has finished.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 35 -
36. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
See in above figure the data imported from Powerstudio in Excel format.
Follow the easy steps below to cut and paste:
• Generating any table
• Move the mouse on top of the table, click right; i.e, select the values from the table:
Data from the table will appear shaded as shown in the figure
• Press CTRL + C and the data will be copied into the briefcase.
• Create a new documents in Excel in the desktop and press CTRL + V, data from the
table is pasted into Excel. See figure:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 36 -
37. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Excel sheet with all the required data exported
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 37 -
38. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
5.- Creating SCADA screens
Creating SCADA screens and adding a background screen image
That is to create two SCADA screens using a previously edited screen background. the SCADA controls
are subsequently used to fill in the two screens.
• Go to the SETTING menu and select NEW SCREEN.
• Enter the name of the screen for example START and click on OK.
• The SCADA screen operating area will appear.
Detail of the SCADA screen design area
Before associating an image to a background, the location and images to be used has to be indicated to
the program.
• Go to the SETTING menu and enter IMAGE MANAGER.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 38 -
39. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Once IMAGE MANAGER has been opened click on ADD.
• Search for an image in the directory: C:BMP, and add the image to EQUIPMENT
EXPERT.BMP, as shown in the following figure:
• Also add SCREEN 2.BMP, LOGO_CIR.BMP, images to be used subsequently.
• Once the three images have been added, click on EXIT.
• The SCADA screen design area reappears. To associate the background image to the
SCADA screen go to the tools on the left section of the screen and click on BACKGROUND
IMAGE.
• Select the EQUIPMENT EXPERT.BMP image.
• Also select, if necessary, MAINTAIN REAL SIZE. This option allows the image resolution to
be used, or if not selected, the image will match the size of the screen by expanding if
necessary.
• Now you may follow these previous steps and create another new screen with the name
SCREEN 2 and associate the SCREEN 2.BMP image as the screen background.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 39 -
40. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• When these screen 2.bmp screen background has been located on the corresponding
screen, click on and select the option MATCH TO BACKGROUND as shown in
the figure:
This option is necessary said that the application matches the screen background resolution.
• If necessary, also apply option to the start screen.
Once the two screens have been created with their respective backgrounds, it is necessary to define
which is the start screen to the program (which will appear first as Index or Portal with the steps / calls to other
screens).
• Go to the SETTING menu and enter PREFERENCES.
• Select the screen called START (the first) as start screen.
• Click on OK in Preferences to validate the start screen.
• In order to see the screens operating in the application, and go to the RUN operating mode
and then start the application "AppletScada.jar".
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 40 -
41. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• As a default the START screen must appear and by clicking on SCREEN MENU the screen
to be displayed may be selected.
Defining text styles
The software allows any type of font available on the installed computer to be used and also allows the
type of writing and specific size to be predefined. The specified style will then be associated with the controls
whether they are text or formulas.
• Enter the SET Up menu and select STYLES.
• Add a new style, define your type of lettering and preferred size.
• Then, the defined style is used for the SCADA action tools for both formulas or texts on the
screen.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 41 -
42. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Using SCADA tools on the created screens
- Action tools
- Position tools
- Page tools
- Zoom tools
- Miscellaneous tools
In addition to the SCADA tools, there is also a series of mathematical and time functions available, such
as:
Square root in the expression “exp”
Neperian logarithm in the expression “exp”
Number “e” raised in the expression “exp”
Sine in the expression “exp” (in radiants)
Cosine in the expression “exp” (in radiants)
Tangent in the expression “exp” (in radiants)
Arcosine in the expression “exp”
Arcocosine in the expression “exp”
Arcotangent in the expression “exp”
Arcotangent extended from the expression “exp1/exp2”
Base ten logarithm from the expression “exp”
Rounded up to the nearest whole number in the expression “exp”
Rounded down to a whole number in the expression “exp”
Return the PI number (3.1415927…)
Return the E number (2.7182818…)
second() : Returns the second of the current date
minute() : Returns the minute of the current date
hour() : Returns the hour of the current date
day() : Returns the day of the current date
month() : Returns the month of the current date
year() : Returns the year of the current date
"Wizard" button: a tool often used while editing the application. It is used to open the equipment
variable search assistant, created formulas, arithmetical functions, logical formulas, ...
From now on, the different action calls will be used to complete the two previously created SCADA
screens. As can be seen, to facilitate the use of the program, the large majority of controls available for designing
SCADA screens are also used to design REPORTS. This is explained in another section.
Example is to be followed our carried out on the SCADA START test screen. The steps to be carried out shall be
checked from the Java Applet.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 42 -
43. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Cursor tool: It is necessary to disable any other previously selected tool.
• Text tool: this is used to add text to SCADA screens, if none is located on the background
screen.
o In Powerstudio SCADA, in Edited Mode and edit SCADA START screen.
o Select the Text tool and write any text on the screen.
o Noticed that on selecting the added text box, another tool box for the text box appears on the
right of the program.
o Check the different tools associated with the text box
• Bitmap Control : this is used to add images to an existing SCADA screen.
o Select the Bitmap Control as a tool and open a small rectangle on the upper left section.
Noticed that the Bitmap control is yellow when there is no image selected.
o As with all action tools, it will open a tool box associated with the active control which in this
case is the Bitmap control. Click on IMAGE SEARCH
o Select the LOGO_CIR.BMP image and click on OK.
o The screen will be as follows:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 43 -
44. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Bitmap control with Circutor logo
• Date and time control: this control allows the current date and time or a freely selected date to
be displayed on the SCADA screen.
o Select Date and time control and under the Circutor logo at it by creating a smaller rectangle
o In the tools (on the right section) associated with the Date and time control, select CURRENT
DATE. So that the current date on the SCADA screen appears in run mode.
o Noticed that the Date and time tools have the option to modify the font, type of lettering,
direction, these options are common to the majority of the Action Controls.
• Formula Control: this control is used to display the variables measured by the devices and/or
formulas created with FORMULA EDITOR on the SCADA screen. Basically, the role of the Formula
control is to display the real-time parameters of the installed equipment on SCADA screens.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 44 -
45. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Below, we are going to edit the SCADA START screen show that its shows the following
information in real-time:
• LM 50 TCP: display digital meter input 1
• EDMK: display accumulated kWh.
• CVM MINI: display: Phase 1 Volts Phase 1, Amperes Phase 1, KWIII and Power
factor III.
o It will start with the LM 50 TCP. Select the Formula Control tool and generate a label on the
space reserved for Input 1. See figure:
o Once the formula control box has been created, the formula control tools are located in the
space reserved for the screen background.
o In the previously entered by the keyboard, the LM 50 TCP variable must be entered: display
digital meter input 1, which will be searched for by pressing the button beside the input,
shown in the above figure.
o by clicking the button, the following variable search assistant will be displayed:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 45 -
46. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o The first option is selected: I WANT TO ADD A REFERENCE TO A VARIABLE FOR A
PIECE OF EQUIPMENT and click on OK.
o Then another screen for the Assistant appears where the equipment is selected where the
variable is to be displayed. In this case the LM 50 TCP.
o By double-clicking directly on the equipment to be selected the variables available for this
equipment will appear:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 46 -
47. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o The meter 1 variable is selected: Energy EDMk which was defined in the first sections.
o Click on OK.
o Noticed that the Formula box and the label added to the SCADA screen the COMMAND
already appears to define the variable to be displayed. This command corresponds to the
Name associated to the equipment and an extension defining the variable in particular
between speech marks.
o If the variable to be entered is known, it may be directly entered using the keyboard on the
formula space.
o In the formula input space, the program allows simple operations to be entered
o Example: ,
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 47 -
48. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o The value 7108, corresponds to the results of an ADD operation already carried out. The
value corresponds to the meter 1 input on the LM 50 + 80. The operations can also be
carried out in among different variables on the equipment.
o If the content of the formula input is incorrect, the program will display SYNTAX ERROR.
o Now, following the same steps as above, the remaining formula for the EDMk and CVM-MINI
equipment can be created.
Detail of monitoring the equipment variables from Java Applet
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 48 -
49. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Formula Editor: the formula editor allows the definition of new variables to be displayed using
arithmetical calculations carried out on equipment variables and/or constants defined in the formula
editor.
Example: a formula to add to the kWh. accumulated by the EDMk and CVM-MINI will be defined to
obtain total energy which will be the installation's total consumption.
o Click on formula editor and the following screen will appear:
o Click on ADD to define the formula
o Enter the name of a formula, for example: ENERGY
o Then click on the button next to the Formula , and the "Wizard" assistant will appear to
search for the origin of the formula data.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 49 -
50. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Select the: I WANT TO ADD A REFERENCE TO A VARIABLE FOR A PIECE OF
EQUIPMENT.
o Search for energy + EDMk, and click on OK.
o Then the first energy to be added will appear in the formula editor.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 50 -
51. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Together with the EDMk energy demand, the + (addition) sign is added.
o The variable search button must be clicked again to add the energy consumed by the MAIN
equipment (CVM-MINI).
o Once the CVM MINI energy variable has been selected, the formula will be defined and
available as another variable.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 51 -
52. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Now ACCEPT in the formula assistant.
o once the formula has been created, use the FORMULA CONTROL to display the ENERGY
formula in the Total Energy box on the SCADA screen. The variables for the pieces of
equipment have been entered as previously.
o A Formula control must be added in the TOTAL ENERGY area.
o Associate the Formula control to the ENERGY formula as shown on the following screen:
o And select the formula created:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 52 -
54. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Conditioned Control: this control allows many functions to be carried out with the same control It
is mainly used to:
o Display an image or a text when a condition is met.
o Carrying out a calculation when a condition is met.
o Displaying a time sequence of images, for example a movement or a flicker.
o Etc.
An image sequence is going to be made to appear (similar to a movement or flashing), conditioned by the
LM 50 TCP selector being ON (Input 3 on the LM 50 TCP). Switching time will be one second and a total of three
different images will be switched.
o First the images to be switched have to be added.
o Open the SET UP, IMAGED MANAGER menu and add the ON.bmp, OFF.bmp and OR.BMP
images:
o Select the formula editor control, add the formula with the name MOD and the formula containing
the following code:
o second-trunc(second/x)*x (Where x takes the values that we need to chang, in this case x=3)
o The formula is properly entered when value appears in the evaluation and no error message
appears. In our case we must put: second-trunc(second/3)*3
o The result of the MOD will vary between, 0, 1 and 2.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 54 -
55. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Now the conditioned control can be created
o Select the condition control, create a rectangle with the control near to the LM 50 TCP
o Edit the properties of the conditioned control
o Add 3 conditions, as shown in the figure and associate each condition to one of the ON, OR
and OFF (BMP) images in any order.
o As can be deduced, there are multiple combinations to be carried out on a large variety of
possibilities to be used by using this technique.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 55 -
56. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
• Screen control: this control allows movement between SCADA screens. It is a sensitive area:
Taking with the mouse will jump to another screen.
o Edit the SCADA START screen and select Screen Control.
o Cover their image with the screen control. The area of this image will be
used as the button to jump to the next screen.
o On the screen control toolbar, defying the destination of jump to SCREEN2 to as shown in
the figure.
o Enter SCREEN 2 and add a screen jump control to the START screen on the RETURN
image.
o Change the application to Run Mode and check the operation from the Java Applet.
• Report control: this simple control carries out the function of jumping to a previously created
report. It is an area which is sensitive to the mouse.
• Device display control: this control jumps to a predetermined device. It is an area which is
sensitive to the mouse.
o It will jump to each device in the Demo Kit, displaying a display control on each device.
o Jump to the LM 50 TCP: Select the display control for the device and create a rectangle on
the LM 50 TCP.
o In the device's jump tools, define the jump to the LM 50 TCP device as shown in the figure
below:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 56 -
57. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Also add jumps to the EDMk, CVM-MINI and RGU 10 devices.
o Change the application to Run Mode and check the operation from the Java Applet.
o Noticed that, when the device's icon is clicked on, the program jumps to monitoring its
measured variables.
• Graph or Table Control: this control allows a jump to be created to a predefined graph or table.
o An example of a jump is created, to a graph where the daily consumed energy appears on
the MAIN equipment (CVM-MINI). The graph shows the data grouped by month with the daily
grouped energy.
o Choose the Graph control and add a rectangle on the free area on the SCADA screen.
o On the control toolbar select GROUPED BY = month, PERIOD = 24 hours, as shown in the
figure:
o On the control toolbar, ADD the consumed energy variable for the MAIN equipment.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 57 -
58. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o The area is sensitive to the mouse and opens a predefined energy graph.
o Remember that you can also jump to a table with the same procedure used for the graph.
o Multi-graphs of up to 10 simultaneous variables can be created.
• Event display control: these controls allow an area sensitive to the manners to be created
which opens up a window by clicking on the mouse:
o Active Events: active system alarms
o Events History: list with the events history
These options are entered into more detail in the events section.
• Run control: this control is used to run an external application with predefined parameters.
o The properties of this control are shown in the figure.
o In Program the route and name of a file to be run are entered.
o In Parameters a parameter associated to running the program is entered.
o They were in control may be associated to an application event.
• Forced Variable Control: this control allows the 0 or 1 output or vice versa to be forced from the
software for devices with digital outputs. The control is an area which is sensitive to the mouse.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 58 -
59. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
An example of forcing the variable is shown. The switch associated with the RGU 10 will be closed
and opened from two areas sensitive to the mouse.
o Select the control to force the variable
o Add 2 controls, in the RGU 10 area, on OFF control and another RESET control
o Edit the properties of the controls as follows:
o Edit OFF, as shown in the figure
o Edit Reset, as shown in the figure
o The Force digital output application may be used for any device with these outputs.
o Events to force the relay may be associated in order to maximise the software alarm signal.
• Area Fill in control: this control fills in and the area on the screen background when a
predetermined condition has been met.
The condition that does not have to be strictly digital, it may be a maximum/minimum condition. It is a
purely graphic control.
An example of this control is shown. The Scada START screen will show the blank box for input 2 on LM
50 TCP as a red or green depending on if the input is closed or open.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 59 -
60. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Adding an area fill in control on the blank area for input 2.
o On the fill in control properties, click on the Wizard button to add the fill in condition.
o The DIGITAL INPUT no. 2 for the LM 50 TCP will be sought. Remember that it is a
REFERENCE TO A VARIABLE FOR A PIECE OF EQUIPMENT
o The CLOSED condition will be [LM 50 TCP.DI2]==1
o Associate the red colour to this condition and press NEW.
The control will remain in the following manner:
o Now enter the Open condition
o On the CONDITION input line, where the previous condition remains, the condition is
changed to: [LM 50 TCP.DI2]==0 , and the colour changes to green
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 60 -
61. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
Now place the Application in run mode and check its operation:
Note: This tool makes appear in the below side a new feature icon called "tolerance". Its scope is from
0% up to 100%, and as much higher is the percentage less restrictive is the tool to fulfill the image.
When "0%" value of tolerance is selected, it is filled in the same size and colour than the pixel selected in the
picture. If there were different tones is necessary to increase the tolerance degree towards "100%" value to
obtain more accuracy.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 61 -
62. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
6. Defining virtual variables
That this program option allows new variables to be defined resulting from combining other variables in
the same way as in the formula editor. The difference between virtual variables and formulas is that virtual
variables can be subsequently displayed as graphs and tables as though they were a direct variable from the
equipment. On the other hand, formulas defined in the formula editor or in the form of control, are not capable of
being displayed as a graph or table. Also, a virtual variable is handled as though it were a new device.
Depending on the requirements of the application and the formulas and calculations required, the
variables are defined as a formula or as a virtual variable.
Example of an application for a virtual variable:
Suppose in an energy efficiency application that the single wire diagram for the installation is as shown in
the figure:
The installation has three power transformers in the substation, has an analyser measuring electrical
consumption for each of the transformers, but does not have equipment to measure the total for the three
transformers
Virtual variables are allowed the new equipment to be defined (which does not physically exist). This will
carry out the required operations to calculate the electrical parameters for the three partial pieces of equipment.
(Addition of powers, addition of energies, Cos phy total calculations, average voltage calculations, etc.)
In this way, graphs, tables, screens, reports or events can be made for the total consumption of
installation without having such a device. Virtual variables = TOTAL CT1 device (see previous figure). Virtual
variables can be defined as any parameter read by Circutor devices whether they are electrical parameters or
process signals.
An example of a simple virtual variable is shown using data from the MAIN equipment. The three-phase
voltage variable is defined which is the result of averaging the three single voltages.
o Go to Powerstudio scada, operating in edit mode.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 62 -
63. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Go to the SET UP menu and select DEVICES.
o Add a new device in the ADD DEVICES ASSISTANT.
o Choose a virtual device.
o Define a name for the device and a description, for example VIII.
o Click OK on the following screens.
o When a device is added, enter into its configuration by double-clicking on it and entering the
DEVICE PARAMETERS. Here, its formula and origin of data will be defined.
o The following will be displayed in Parameters:
o Noticed that many variables can be defined for the same Virtual device
o Click on ADD and another window will open:
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 63 -
64. Web: www.circutor.com
VIAL SANT JORDI, S/N E-mail: central@circutor.es
08232 VILADECAVALLS (BARCELONA) Tel: (+34) 93 745 29 00
ESPAÑA / SPAIN Fax: (+34) 93 745 29 14
o Define the different fields as shown in the figure
o Entered the following average formula
o ([MAIN.VI1]+[MAIN.VI2]+[MAIN.VI3])/3
The meaning of its field is as follows:
The virtual variable identifier used to uniquely identify each of the variables to be used in
expressions and conditions, see Section 13.2 Expressions and conditions.
Name of the virtual variable used for better variable identification.
Text of the units in which the value is expressed.
Allows the value grouping criteria for the virtual variable values on graphs, tables and
reports to be selected. For example, if there is a value every 5 minutes (e.g. 10, 12 and 17) and the values are
grouped every 15 minutes, this means that 3 values are grouped into 1. The value obtained would be:
• Maximum value: the maximum value of the 3 will be displayed
• Minimum value: the minimum value of the 3 will be displayed
• Average value: the average value of the 3 will be displayed
• Last value: the last value will be displayed
Here the formula giving the result of the virtual variable is specified.
It may be entered manually or by the “wizard” button (See Appendix 13.2 Expressions and conditions). When the
formula is entered, it is automatically analysed and where it may be used will be displayed.
Circutor, S.A. – Powerstudio SCADA v2.5 Practical Tutorial – - 64 -