CIRCUTOR PowerStudio Series User Manual

Page 105

Advertising
background image

PowerStudio

User Manual 105

beginminute (): Returns the initial minute in the current period of the report

beginhour (): Returns the initial hour in the current period of the report

beginday(): Returns the initial day in the current period of the report

beginmonth(): Returns the initial month in the current period of the report

beginyear(): Returns the initial year in the current period of the report

endsecond(): Returns the final second in the current period of the report

endminute(): Returns the final minute in the current period of the report

endhour(): Returns the final hour in the current period of the report

endday(): Returns the final day in the current period of the report

endmonth(): Returns the final month in the current period of the report

endyear(): Returns the final year in the current period of the report


Both for the expressions and the conditions reference can be made to device variables added

to the system. To make reference to one of these variables its name must be entered between the
square brackets ( "[" and "]"). The name of a device consists of two parts separated by a period (".")
the left side is the name of the device and the right side is the variable code of the device (to consult
variable codes allowed consult the corresponding appendix for each device). Some examples are:

2*[CVM144.VI1]

[CVM K 1.AE]+[CVM K 2.AE]+[CVM K 3.AE]


In some parts of the program it is possible to apply a filter to the variable that is, to see the

value of the filtered variable in accordance with a calendar. This is possible, for example, in reports or
graphs and only in some specific variables, such energy variables.

In order to refer to the filtration of a variable we should indicate to the left of the variable, the

name of filter plus the extension. XDCT " followed by "@"and the type of hour we want to access. For
example, if we have defined a filter with the name "Rate" that contains two types of hours "H1 and H2,"
we can refer to both as follows:

[Tarifa.XDCT@H1:CVMK.AE]

[Tarifa.XDCT@H2:CVMK.AE]


It should be emphasized that after the name of the rate we should always find the ".XDCT,"

extensions followed by "@", the name of the type of hour and the symbol ":". Remember that not all
variables of the devices can be filtered; see the variables code appendix for details on which variables
of each device can be filtered.

In some parts of the program, such as in the reports and the SCADA screens, you can also

refer to variables previously defined in the formula list. Both in the reports and in the SCADA screens
there is a list of expressions each identified by a text that, can be used in controlling formulas or in the
conditional control. So, an expression with the identifier "F1", be used in other expressions:

F1*2.0-1.3

1-sqrt (F1)


It should be emphasized that the identifier of an expression (name of the variable) cannot start

with a numerical digit, although it may contain them.

Finally, in those places where a condition is required, it is possible to use the operators less

than ("<"), greater than (">"), less than or equal to ("<="), greater than or equal to ( ">="), equal to
("=="), different to ("!="), logical "AND" ("&&"), logical "OR" ("||") and logical "NOT" ( "!").

Remember that the comparison operators require the terms to the left and right be numerical,

while the logical operators require expressions to be conditions. Thus, examples of correct conditions
would include:

[CVMK.VI1]>(240-F1)

(F1!=10 && [CVMK.VI3]<=20)

Advertising