Vous êtes sur la page 1sur 111

ENERGY MANAGEMENT SOFTWARE

POWERSTUDIO SCADA
Version 2.5

TUTORIAL
03_07H

CIRCUTOR S.A.

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

-2-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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

2.
3.

4.

5.

6.
7.

8.
9.

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
Setting the LM-50 TCP
a. Setting the IP and other parameters
b. Adding an LM-50 TCP connection to Powerstudio SCADA
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
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
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
Defining virtual variables
a. Example of an application for a virtual variable
Creating reports
a. Creating an Energy Report
b. Creating timeslots
c. Creating reports by applying timeslots
Creating Events (application alarms)
DDE and XML Data Server
a. DDE
b. XML

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

-3-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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
o

On the run on screen, enter CMD and press OK (as shown in the figure).
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-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

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.

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-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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-

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

When the previous screen appears, enter the appropriate NETWORK parameters:
a.
b.
c.
d.

IP = 172.16.11.100
Subnet Mask = 255.255.0.0
Gateway = 0.0.0.0
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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/LM50TCPs
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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
o
o
o
o
o
o

Starting communication connections


Starting connection devices (Networks)
Setting equipment
Creating SCADA screens
Creating reports
Defining events (alarms)
Etc.

Run Mode: in this mode, the application activates the Web server and allows the online operation
of each application created:
o
o
o
o
o
o

Displaying equipment data


Viewing SCADA screens with updated information
Displaying the reports created
Viewing the status of events and the option of recognising them
Viewing graphs and tables
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 33 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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, TABULACIN 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

When these screen 2.bmp screen background has been located on the corresponding
screen, click on
the figure:

and select the option MATCH TO BACKGROUND as shown in

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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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
o
o

In Powerstudio SCADA, in Edited Mode and edit SCADA START screen.


Select the Text tool and write any text on the screen.
Noticed that on selecting the added text box, another tool box for the text box appears on the
right of the program.

Check the different tools associated with the text box

Bitmap Control : this is used to add images to an existing SCADA screen.


o
o
o
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.
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
Select the LOGO_CIR.BMP image and click on OK.
The screen will be as follows:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 43 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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

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.
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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.

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:

Once the formula control box has been created, the formula control tools are located in the
space reserved for the screen background.

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.
by clicking the button, the following variable search assistant will be displayed:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 45 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o

The first option is selected: I WANT TO ADD A REFERENCE TO A VARIABLE FOR A


PIECE OF EQUIPMENT and click on OK.
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.

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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o

The meter 1 variable is selected: Energy EDMk which was defined in the first sections.
Click on OK.

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.
If the variable to be entered is known, it may be directly entered using the keyboard on the
formula space.
In the formula input space, the program allows simple operations to be entered

Example:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 47 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


o

o
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.
If the content of the formula input is incorrect, the program will display SYNTAX ERROR.
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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:

Click on ADD to define the formula

Enter the name of a formula, for example: ENERGY

Then click on the button next to the Formula


search for the origin of the formula data.

, and the "Wizard" assistant will appear to

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 49 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Select the: I WANT TO ADD A REFERENCE TO A VARIABLE FOR A PIECE OF


EQUIPMENT.
Search for energy + EDMk, and click on OK.

Then the first energy to be added will appear in the formula editor.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 50 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o

Together with the EDMk energy demand, the + (addition) sign is added.
The variable search button must be clicked again to add the energy consumed by the MAIN
equipment (CVM-MINI).

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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o

Now ACCEPT in the formula assistant.


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.
A Formula control must be added in the TOTAL ENERGY area.
Associate the Formula control to the ENERGY formula as shown on the following screen:

And select the formula created:

o
o

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 52 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 53 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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
o
o
o

Display an image or a text when a condition is met.


Carrying out a calculation when a condition is met.
Displaying a time sequence of images, for example a movement or a flicker.
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
o

o
o
o
o

First the images to be switched have to be added.


Open the SET UP, IMAGED MANAGER menu and add the ON.bmp, OFF.bmp and OR.BMP
images:

Select the formula editor control, add the formula with the name MOD and the formula containing
the following code:
second-trunc(second/x)*x (Where x takes the values that we need to chang, in this case x=3)
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
The result of the MOD will vary between, 0, 1 and 2.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 54 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Now the conditioned control can be created


o
o

Select the condition control, create a rectangle with the control near to the LM 50 TCP
Edit the properties of the conditioned control

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.
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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.

Cover their image


with the screen control. The area of this image will be
used as the button to jump to the next screen.
On the screen control toolbar, defying the destination of jump to SCREEN2 to as shown in
the figure.

o
o

Enter SCREEN 2 and add a screen jump control to the START screen on the RETURN
image.
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
o
o

It will jump to each device in the Demo Kit, displaying a display control on each device.
Jump to the LM 50 TCP: Select the display control for the device and create a rectangle on
the LM 50 TCP.
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o
o

Also add jumps to the EDMk, CVM-MINI and RGU 10 devices.


Change the application to Run Mode and check the operation from the Java Applet.
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

o
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.
Choose the Graph control and add a rectangle on the free area on the SCADA screen.
On the control toolbar select GROUPED BY = month, PERIOD = 24 hours, as shown in the
figure:

On the control toolbar, ADD the consumed energy variable for the MAIN equipment.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 57 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

The area is sensitive to the mouse and opens a predefined energy graph.
Remember that you can also jump to a table with the same procedure used for the graph.
Multi-graphs of up to 10 simultaneous variables can be created.

o
o
o

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
o

Active Events: active system alarms


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
o
o
o

The properties of this control are shown in the figure.


In Program the route and name of a file to be run are entered.
In Parameters a parameter associated to running the program is entered.
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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
o
o
o

Select the control to force the variable


Add 2 controls, in the RGU 10 area, on OFF control and another RESET control
Edit the properties of the controls as follows:
Edit OFF, as shown in the figure

Edit Reset, as shown in the figure

o
o

The Force digital output application may be used for any device with these outputs.
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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


o

Adding an area fill in control on the blank area for input 2.

o
o

On the fill in control properties, click on the Wizard button to add the fill in condition.
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
The CLOSED condition will be [LM 50 TCP.DI2]==1
Associate the red colour to this condition and press NEW.

o
o

The control will remain in the following manner:

o
o

Now enter the Open condition


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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / 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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


o
o
o

Go to the SET UP menu and select DEVICES.


Add a new device in the ADD DEVICES ASSISTANT.
Choose a virtual device.

o
o
o

Define a name for the device and a description, for example VIII.
Click OK on the following screens.
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.

The following will be displayed in Parameters:

o
o

Noticed that many variables can be defined for the same Virtual device
Click on ADD and another window will open:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 63 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o
o

Define the different fields as shown in the figure


Entered the following average formula
([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 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o

Click on OK and the virtual variable is defined.


The device and the virtual variable will appear as another device on the list of devices.

Now be operating mode is changed to run mode and the Java Applet is started to check the
operation of the new device

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 65 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

7.- Creating reports


A report is used to check the parameters measured by a Circutor equipment over predetermined period
of time. Energy, cost control, production cost control, etc reports can be obtained using this method.
In order to be able to see what is their report, it is proposed to create step-by-step and energy report

Creating an Energy Report


The device from where or required parameters are to be extracted is the MAIN equipment

Current date of creating the report.


Start date of report data.
Finish date of report data.
Active Consumed Energy and price of kW/h (0,063557) Help with creating formulas.
Power factor.
Creates a formula to extract cosine of phi. (What is cosine of phi?).
Indicates the value of the power demand meter.
Creates a simulation of the bill if the contracted power limit is 1000 kW and the cost of power is 4.65 per
kW (assists in creating additional formulas to create the simulation, where the price of consumed energy
plus the price of power haves to appear).
In addition to this subtotal, the fixed cost of renting the meter of 54.30 must appear The electricity tax
which is (1.05113 x 4.864% x subtotal). All of this information provides the taxable amount of the report
and allows the total to be extracted to which 16% VAT has to be added.
Once this report has been created, simulated between 1st February 2007 and 1st March.

Implementation:

In order to create report, enter the setup-reports-new menu:

Once this has been done, a window appears to assign a name to the report, as previously shown
in the create screen option. The required name is assigned:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 66 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Then the editing format of the report automatically appears. The create date tool is used if the
date of creating the report is required. This tool has a direct icon on the toolbar.

An area has to be selected with the mouse, an area which will indicate the where the required
data will appear.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 67 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

On the date menu on the right-hand side of the operating window, the type of data required may
be selected from the drop-down menu on the upper section of the menu.

To create a report, assistance is available from the text tool. This allows fixed labels for the
reports to be created such as "period from" "until" etc.

The insert image tool is used to create lines.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 68 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Once the required area has been created use the mouse to select an image and place a
previously designed image on the report. This may be a colour pixel required for the bar.

This pixel is selected, it expands to the whole area and after the size is assigned for this window
it converts into a line or bar to the required dimensions.

In order to be able to display active energy consumed on the report, a formula with the energy
expression is created. This variable may be obtained by using the Wizard tool.

Once the required variable is displayed, a variable is created using the formula editing. This value
will be the price of energy so that handling this variable will be easier afterwards (If this variable
changes at any time, changing the value of the variable is changed in every area where it
appears).

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 69 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Once this variable has been defined, another variable for the cost of energy may be defined. If no
variable is to be defined, the cost can be displayed by working directly on the expression, but
always working with the previously created price variable.

The same method is used as with active energy to display power factor.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 70 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

As many variables as necessary are created to create a phi cosine function. The following simple route is
used to reach phi cosine:

Creating the following variables:


tanfi=Power factor/Active energy
fi=atan(tanfi)
cosphi=cos(fi)

In order to extract the value of the power demand meter, this variable just has to be displayed.

Simulating a bill cannot be undertaken without the value of the power, therefore the part defining
the power contract and the parts defining the cost of the same will be defined.
The cost of the power is defined year on year and therefore a variable is created which can be
easily modified. Power limits are not usually changed in isolation, but also they are created as a
variable. This variable will be called PC.

The subtotal variable is created as a sum of the previous independent variables.

The companies that meet or a rental cost and the electricity tax must appear as part of the
taxable amount.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 71 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

The taxable amount can be created using these costs which will be the sum of this subtotal,
electricity tax and meter rental.

A VAT rate of 0.16x will be added to the taxable amount.

Finally the total amount is displayed and the bill is simulated. In order to assimilate the bill, the
run operating mode must be used, therefore the editing mode will be changed to run mode as
shown in previous steps and the Applet has to be loaded. Jar or go directly to Internet Explorer to
display the report's values.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 72 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

If 1 February 2007 to 1 March 2007 is to be simulated, the go to the report option must be
selected and the calendar entered to select the start date.

This step creates the report with the required period.

Once in this area, the report can be printed. In order to see if a report for any period for which data is
available can be printed, a report is generated with the period for the year before that time period and will appear
in the following way:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 73 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 74 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Creating timeslots (Tariffs)


It is proposed to create timeslots to fulfil the following conditions.

Where winter runs from the last Sunday in October to the last Sunday in March and summer from
the last Sunday in March but last Sunday in October.

In order to create the timeslots go to be set up menu, and in set up go to: timeslots.

Once the timeslots has been opened add the required name and description.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 75 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Then, created the calendar by starting with the type of time, going to type of time and they're
adding the first type of time which will be low:

Once three times have been defined, the following is displayed:

That will be to create the type of day: Winter and summer:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 76 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

The type of winter day will be defined in the following way:

In order to generate a type of summer day, follow the same method and obtain the following
screen:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 77 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Types of day are defined in this manner:

Finally define the calendar. Select calendar option and create a new one using the types of days
defined previously:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 78 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

To apply the type of days in the calendar, it can use the option fase selection.

When the calendar has been done, the discirminator just been definided.

Creating reports by applying timeslots.


And energy reports will be created where energy is divided into: Peak Low Flat rate.

As shown in the first section for reports, a report is generated in the same manner until a screen
is created which is similar to the following:

Once this point has been reached, the required variables are generated by applying the
previously created timeslots.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 79 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Once the timeslots have been applied to the three energy boxes, the required result is obtained:

To finish to this section, the report is simulated.


The image which appears once this has been done is as follows:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 80 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

8.- Creating Events (application alarms)

Events are application alarms. The purpose of these events is to warn of a faulty situation in the
installation.
Events are recorded in the application and a history can be made by listing the events occurring
within a predetermined time period.
Events may be classified into groups according to the required criteria.
Events may be recorded without notification, and many be issued as a warning in a pop-up
window and may even be displayed by an external program or by a digital output available on
some devices.
Logically, an event is activated when its activation condition is met. This condition is completely
flexible and configurable.
The format for the activation conditions are the same as for the condition control and for the area
fill in. These conditions are shown in the Scada tools section.
Also, events may be classified over time as defined in the event timeslots. This means that
certain alarms in the installation will only be activated if they occur within the time slots for the
event. E.g.: if electrical consumption at the header is above 100 kW during the non-industrial
activity timeslots, the switch off lights and/or air-conditioning warning is given...
Etc.

An event is started in order to show how it operates. When the button on the LM 50 TCP is activated, it
also activates an event which trips the overload switch. Also the earth leakage current which the RGU reads at
that time is noted.
o
o

Go to Powerstudio SCADA, in editing mode.


Go to the setup menu and enter EVENTS.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 81 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

The Event Timeslot of showing allows the event activation calendar to be defined. If this is not defined,
any event will be active at any time. Events Groups allow events to be classified into groups.

The following window appears in events:

Add a new event, the following window appears:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 82 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

o
o
o
o
o
o
o

In NAME (of the event), enter Alarm1


Condition for the event: [LM 50 TCP.DI2]==1
A deactivation condition is not used. The event must be ACKNOWLEDGED by the user and
will be deactivated when this condition is not met.
Select: NOTIFY BY POP-UP WINDOW AND RECORD IN THE FILE
RELATED TEXT: fault in Machine 1.
Do not DISABLE THE EVENT: this corresponds to applying a predefined timeslot to the
event.
LOGGING: ADD LOGGING:
o Select the wizard and it enter REFERENCE TO A VARIABLE OF A PIECE OF
EQUIPMENT: effective instant currents in the RGU 10, as shown in the figure:

o
o

Click on OK.
Now click on the logging wizard and select VALUE OF ONE OF THE REASONS
FOR THE EVENT as shown in the following figure:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 83 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Click on OK and select the effective current reason for the RGU:

o
o
o
o
o

Click on OK again.
The logging of the current value has already been defined.
The RESET for the over the device will be defined.
In ACTIONS, add a new ACTION at the time of ACTIVATING.
Select FORCE A VARIABLE.

As a variable to be Forced, select the RGU device, RESET variable, Value = 1, as shown in
the following figure:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 84 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


o
o

Click on OK.
The event has been completely defined. The event setting screen will be as follows:

o
o
o

ACCEPT all changes made.


Changed the application to run mode, and open the Java Applet.
Activate the button and check the overload device reset, also check that is a pop-up screen
appears when the event occurs.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 85 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Detail of the pop-up screen with the active event


o
o
o

When the pop-up screen appears, the active events must be clicked on and then
ACKNOWLEDGE THE EVENT.
The pop-up window cannot be minimised before the event has been acknowledged.
Continuing with the Java Applet, if then Events
occurring appears.

is pressed, a history of the events

It is also possible to use the SCADA tools to jump to the event's history or to successive events using the
following tools:

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 86 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

9.- DDE and XML Data Server


DDE
DDE (Dynamic Data Exchange) is a Windows protocol between applications. It can operate in customer
mode (Requesting data from other applications) and/or in server mode (supplying data to other applications). The
PowerStudio program operates in server mode, i.e. once communication is established with another Windows
application (Excel, Paradox, Word, Programs in C, in Visual Basic, etc.) PowerStudio supplies it with the values
read in the drivers. So, for example, voltage current, etc. may be seen in real time, etc. in Excel.
And application will be used on an Excel sheet using the DDE protocol to visualise voltage in L1:

Keep Powerstudio SCADA in run mode.


Copy the following sentence into an Excel cell:

=PWSTDValues|MAIN!VI1

Noticed that the Excel sheet displays the L1 voltage from the MAIN equipment.
All variables from the devices may be displayed on an Excel sheet in real-time.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 87 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

XML
PowerStudio provides a series of XML services to enable certain aspects of communication with other
applications.
Sometimes the integrators find that several external applications need data to be read from the same
peripheral; this poses a large problem because the equipment with RS485 Communications are only likely to be
questioned by a single master. In the event that there are more than one, there will be collisions in the
communication and no application will correctly receive information from the analyzers.
With DDE integration it might be possible, as stated previously, that all external applications must be
installed on the same platform, i.e. on the same personal computer. In the majority of cases, this type of
installation is non-viable because there is no possibility of assembling all integrated systems.
The XML communication protocol resolves this problem because it can question any application that is
on the same Local Area Network including the Internet; the only requirement is that it has an IP address to be
questioned. In this way, any electrical or physical parameter may be requested which, using a peripheral, is
collected by the Powerstudio System & Powerstudio Scada. In this way, using the XML communication protocol,
many parameters can be collected from one or more Powerstudio installed on the same network including
accessible external networks.
The sentences that must be made for the XML protocol and for the DDE server, must be correctly
formed. If not, the application will return a variable error.
In the requests in which it is necessary to express a date and time, for the service request as well as the
response data, this will be represented in UTC (Universal Coordinated Time) as DDMMYYYYHHMMSS (two
digits for the day, two for the month, four for the year and two for the hour, minutes and seconds). It is also
possible to represent only a date as DDMMYYYY assuming that the time will be 00:00:00 or to simply represent a
time as HHMMSS. Finally, in those cases when it is necessary to express milliseconds, these will be represented
with three digits after seconds as follows: DDMMYYYYHHMMSSUUU or HHMMSSUUU.

/services/user/devices.xml
This returns the list of configured devices.
<devices>
<id> </id>

</devices>

Where:

devices: This is the main field that will be identified to XML as the response to the request for the
list of devices.
id: This is the name for each one of the devices.

/services/user/deviceInfo.xml?id=device?...
This returns information on the devices. Each one of the devices, from which information should be
obtained, must be included in the request as follows:
?id=device?id=device2
<devices>
<device>
<id> </id>
<description> </description>

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 88 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


<type> </type>
<typeDescription> </typeDescription>
<var> </var>

</device>

</devices>

Where:

devices: This is the main field that will be identified to XML as the response to the request for
device information.
device: Information on each one of the devices requested.
1. id: Device name
2. description: Device description
3. type: Type of device (CVM144 for example)
4. typeDescription: Description of the type of devise (CVM-144 for example)var: This is
the name for each one of the devices variables. The name will be expressed as a device
variable (see Error! No se encuentra el origen de la referencia., Error! No se
encuentra el origen de la referencia.)

/services/user/varInfo.xml?var=device.variable?...?id=device?...
This returns information on the variable at the time the XML request is made. Each one of the variables,
for which the value should be obtained, must be included in the request as follows:
?var=device.variable
If the user wishes to obtain information on all the variable for a device, this should be indicated as follows:
?id=device
It is also possible to request information from one or more variables and one or more devices in the same
request.
<varInfo>
<var>
<id> </id>
<title> </title>
<hasValue> T </hasValue>
<hasLogger> T </hasLogger>
<sampleMode> </sampleMode>
<measureUnits> </measureUnits>
<unitsFactor> </unitsFactor>
<decimals> </decimals>
</var>

<varInfo>

Where:
-

varInfo: This is the main field that will be identified to XML as the response to the request for
variable information.
var: Information on each one of the variables requested:
1. id: The name of the variable in device.variable format (see Error! No se encuentra el
origen de la referencia., Error! No se encuentra el origen de la referencia.)
2. title: Brief description of the variable.
3. hasValue: Indicates whether it is possible to request the instantaneous value for the (T)
variable or not (F).

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 89 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


4. hasLogger: Indicates whether it is possible to request the history of values for the (T)
variable or not (F).
5. sampleMode: Type of variable, mode used to group the values of the variable:
none: No type
average: Average value
max: Maximum value
min: Minimum value
pfAverage: Power factor, average value
pfMax: Power factor, maximum value
pfMin: Power factor, minimum value
last: Last value
differential: Differential value between the current and the previous value
samples: Samples. The value cannot be grouped.
discrete: Discrete values. The value cannot be grouped.
6. measureUnits: Units of the variable:
#NONE It does not have units
#V Voltage
#A Current
#VA Apparent power
#W Active power
#VARL Inductive power
#VARC Capacitative power
#PF Power factor
#HZ Frequency
#PERCENT Percentage
#WH Active energy
#VARLH Inductive energy
#VARCH Capacitative energy
#DATETIME Date and time
If not preceded by #, this is a user defined unit.
7. unitsFactor: Power of 10 that indicates the value by which the variable in the file history
is multiplied
8. decimals: Decimals that have this variable.

/services/user/values.xml?var=device.variable?...?id=device?...
This returns the instantaneous value of the variable at the time the XML request is made. Each one of the
variables, for which the value should be obtained, must be included in the request as follows:
?var=device.variable
If the user wishes to obtain the value for all the device variables, this should be indicated as follows:
?id=device
In the same request, it is also possible to request the value of one or more variables and the values of the
variables for one or more devices.
<values>
<variable>
<id> </id>
<value> </value>
</variable>

</values>

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 90 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Where:
-

values: This is the main field that will be identified to XML as the response to the request for
variable values.
variable: List of variables:
1. id: The identifier of the variable in device.variable format (see Error! No se encuentra
el origen de la referencia., Error! No se encuentra el origen de la referencia.)
2. value: The value of the variable at the time of the request.

/services/user/forceVariables.xml?id=device
The request can be used to send the order to force PowerStudio variables. In the request, the user must
include the name of the device to be forced, so authentication can be confirmed if necessary (see Error! No se
encuentra el origen de la referencia. Error! No se encuentra el origen de la referencia.). Only variables
pertaining to the device indicated in the request will be forced.
<forceVariables>
<forceVar>
<forceName> </forceName>
<forceValue> </forceValue>
</forceVar>

</forceVariables>

Where:
-

forceVariables: This is the main field that will be identified to XML as a request to force
variables.
forceVar: Information on each one of the variables to be forced:
1. forceName: The name of the variable in device.variable format (see Error! No se
encuentra el origen de la referencia., Error! No se encuentra el origen de la
referencia.). This is only viable for variables that can be forced such as digital output
variables for example.
2. forceValue: The value to which the variable will be forced.

/services/user/records.xml?begin=?end=?var=?period=900
This returns information registered for one or more variables between the begin and end dates. Each
one of the variables, for which the information should be obtained, must be included in the request as follows:
?var=device.variable
The begin and end format will be DDMMYYYY when only a date needs to be indicated (in this case
the time will be 00:00:00) or DDMMYYYYHHMMSS when the date and the time must be specified. Begin and
end must both be expressed in UTC (Universal Coordinated Time).
Finally, the data grouping period can be specified for the data using the period parameter. This value can be
any of the following:
FILE Data will not be grouped and registries will be returned just as they were saved in the history.
AUTO Automatic; grouping is done automatically depending on the begin and end dates specified.
> 0 Value in seconds for which the data will be grouped.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 91 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

If the period parameter does not appear in the request, it will be considered to be 0, and the data will not be
grouped.
<recordGroup>
<period> </period>
<record>
<dateTime> </dateTime>
<field> </field>
<fieldComplex> </fieldComplex>
<fieldARM> </fieldARM>
<fieldFO> </fieldFO>
<fieldEVQ> </fieldEVQ>

</record>

</recordGroup>

Where:
-

recordGroup: This is the main field that will be identified to XML as the response to the request
for variable registries.
period: Registry period. This will inform on the time that has passed between registries.
record: This will identify each one of the registries.
1. dateTime: Date and time of the sample
2. field: Standard value registry
3. fieldComplex: Complex value registry
4. fieldARM: Harmonic value registry
5. fieldFO: Wave form registry
6. fieldEVQ: Registry of an EVQ event

The different type of values that can be returned for this request are provided below:
-

Standard value registry (voltage, current, power, energy, etc.)


<field>
<id> </id>
<value> </value>
</field>

1. id: Variable identifier (device variable)


2. value: Value
-

Complex value registry (PLT, etc.)


<fieldComplex>
<id> </id>
<value> </value>
<flags> </flags>
</fieldComplex>

1. id: Variable identifier (device variable)


2. value: Value
3. flags: Additional information on the variable formed by joining one or more of the
following values:
0x0000 The PLT is correct.
0x0001 The PLT calculation was made with less samples than expected.
0x0002 The PLT calculation was made with more samples than expected.
0x0004 The samples used in the PLT calculation are not equally separated by
distance in the sample window.
0x0008 Some PST used in the PLT calculation contains phase 1 events.
0x0010 Some PST used in the PLT calculation contains phase 2 events.
0x0020 Some PST used in the PLT calculation contains phase 3 events.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 92 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

0x0040 Some PST used in the PLT calculation is not complete.

Harmonic value registry


<fieldARM>
<id> </id>
<element>
<harmonic> </harmonic>
<value> </value>
</element>

</fieldARM>

1. id: Variable identifier (device variable)


2. element: Information on each one of the harmonics
harmonic: Number of the harmonic
value: Harmonic value
-

Wave form registry


<fieldFO>
<id> </id>
<element>
<msec> </msec>
<value> </value>
</element>

</fieldFO>

1. id: Variable identifier (device variable)


2. element: Information on each one of the points that make up the wave form
msec: millisecond
value: value
-

Registry of an EVQ event


<fieldEVQ>
<id> </id>
<value> </value>
<phase> </phase>
<duration> </duration>
<averageValue> </averageValue>
<previousValue> </previousValue>
<eventType> </eventType>
<endForced> </endForced>
<semicycleVoltage>
<date> </date>
<value> </value>
</semicycleVoltage>

</fieldEVQ>

1.
2.
3.
4.
5.
6.
7.

id: Variable identifier (device variable)


value: Event value
phase: Phase when the event occurred
duration: Duration of the event in milliseconds
averageValue: Average value
previousValue: Previous value
eventType: Type of event
0 Interruption
1 Hole
3 Power surge

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 93 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


8. endForced: This will mark whether the event was completed correctly (F) or whether it
was forced to end (T).
9. semicycleVoltage: Each one of the points that form the effective voltage of the semicycle associated with the event. This field is optional, and it is ok if it does not exist.
date: Date and time (DDMMYYYYHHMMSSUUU)
value: Value

VARIABLES
To use references to the variables measured by the devices in Scada, reports, graphs and tables, the
software must recognize how each one of these is encoded.
Basic encoding will comprise the name of the devise and the variable code separated by a period.
name.variable
Accordingly, the software will know the variable it is working with and the device from which it must
request the value for said variable.
This encoding (name-variable) can be used in the formulas, graphs and tables while reports, graphs and
tables are only able to visualize the variables that have been saved in the value history files.
On occasions when the user wishes to discriminate a variable, as long as the variable can be
discriminated (energy for example), the discriminator information will be added to the basic coding.
discriminator_name@name_type_time:name.variable
Where the name of the discriminator to be used will be indicated along with the time type for which the
variable values will be discriminated.
This type of encoding with discriminators can only be used for reports, graphs and tables and only with
variables that have been saved in value history files.
For a better understanding, the variables will be shown in separate tables depending on the variable type
measured by the devices. The columns situated to the left will provide information on the variable type, whether
the variable is instantaneous, maximum or minimum, corresponding phase, any other information depending on
the variable and finally the code used (for example the corresponding code for instantaneous neutral-phase
voltage of phase 1 will be VI1). On the other hand, the columns located to the right of each table will correspond
to devices that can measure each one of the variables, indicating if the variable will be measured by the device
with and X and indicating if the variable will be measured depending on the device version with an O.

Voltage

CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVMK HAR
CVM MINI
CVM NRG 96

L1

Instantaneous
L2
L3

VI1
X
X
X
X
X
X
X
X
X
X

VI2
X
X
X
X
X
X
X
X
X
X

VI3
X
X
X
X
X
X
X
X
X
X

III
VI

Phase voltage neutral


Maximums
L1
L2
L3

Minimums
L2
L3

III

L1

VMX

VMN1

VMN2

VMN3

VMX1

VMX2

VMX3

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

III
VMN

X
X
X

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 94 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

CVM SP
MK D
POWERNET
QNA

CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVMK HAR
CVM MINI
CVM NRG 96
MK D
POWERNET
QNA

X
X
X
O

X
O

X
X
X

X
O

L1

Instantaneous
L2
L3

VI12

VI23

VI31

X
X
X
X
X
X
X
X
X
X
X
X
O

X
X
X
X
X
X
X
X
X
X

X
X
X
X
X
X
X
X
X
X

X
O

X
O

X
X

Phase voltage Phase


Maximums
L2
L3

III

L1

VI123

VMX12

VMX23

VMX31

X
X

X
X

Minimums
L2
L3

III

L1

VMX123

VMN12

VMN23

VMN31

X
X

X
X

X
X

X
X

X
X
X
X

X
X

X
X

X
X

X
X

X
X

X
X
X

L1
VPNOMI1

Nominal voltage
Instantaneous
L2
VPNOMI2

L3
VPNOMI3

Instantaneous

Neutral voltage
Maximums

Minimums

VNMX

VNMN

QNA

VNI
X
O

CVM K2
QNA

III
VMN123

Voltage absolute minimum

QNA

L1

All registries
L2

L3

L1

Valid registries
L2

L3

V1MINT
O

V2MINT
O

V3MINT
O

V1MINV
O

V2MINV
O

V3MINV
O

L1

All registries
L2

L3

L1

Valid registries
L2

L3

V1INFT
O

V2INFT
O

V3INFT
O

V1INFV
O

V2INFV
O

V3INFV
O

L1

All registries
L2

L3

L1

Valid registries
L2

L3

V1SUPT
O

V2SUPT
O

V3SUPT
O

V1SUPV
O

V2SUPV
O

V3SUPV
O

L1

All registries
L2

L3

L1

Valid registries
L2

L3

V1MAXT

V2MAXT

V3MAXT

V1MAXV

V2MAXV

V3MAXV

Voltage lower percentile [5%]

QNA

Voltage upper percentile [95%]

QNA

Voltage absolute maximum

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 95 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

QNA

L1
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVMK HAR
CVM MINI
CVM NRG 96
CVM SP
POWERNET
QNA

Instantaneous
L2

L3

DVI2
X
X
O
X
O
X
X
X
X

DVI3
X
X
O
X
O
X
X
X
X

X
X

X
X

DVI1
X
X
O
X
O
X
X
X
X
X
X
X

L1

Voltage distortion
Maximums
L2

L3

L1

Minimums
L2

L3

DVMX1
X
X

DVMX2
X
X

DVMX3
X
X

DVMN1
X
X

DVMN2
X
X

DVMN3
X
X

X
X
X
X

X
X

X
X

X
X

X
X

X
X
X
X

Instantaneous

Distortion in neutral voltage


Maximums

Minimums

DVNMX

DVNMN

DVNI
X

CVM K2

Voltage distortion upper percentile [95%]


All registries

QNA

L1
DV1SUPT

L2
DV2SUPT

L3
DV3SUPT

III
DVSUPT

L1
DV1SUPV

Valid registries
L2
L3
DV2SUPV
DV3SUPV
O

III
DVSUPV

Current
Instantaneous
L2
L3

L1
CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVMK HAR
CVM MINI
CVM NRG 96
CVM SP
MK D
POWERNET
QNA

AI1
X
X
X
X
X
X
X
X
X
X
X
X
X
O

CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2

III

L1
AMX1

AMX2

AMX3

X
X

X
X

Minimum
L2
L3

III

L1

AMX

AMN1

AMN2

AMN3

X
X

X
X

X
X

X
X

X
X
X

X
X

X
X

AI2
X
X
X
X
X
X
X
X
X
X

AI3
X
X
X
X
X
X
X
X
X
X

AI

X
X

X
X

X
X

X
O

X
O

X
X
X
X
X

Instantaneous
ANI
O
O
O
O
O
X

Current
Maximum
L2
L3

III
AMN

Neutral current
Maximum

Minimum

ANMX
O
O

ANMN
O
O

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 96 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

CVM MINI
CVM NRG 96
QNA

X
X
O

X
X

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

X
X

- 97 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

CVM 144

L1
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVMK HAR
CVM MINI
CVM NRG 96
CVM SP
POWERNET
QNA

DVI1
X
X
O
X
O
X
X
X
X
X
X
O

Instantaneous

Leak current
Maximum

Minimum

AELI
O

AELMX
O

AELMN
O

Instantaneous
L2

L3

L1

Current distortion
Maximum
L2

L3

L1

Minimum
L2

L3

DVI2
X
X
O
X
O
X
X
X
X

DVI3
X
X
O
X
O
X
X
X
X

DVMX1
X
X

DVMX2
X
X

DVMX3
X
X

DVMN1
X
X

DVMN2
X
X

DVMN3
X
X

X
X

X
X

X
X

X
O

X
X
X
X

X
X

X
O

X
X
X
X

Instantaneous
CVM K2

DANI
X

Distortion in neutral current


Maximum

Minimum

DANMX

DANMN

Frequency
Maximum

Minimum

HZMX

HZMN

X
X

X
X

X
X
X
X
X

X
X
X

Frequency
Instantaneous
CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM K HAR
CVM MINI
CVM NRG 96
CVM SP
MK D
POWERNET
QNA

HZI
X
X
X
X
X
X
X
X
X
X
X
X
X
X

Frequency absolute minimum


QNA

All records

Valid records

HZMINT
O

HZMINV
O

Frequency lower percentile [5%]


QNA

All records

Valid records

HZINFT
O

HZINFV
O

Frequency upper percentile [95%]


QNA

All records

Valid records

HZSUPT
O

HZSUPV
O

Frequency absolute maximum

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 98 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


All records

Valid records

HZMAXT
O

HZMAXV
O

QNA

Power
L1
CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
POWERNET
QNA

VAI1
X
X
X
X
X
X
X
X
X
X

VAI
X
X
X
X
X
X
X
X
X

Instantaneous
L2
L3

III

Minimum
L2
L3

III

VAMX1

VAMX2

VAMX3

VAMX

VAMN1

VAMN2

VAMN3

VAMN

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X
X
X

X
X
X

X
X
X

X
X
X

X
X
X
X

X
X
X

X
X
X

X
X
X

Apparent power generated


Maximum
L1
L2
L3
III

L1

Minimum
L2
L3

III

NVAI2

NVAI3

NVAI

NVAMX1

NVAMX2

NVAMX3

NVAMX

NVAMN1

NVAMN2

NVAMN3

NVAMN

X
X
X

X
X
X

X
X
X

X
X
X
O

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

III

L1

Minimum
L2
L3

API1
X
X
X
X
X
X
X
X
X
X
X
X
O

L1
CVM K2
CVM MINI
CVM NRG 96
QNA

VAI3
X
X
X
X
X
X
X
X
X

L1

NVAI1

L1
CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
MK D
POWERNET
QNA

VAI2
X
X
X
X
X
X
X
X
X

III

Apparent power consumed


Maximum
L1
L2
L3
III

X
O

L1
CVM K2
CVM MINI
CVM NRG 96
QNA

Instantaneous
L2
L3

Instantaneous
L2
L3

III

API2
X
X
X
X
X
X
X
X
X

API3
X
X
X
X
X
X
X
X
X

API
X
X
X
X
X
X
X
X
X

X
O

X
O

Instantaneous
L2
L3

III

Active power consumed


Maximum
L1
L2
L3

III

APMX1

APMX2

APMX3

APMX

APMN1

APMN2

APMN3

APMN

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X
X
X
X
X

X
X
X

X
X
X

X
X
X

X
X
X
X

X
X
X

X
X
X

X
X
X

III

L1

Active power generated


Maximum
L1
L2
L3

Minimum
L2
L3

III

NAPI1

NAPI2

NAPI3

NAPI

NAPMX1

NAPMX2

NAPMX3

NAPMX

NAPMN1

NAPMN2

NAPMN3

NAPMN

X
X
X
O

X
X
X
O

X
X
X
O

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 99 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

L1
CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
POWERNET
QNA

CPI1
X
X
X
X
X
X
X
X
X
X
X
O

L1
CVM K2
CVM MINI
CVM NRG 96
QNA

CPI2
X
X
X
X
X
X
X
X
X

CPI3
X
X
X
X
X
X
X
X
X

CPI
X
X
X
X
X
X
X
X
X

X
O

X
O

Instantaneous
L2
L3

III

L1

Minimum
L2
L3

III

CPMX1

CPMX2

CPMX3

CPMX

CPMN1

CPMN2

CPMN3

CPMN

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X
X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X
X
X

Capacitive power generated


Maximum
L1
L2
L3
III

L1

Minimum
L2
L3

III

NCPI2

NCPI3

NCPI

NCPMX1

NCPMX2

NCPMX3

NCPMX

NCPMN1

NCPMN2

NCPMN3

NCPMN

X
X
X
O

X
X
X
O

X
X
X
O

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

Instantaneous
L2
L3

III

Inductive power consumed


Maximum
L1
L2
L3
III

L1

IPI2
X
X
X
X
X
X
X
X
X

IPI3
X
X
X
X
X
X
X
X
X

IPI
X
X
X
X
X
X
X
X
X

X
O

X
O

IPI1
X
X
X
X
X
X
X
X
X
X
X
O

L1
CVM K2
CVM MINI
CVM NRG 96
QNA

III

Capacitive power consumed


Maximum
L1
L2
L3
III

NCPI1

L1
CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
POWERNET
QNA

Instantaneous
L2
L3

Instantaneous
L2
L3

III

Minimum
L2
L3

III

IPMX1

IPMX2

IPMX3

IPMX

IPMN1

IPMN2

IPMN3

IPMN

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X
X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X
X
X

Inductive power generated


Maximum
L1
L2
L3
III

L1

Minimum
L2
L3

III

NIPI1

NIPI2

NIPI3

NIPI

NIPMX1

NIPMX2

NIPMX3

NIPMX

NIPMN1

NIPMN2

NIPMN3

NIPMN

X
X
X
O

X
X
X
O

X
X
X
O

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 100 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

L1
CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
POWERNET
QNA

PFI1
X
X
X
X
X
X
X
X
X
X
X
O

L1
CVM K2
CVM MINI
CVM NRG 96
QNA

Minimum
L2
L3

L1

III

PFI2
X
X
X
X
X
X
X
X
X

PFI3
X
X
X
X
X
X
X
X
X

PFI

PFMX1

PFMX2

PFMX3

PFMX

PFMN1

PFMN2

PFMN3

PFMN

X
X
X
X
X
X
X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
O

X
X
X
X
X

X
X
X

X
O

X
X
X
X
X

III

Factor for power generated


Maximum
L1
L2
L3
III

Instantaneous
L2
L3

Minimum
L2
L3

L1

III

NPFI2

NPFI3

NPFI

NPFMX1

NPFMX2

NPFMX3

NPFMX

NPFMN1

NPFMN2

NPFMN3

NPFMN

X
X
X
O

X
X
X
O

X
X
X
O

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

X
X
X

III

L1

Minimum
L2
L3

Instantaneous
L2
L3

III

L1

Cos consumed
Maximum
L2
L3

III

COSI1

COSI2

COSI3

COSI

COSMX1

COSMX2

COSMX3

COSMX

COSMN1

COSMN2

COSMN3

COSMN

X
X
X

X
X
X

X
X
X

III

L1

Minimum
L2
L3

L1
CVM K2
CVM MINI
CVM NRG 96

III

Factor for power consumed


Maximum
L1
L2
L3
III

NPFI1

L1
CVM K2
CVM MINI
CVM NRG 96

Instantaneous
L2
L3

Instantaneous
L2
L3

III

L1

Cos generated
Maximum
L2
L3

III

NCOSI1

NCOSI2

NCOSI3

NCOSI

NCOSMX1

NCOSMX2

NCOSMX3

NCOSMX

NCOSMN1

NCOSMN2

NCOSMN3

NCOSMN

X
X
X

X
X
X

X
X
X

Energy
Apparent energy
CVM K2
CVM MINI
CVM NRG 96

L1

L2

L3

Consumed

Generated

VAE
X
X
X

NVAE
X
X
X

III

Partial

Active energy consumed


Fee

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

Contract x (x:1..3)

- 101 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
EDMK
MK D
POWERNET
QNA

CIRWATT
CVM B/BD
CVM K
CVM K2
CVM MINI
CVM NRG 96
EDMK
QNA

AE1
X

AE
X
X
X
X
X
O
X
X
X
X
X
X
X
O

PAE

L3

III

Partial

NAE1
X

NAE2
X

NAE3
X

NAE
X
O
O
X
X
X
O
O

NPAE

X
X
X
X
O
X
X
X
X
X
X
O

III
NCE

X
X
O
X
X
X
O
O

III

PCE

Fee y (y:1..9)

Total

AET2

AET3

AECxTy
X

AECxTOT
X

Active energy generated


Fee
1
2
3

Contract x (x:1..3)
Fee y (y:1..9)
Total

NAET1

NAET2

NAET3

O
O

O
O

O
O

NAECxTy
X

NAECxTOT
X

Capacitive energy consumed


2nd quadrant (2Q)

Fee

Partial

1
AET1

O
X

L2

CE

CIRWATT
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
EDMK
QNA

AE3
X

L1

III

CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
EDMK
POWERNET
QNA

AE2
X

CET1

CET2

CET3

L1

L2

L3

III

CE2Q1

CE2Q2

CE2Q3

CE2Q

Contract x (x:1..3)
Fee y (y:1..9)
CE2QCxTy
X

Total
CE2QCxTOT
X

Partial
PNCE

Capacitive energy consumed


4th quadrant (4Q)

Fee
1

NCET1

NCET2

NCET3

L1

L2

L3

III

CE4Q1

CE4Q2

CE4Q3

CE4Q

Contract x (x:1..3)
Fee y (y:1..9)
CE4QCxTy
X

Total
CE4QCxTOT
X

Inductive energy consumed


1st quadrant (1Q)

Fee

Partial

L1

L2

L3

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

III

Contract x (x:1..3)
Fee y (y:1..9)

Total

- 102 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


IE

CIRWATT
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
CVM SP
EDMK
POWERNET
QNA

PIE

X
X
X
X
O
X
X
X
X
X
X
O

IET2

IET3

IE1Q1

IE1Q2

IE1Q3

IE1Q

IE1QCxTy
X

IE1QCxTOT
X

III

PNIE

X
X
O
X
X
X
O
O

Inductive energy generated


3rd quadrant (3Q)

Fee

Partial

NIE

CIRWATT
CVM B/BD
CVM BC
CVM K
CVM K2
CVM MINI
CVM NRG 96
EDMK
QNA

IET1

NIET1

NIET2

NIET3

L1

L2

L3

III

IE3Q1

IE3Q2

IE3Q3

IE3Q

Contract x (x:1..3)
Fee y (y:1..9)
IE3QCxTy
X

Total
IE3QCxTOT
X

All energy variables can be discriminated.

Maximum Demand
Maximum demand consumed
Instantaneous
CVM 144
CVM 96
CVM B/BD
CVM BC
CVM K
CVM MINI
CVM NRG 96
CVM SP
POWERNET

L1
MDI1
O
O

L2
MDI2
O
O

L3
MDI3
O
O

III
MDI
O
O

O
O
O
O

O
O

O
O

O
O

Maximum
Fee y (y:1..3)
MDITy

L1

L2

L3

MDMX1

MDMX2

MDMX3

O
O

O
O

O
O

III
MDMX
O
O

O
O
O
O

O
O

O
O

O
O

Fee y (y:1..3)
MDMXTy

Maximum demand generated


Instantaneous
CVM NRG 96

L1
NMDI1
O

L2
NMDI2
O

L3
NMDI3
O

III
NMDI
O

Maximum
Fee y (y:1..3)
NMDITy

L1

L2

L3

III

NMDMX1

NMDMX2

NMDMX3

NMDMX

Fee y (y:1..3)
NMDMXTy

Maximum apparent power demand


Consumed
Instantaneous

Generated
Maximum

Instantaneous

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

Maximum

- 103 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


MDVAI

CVM K2

MDVAMX

NMDVAI

NMDVAMX

X
X
Maximum active power demand

Consumed

Generated

Instantaneous

Maximum

Instantaneous

Maximum

MDAPI

MDAPMX

NMDAPI

NMDAPMX

CVM K2

Maximum current demand


Instantaneous
L1
MDAI1
X

CVM K2

L2
MDAI2
X

Maximum

L3
MDAI3
X

III
MDAI
X

L1
MDAMX1
X

L2
MDAMX2
X

L3
MDAMX3
X

III
MDAMX
X

All maximum variables can be discriminated.

Harmonics
Voltage harmonics
L1

L2

x:1..15
x:16..50
ARMxV1

x:1..15
x:16..50
ARMxV2

CVM K2
CVM K HAR
CVM MINI
CVM NRG 96
QNA

X
X
X
X
O

X
X

X
X

X
X
X
X
O

L3
x:1..15
x:16..50
ARMxV3
X
X
X
X
O

Neutral
x:1..15
x:16..50
ARMxVN
X

X
X

Current harmonics
L1
x:1..15

L2

x:16..31

x:32..50

x:1..15

ARMxA1
CVM 144
CVM 96
CVM K2
CVM K HAR
CVM MINI
CVM NRG 96
QNA

O
O
X
X
X
X
O

x:16..31

L3
x:32..50

x:1..15

ARMxA2

O
X
X

X
X

O
O
X
X
X
X
O

x:16..31

Neutral
x:32..50

x:1..15

ARMxA3

O
X
X

X
X

O
O
X
X
X
X
O

x:16..31

O
X
X

X
X

L1
ARMyMXCV1 (y:1..50)

Maximum voltage harmonics (3 sec.)


L2
ARMyMXCV2 (y:1..50)

L3
ARMyMXCV3 (y:1..50)

L1
ARMyMXPV1 (y:1..50)

Maximum voltage harmonics (10 min.)


L2
ARMyMXPV2 (y:1..50)

L3
ARMyMXPV3 (y:1..50)

L1
PST1

Pst
L2
PST2

L3
PST3

QNA

QNA

x:32..50

ARMxAN

Pst / Plt

QNA

Pst upper percentile [95%]


L1
PST1SUPT

All registers
L2
PST2SUPT

L3
PST3SUPT

L1
PST1SUPV

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

Valid registers
L2
PST2SUPV

L3
PST3SUPV

- 104 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

QNA

L1
PST1DIx

Pst Input x (x:1.0.20)


L2
PST2DIx

L3
PST3DIx

L1
PLT1

Plt
L2
PLT2

L3
PLT3

QNA

QNA

Plt upper percentile [95%]


L1
PLT1SUPT

All registers
L2
PLT2SUPT

L3
PLT3SUPT

L1
PLT1SUPV

Valid registers
L2
PLT2SUPV

L3
PLT3SUPV

QNA

Inputs and Outputs


Digital Inputs
x:4..18

x:1..4

x:19..24

x:25..50

X
X
X

X
X

DIx

CVM 144
CVM R8
LM 24
LM50
TCP50 ALARM

O
O
X
X
X

x:1..1

CVM 144
CVM R8
CVM MINI

O
O
X

O
X
X
X

Instantaneous
x:2..3
AIIx
O
O

x:4..8

x:1..1

O
O
X

Analogue Inputs
Maximum
x:2..3
AIMXx
O
O

x:4..8

x:1..1

O
O
X

Minimum
x:2..3
AIMNx
O
O

x:4..8

The analogue input in the CVM-MINI devices corresponds to the temperature variable measured by this type of
devices.
Digital Outputs

CIRWATT
CVM 144
CVM 96
CVM BC
CVM R8
CVM MINI
CVM NRG96
CVM SP
EDMK
MK D
QNA

1
DO1
X
O
O
O
O
X
X
O
O
X
O

2
DO2
X
O
O
O
O
X

3
DO3
X

4
DO4
X

x:5..18

x:19..20
DOx

O
O
O

The digital outputs can be forced to 0 (output remains open) or to 1 (output closes)

Counters
Counter

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 105 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14


x:1..24

x:25..50
Cx

LM 24
LM50

X
X

The counter value for the LM50 devices can be forced between 0 and the maximum value permitted by
the device. See the device manual for a deeper understanding of this maximum value.
All counter variables can be discriminated.

Special Device Variables


C-14d

C-14d

Current

Current
distortion

Cos

Active quadrant

Active alarm

AI
X

DAI
X

COSI
X

QUADRANT
X

ALARM
X

Active quadrant
Energy consumed
Energy consumed: Capacitive system
Energy consumed: Inductive system
Energy generated
Energy generated: Capacitive system
Energy generated: Inductive system

Value
0
1
2
4
5
6

Active alarm
None
Compensation alarm (-CE)
Surge alarm (-AE)
Distortion alarm (-dE)
Setup error alarm
Expansion setter communication alarm
Reference voltage error alarm

Value
0
1
2
3
4
5
6

Digital alarm output


Not activated
Activated

Value
0
1

Alarm
DO0
X

Digital output
x:1..14
DOx
X

CBS-4
Differential current
Instantaneous
Detected

CBS-4

AELIx
X

Status
Of the Protection

Of the Channel
Channel x (x:1.0.4
AELDx
STx
X
X

Channel status
Not set off
Exceeded the differential current
Toroidal error

DOx
X

Pre-alarm relay
DO0
X

Value
0
1
2

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 106 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

Not activated
Activated

Protection status

Value
0
1

Pre-alarm relay status


Not activated
Activated

Value
0
1

In the CBS-4 devices, the channel can be reset by forcing the RSTx variable to 0 or by remotely setting
off the channel forcing the variable to 1.

CBS-8, CDR-8
Differential current
Instantaneous
Detected
AELIx
X
X

CBS-8
CDR-8

Status
Pre-alarm relay

Of the output
Channel x (x:1..8)
AELDx
STx
X
X
X
X

Pre-alarm relay

DOx
X
X

Output channel status


Not set off
Exceeded the differential current
Output set off
Output locked

Value
0
1
2
3

Pre-alarm relay status


Not activated
Activated

Value
0
1

DO0
X
X

In the CBS-8 and CDR-8 devices, channel x can be reset by forcing the state variable (STx) to 16.
It is also possible to remotely set off channel x by forcing the RFCx variable to 1 to activate the remote
fire or 0 to deactivate it.

CVM-K2
The specific values for the CVM-K2 devices are shown below; the common variables such as voltage and
current have been included in the corresponding variable tables.
Coefficient Kd
Instantaneous
KDVI
X

CVM K2

Voltage
Maximum
KDVMX

Minimum
KDVMN

Instantaneous
KDAI
X

Current
Maximum
KDAMX

Minimum
KDAMN

Current
Maximum
KAAMX

Minimum
KAAMN

Coefficient Kd
Instantaneous
KAVI
X

CVM K2

Voltage
Maximum
KAVMX

Minimum
KAVMN

Instantaneous
KAAI
X

DH-96

DH-96 CPM

Inst.
VI
X

Voltage
Max.
VMX
X

Min.
VMN
X

Inst.
AI
X

Current
Max.
AMX
X

Min.
AMN
X

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

Inst.
API
X

Active power
Max.
APMX
X

Min.
APMN
X

Active
energy
AE
X

- 107 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

DH-96 AC
DH-96 CT
DH-96 DC
DH-96 FT
DH-96 SG
DH-96 TMP
DH-96 WG

Measurement
ME
X

Peak
PK
X

Valley
VL
X

X
X
X
X
X

X
X
X
X
X

X
X
X
X
X

Counter
C1

Flow
F1

QNA
The specific values for the QNA devices are shown below; the common variables such as voltage and
current have been included in the corresponding variable tables.

QNA

Short circuit
L2
ALEVEI2
X

L1
ALEVEI1
X

L3
ALEVEI3
X

Events alarm
Hole
L2
ALEVES2
X

L1
ALEVES1
X

L3
ALEVES3
X

Power surge
L2
ALEVEO2
X

L1
ALEVEO1
X

L3
ALEVEO3
X

The event alarms variables will activate (1 value) when any event occurs in the QNA and will remain active for 5
seconds. After 5 seconds, if no new events have occurred, the alarm will deactivate (0 value).
Voltage phasor
L1-L2
FDV12
O

QNA

L1-L3
FDV13
O

Voltage-current phasor
L2
FDVI2
O

L1
FDVI1
O

L3
FDVI3
O

Counter for number of 10 cycle blocks


With EVQ
L2
STCBE2
X

QNA

L1
STCBE1
X

L3
STCBE3
X

L1
STCVB1
X

QNA

Counter integrations of 150 cycles


For all the STD parameters except voltage
L1
L2
L3
L1
STCIS1
STCIS2
STCIS3
STCIV1
X
X
X
X

With voltage outside of limits


L2
STCVB2
X

L3
STCVB3
X

For voltage
L2
STCIV2
X

L3
STCIV3
X

Coefficient Kd
Voltage
KDV
O

QNA

Coefficient Ka
Current
KDA
O

Voltage
KAV
O

Current
KAA
O

Out of balance upper percentile [95%]


All registries
UBSUPT
O

QNA

QNA

QNA

Total No. of
registries

Registries
without
events

NREGTOT

Valid registries
UBSUPV
O
Counters of Values

Frequency

Frequency
without
events

Plt

NREGEVQ

CVHZ

CVHZEVQ

L1
HEVQ1
X

Plt without events


L1

L2

L3

CVPLT

CVPLT1EVQ

CVPLT2EVQ

CVPLT3EVQ

Events history
L2
HEVQ2
X

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

L3
HEVQ3
X

- 108 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

RGU-10 / RGU-10 RA
Effective value

RGU-10
RGU-10 RA

Leak current

Set off leak current

AELI
X
X

AELD
X
X

For pre-alarm set


off

For locking
DO0

Status
For setting off the
coil
DO1
X

For the device


ST

No. of reconnections
Differential

RGU-10 RA

Partial
RCPD
X

Magnetothermic
Total
RCTD
X

Output status that set off the pre-alarm


Not activated
Activated
Output status for locking

Partial
RCPM
X

Total
RCTM
X

Value
0
1

Not locked
Locked

Value
0
1

Output status that set off the coil


Not set off
Set off

Value
0
1

Device status
Start
Rest
Block differential set off
Wait for differential set off
Block magnetothermic set off
Wait for magnetothermic set off
Disconnect toroidal
External input activated
Remotely set off
Test set off
Fabrication mode
Calibration mode

Value
0
1
2
3
4
5
6
7
8
9
10
11

To reset a channel in the RGU-10 devices, the user must force the RST variable to 0.
To remotely set off the channel, the user must force the RST variable to 1.

RRM-C
RRM-C

Counter of reconnections
RC
X

No. of reconnections selected


RN
X

Device status
Disconnected
Connected
Blocked
External set off
Magnetothermic set off
Set off by communications
External and communications set off

Time between reconnections


RT
X

Device status
ST
X

Value
65535
0
1
2
4
8
10

For the RRM-C devices, the device status can be forced to 16 to reset it or to 17 to force an external
device set off.

Special Graphs and Tables Variables

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

- 109 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

The special variables for graphs and tables are used to indicate to PowerStudio that the user desires to
make a non-standard graph or table. In a non-standard graph or table, the values shown on the X-axis and Yaxis, table rows and columns, can change from one type to another, depending on the variables represented. For
a better understanding of these graphs and tables refer to the corresponding section in the Java client.
When the user wishes to make special graphs and tables such as a wave form or harmonics, the
following variables must be used.
Wave form
Voltage
L2
FOV2
O

L1
FOV1
O

QNA

L3
FOV3
O

Current
L2
FOA2
O

L1
FOA1
O

L3
FOA3
O

Harmonics
Voltage

Current

L1
ARMV1

L2
ARMV2

L3
ARMV3

Neutral
ARMVN

X
X
X
X
O

X
X
X
X
O

X
X
X
X
O

CVM 144
CVM 96
CVM K2
CVM K HAR
CVM MINI
CVM NRG 96
QNA

QNA

QNA

L1
ARMA1
O
O
X
X
X
X
O

L2
ARMA2
O
O
X
X
X
X
O

L3
ARMA3
O
O
X
X
X
X
O

Neutral
ARMVN

L1
ARMMXCV1

Maximum voltage harmonics (3 sec.)


L2
ARMMXCV2

L3
ARMMXCV3

L1
ARMMXPV1

Maximum voltage harmonics (10 min.)


L2
ARMMXPV2

L3
ARMMXPV3

Events
L1
DEVQ1
X

QNA

Duration
L2
DEVQ2
X

L3
DEVQ3
X

L1
VEVQ1
X

Effective voltage of semi-cycle


L2
VEVQ2
X

L3
VEVQ3
X

Status of the devices


On occasion it is necessary to know the status of a device; the user wishes to activate an event when a
device is no longer communicating for example. To know the status, use the STATUS variable.
name.STATUS
The possible values that this status variable can have are given below:
Device status
The device functions correctly.
The device is not initialized; it has not communicated with the device the first time yet.
The communications port is incorrect or does not exist.
Communication errors occurred with the device.
The type of device specified is not the same as the device the system is trying to communicate with.
The device communicates correctly, but it detects that one of the phases is poorly connected.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

Value
1
4
18
34
66
130

- 110 -

Web: www.circutor.com
VIAL SANT JORDI, S/N

E-mail: central@circutor.es

08232 VILADECAVALLS (BARCELONA)

Tel: (+34) 93 745 29 00

ESPAA / SPAIN

Fax: (+34) 93 745 29 14

The device version is not compatible with the software.

Circutor, S.A. Powerstudio SCADA v2.5 Practical Tutorial

258

- 111 -

Vous aimerez peut-être aussi