Está en la página 1de 14

Configuración View SE utilizar FactoryTalk

VantagePoint ActiveX tendencia


Visión general
FactoryTalk VantagePoint proporciona agregación de datos ricos y capacidades analíticas que incluyen un mejor en la solicitud de tendencia clase que es

capaz de datos de tendencias a partir de numerosas fuentes de datos Rockwell así como varios 3 rd aplicaciones de otros fabricantes. La aplicación es un

cliente de tendencia a la aplicación de servidor FactoryTalk VantagePoint, y está disponible como un ejecutable “No Touch” que se pueden ejecutar desde

máquinas de escritorio de Windows, un control de .Net que pueden alojarse en las páginas web y se puede acceder a través del Portal VantagePoint o

como un control ActiveX que se puede alojar en recipientes tales como ActiveX View sE.

Si bien es técnicamente posible para acoger la tendencia VantagePoint en un control ActiveX de Internet Explorer, el rendimiento de este tipo es

mucho más lento que usando el ActiveX como se describe en este documento.

Instalación de las herramientas de cliente de FactoryTalk VantagePoint


Con el fin de hacer que el control ActiveX VantagePoint tendencia a disposición del servidor View SE (o cualquier otro contenedor ActiveX),

tiene que ser desplegados en el equipo de destino. Esto se logra mediante la instalación de las herramientas de cliente FactoryTalk

VantagePoint en la máquina previsto. En el caso de esta View SE es cualquier máquina cliente HMI donde va a utilizar el control ActiveX.

Para realizar el FactoryTalk VantagePoint instalación de cliente abierto a Internet Explorer y vaya a su portal de VantagePoint. Haga clic en el " Herramientas"

menú y luego seleccione “Instalar clientes” como se muestra en la imagen de abajo.


Al hacer clic en el “Instalar clientes” elemento de menú iniciará la descarga del VantagePointClients .msi.

Haga clic a través de la instalación de la siguiente manera.


La instalación de los clientes VantagePoint no sólo despliega el control ActiveX, que también configura atajos en el menú Inicio en el

servidor de VantagePoint para que el Portal y otros clientes autónomos están disponibles en esta máquina. La instalación también

configura las confianzas necesarias desde el cliente al servidor VantagePoint, y configura la información de registro necesaria con

respecto a la dirección URL al servidor VantagePoint y registro de ActiveX. Por último, si la máquina ha instalado Microsoft Excel en él,

el VantagePoint Excel Addin se añadirá a Excel.


Agregar el control a una pantalla View SE
After the VantagePoint client tools have been installed the ActiveX "Incuity.Ax Trend Control" can be added to your display in
View SE.

Open FactoryTalk View Studio and either create a new display or select an existing display to add the ActiveX to.
Selecting the ActiveX Control
Click on the “Objects” menu item and select “ActiveX Controls” from the drop down list.

Draw a box that represents the area that the new Trend control will be displayed in. When this is complete the “Insert an
ActiveX Control” dialog will appear.

In the dialog that is presented, select " Incuity.Ax Trend Control", click “OK.

Default Display
Clicking the “Test Display” button will show the VantagePoint trend control as seen in the image below. Note that the Model
Browser, and tool bars are not displayed by default. This allows the maximum utilization of HMI screen real estate, but it requires
that tags are added to the trend programmatically using VBA.
The properties that are available to configure through VBA are exposed in the “Property Panel” of the control as shown below.

While the various properties of the IncuityAX TrendControl are exposed in the Property
Panel, changing the values of these properties in this interface will not cause the
properties to persist when new instances of the control are opened in View clients.

Más bien la forma de cambiar las propiedades es hacer una muy simple VBA Scripting. Para hacer que la
tendencia a llegar a todas las diversas interfaces de usuario (barras de herramientas, vistas de árbol, etc.)
las tres propiedades siguientes se deben establecer en "Cierto".

• ShowNSExplorer
• Mostrar la barra de herramientas

• ShowDateTimeCtrl

Ejemplo de uso de VBA para cambiar las propiedades predeterminadas

Este ejemplo utiliza el VBA "Con" la función de aplicar los valores de varias propiedades de un objeto en el mismo comando. El código se

ejecuta como parte de la “Display_Load ()” evento que significa que cada vez que se carga esta pantalla este código se ejecutará

automáticamente.
La siguiente imagen muestra la tendencia de ActiveX con el navegador de modelo (vista de árbol) y la herramienta y barras de tiempo permitido.

Ahora es posible ver algunos de los modelos y de arrastre etiquetas FactoryTalk VantagePoint (u objetos que contienen) etiquetas en la tendencia, como se

muestra a continuación.
Using VantagePoint Trend / XY Plotter ActiveX Controls

The ActiveX Control is a new control provided for Trend and XY Plotter. It is intended for use by containers that cannot use a .Net control. This
extends VantagePoint to allow it to work well with legacy HMI applications and browsers that do not yet have support for .Net Windows Forms
controls. If possible, use the .Net control, because it is a much better solution.

For convenience, the ActiveX Controls are installed when you Install VantagePoint Clients.

This section provides insight into how to use the Trend and XY Plotter ActiveX Controls.

ActiveX Control Properties

Unless otherwise specified, all properties are Read and Write.

Name Type Description

Autoscale Boolean Autoscaled mode: True

= On False = Off

BackColor OLE_COLOR The background color of the graph (like Properties | Graph |
Background Color)

CollapseTagList Boolean Sets the Tag List collapsed or not: True =

Collapsed False = Expanded

ControlType String Either “Trend” or “XYPlotter”

CurrentTagColor OLE_COLOR The color of the active trace

CurrentTagName String The TagName of the currently active trace. In the case of XYPlotter mode, it is
the concatenation of the two TagNames (e.g. “MyEnterprise.MachineSpeed
MyEnterprise.BatchNumber”)

When this property is written, it sets the currently active trace.

Definition String Sets the name of the Trend/XY Definition file to load from the Incuity model

Known Issue: When this property is read, it always returns an empty string

ShowDateTimeCtrl Boolean Visibility of the DateTime Control (Time Bar): True =

Shown False = Hidden

ShowNSExplorer Boolean Visibility of the Namespace Explorer:


Name Type Description

True = Shown False

= Hidden

ShowToolbar Boolean La visibilidad de la barra de

herramientas: = True False = Se

muestra Ocultos

ShowXAxisCursors Verdadero si los cursores del eje Y son visibles

ShowYAxisCursors Verdadero si los cursores del eje X son visibles

Etiquetas Cuerda Lea: Devuelve una lista separada por comas de Elementos con la etiqueta (artículos TagPair para

XYPlotter) que están siendo mostrado una tendencia / trazado. Comentario: Especifica una lista de

Elementos con la etiqueta (artículos TagPair para XYPlotter) para ser cargado, en el mismo formato.

Cuando se escribe, se aceptan varios delimitadores: '', ':', ';' o '-'

notas:

• En el modo de tendencia los nombres son los de Elementos con la etiqueta. En el modo XYPlotter los
nombres son los de productos que TagPair.

• Nombres de elementos que contienen cualquiera de los caracteres utilizados como delimitadores no se
pueden establecer mediante esta propiedad.

Ejemplo:

System.Sources.InSQL.INSQL80.Tags.VectorY, System.Sources.InSQL.
INSQL80.Tags.VectorX,
VectorX, System.Sources.InSQL.INSQL80.Tags. ConcValve

Añade 3 etiquetas de nombre VectorY, VectorX y ConcValve de un INSQL80 llamado


Sistema InSQL.
Nombre Tipo Descripción

Períodos de tiempo Cuerda Lea: Devuelve una lista separada por comas de los períodos de tiempo en uso. Tenga en cuenta

que esta lista no es compatible con una escritura en esta propiedad. Comentario: Especifica una

lista de periodo de tiempo para crear en el cargado actualmente

definición de tendencia. Lista período de tiempo debe ser del siguiente formato: StartTime1,

EndTime1% StartTime2, EndTime2% ...% StartTimeN, a los hombres donde EndTi

Hora de inicio: Cualquier cadena que puede ser analizado por la clase DateTime, o la cadena

literal "artículo", o la cadena literal "Rel".

EndTime: Any string that can be parsed by the DateTime class, or The FQN for a

TimePeriod item, if StartTime is "Item", or A relative time string as understood by

the TimeSeriesRetrievalSpec.ParseRelativeSpec method, if StartTime is "Rel".

The format for Rel is sNNu() where the only permitted values are

s: Direction + means relative to now

NN: Duration duration in the specified units

u: Units s means Seconds m

means Minutes h

means Hours

() anchor time – not implemented;


currently must be just the
brackets.

So a practical example is +10m()

Example:

Rel,+10m()%2006/01/25 10:00,2006/01/25
10:15%Item,MyEnterprise.MLSLast1Min

Adds 3 time periods: A “last 10 minute” timespan, an absolute span from 10:00 to
10:15 on the 26th and a TimePeriod Item named MLSLast1Min.
ActiveX Control Methods

Name Returns Description

AddTag(String tagName) void Adds the tag with the specified name. Must be a TagPair if in XYPlotter mode

AddTimePeriod(VARIANT start, Void Adds a Time Period where:


VARIANT end, VARIANT
• If start is a string, the Trend rules are applied (i.e. “Rel”, “Item” or
refreshData)
absolute time)

o If start is “Rel,” end must be a relative spec as


described below

o If start is “Item,” end must the name of a


Core.TimePeriod item

o Otherwise, start must be a string that is a date, and


is parsed with System.DateTime.Parse() (e.g. 2006/05/12 10:00)

• If start is a VT_DATE then it is an absolute time

• If end is an absolute time then it can be either string or VT_DATE

• If end is a string then it is parsed with


System.DateTime.Parse() too

See the TimePeriods property above for a description of the format to use when
start is “Rel”

• The refreshData parameter is optional. The default for the optional parameter
is to refresh data (i.e. “True”).

BeginUpdate() Void Allow clients to add more than one tag and/or time period without having
to go back to the server to refresh tag data for each individual tag or time
period added.
Example:

AxTrend1.BeginUpdate()

AxTrend1.AddTag(“MyEnterprise.Sine”)

AxTrend1.AddTag(“MyEnterprise.Ramp”)

AxTrend1.AddTimePeriod(“rel”, “+7m()”)

AxTrend1.EndUpdate()

Clear() Void Resets the control

EndUpdate(VARIANT wait) Allow clients to add more than one tag and/or time period without having
to go back to the server to refresh tag data for each individual tag or time
period added. Optional parameter, “wait”, allows clients to wait until all the
data is retrieved. Note that waiting would effectively block the application
until the data retrieval request is finished. The default for this optional
parameter is not to wait (i.e. “False”). See BeginUpdate()

GetTagColor(String OLE_COLOR Returns the color of the specified tag.


Name Returns Description

TagName) For XYPlotter mode, the TagName is a concatenation of the two tags (see
CurrentTagName)

Refresh() Void Refreshes the data

SetTagColor(string TagName, Void Sets the color of the specified tag


OLE_COLOR NewColor)
For XYPlotter mode, the TagName is a concatenation of the two tags (see
CurrentTagName)

ActiveX Control Events

Name Description

TimePeriodChanged Raised by the control when the time period is changed

También podría gustarte