Skip to main content

Sección: Trend

SEC tre.Trend                                          //optional: yes, modifier: [UPDATE]
    SEC TrendRecording : <CFC trend identifier>        //optional: yes, modifier: [UPDATE]
            Task := <trend task>                           //optional: yes, type: TimeLiteral
            CycleTime := <time value>                      //optional: yes, type: TimeLiteral
            LimitType := <limit type>                      //optional: yes, type: FileLimitType
            LimitMaximum := <max bytes>                    //optional: yes, type: Literal
            RecordCondition                                //optional: yes, type: InstanceAccess
            SEC Visu                                       //optional: yes, modifier: [UPDATE]
                    VisuPlaceholder                            //optional: yes, type: StringLiteral
                    VisuTemplate := <visu template>            //optional: yes, type: StringLiteral
                    Target := <path module instance            //optional: yes, type: StringLiteral
            END_SEC
    END_SEC

    SEC TrendVariable : <variable identifier>          //optional: yes, modifier: [UPDATE]
            Variable := <variable name>                    //optional: yes, type: InstanceAccess
            TrendRecording := <recording name>             //optional: no, type: : Id)
            Description := <tooltip>                       //optional: yes, type: TextRef
            Color := <graph color>                         //optional: yes, type: Literal
            GraphType := <graph type>                      //optional: yes, type: GraphType
            LineWidth := <width>                           //optional: yes, type: Literal
            LineStyle := <line style>                      //optional: yes, type: LineStyle
            SEC Warning  : MIN/MAX                         //optional: yes, modifier: [UPDATE]
                    Limit := <limit value>                     //optional: no, type: Literal
                    Color := <limit color>                     //optional: yes, type: Literal
    END_SEC
    END_SEC
END_SEC

Los detalles sobre la sintaxis de los tipos de definición se describen en la sección Declaración del módulo.

. Especificación:
  • Task: Define la tarea para el registro de tendencia. Si no se define ninguna tarea, se utilizará la tarea creada automáticamente por visu trend.

  • CycleTime: Tiempo de ciclo del registro de tendencia

  • LimitType: Tipo de limitación de la tendencia registrada.

  • LimitMaximum: Tamaño máximo del registro de tendencias en KB (solo con LimitType ==Límite de archivos).

  • RecordCondition: Condición de grabación. La variable referenciada debe ser de tipo BOOL.

  • VisuPlaceholder: marcador de posición, reemplazado por la visualización de tendencia generada.

  • VisuTemplate: Plantilla para la visu a crear. La plantilla debe tener un marcador de posición. Trend_Placeholder. Puede contener controles con el siguiente identificador:

    • TrendLegend -> tipo: Leyenda

    • TrendTimeRangeSelector -> tipo: Selector de rango de tiempo

    • TrendDateRangeSelector -> Tipo: Selector de intervalo de fechas

  • Target: ruta relativa a la instancia del módulo, en la que se incrustará la visualización.

  • Variable: Variable a registrar.

  • TrendRecording: objeto TrendRecording al que pertenece la variable.

  • Description: entrada de lista de texto, que se mostrará para la variable como información sobre herramientas.

  • Color: Colores de la gráfica de la variable como código de color ARGB

  • GraphType: Tipo de gráfico

    • LineWithPoints: Líneas con puntos

    • Cross: cruces

    • StepWithPoints: Pasos con puntos

    • Point: Puntos

    • Lines: Líneas

    • Step: Pasos

    • LinesWithCrosses: Líneas con cruces

    • \\ StepWithCrosses: Pasos con cruces

  • LineWidth: Ancho de la línea dibujada. Rango de valores: 1 a 255.

  • LineStyle: estilo de línea

    • Solid: Sólido

    • Dashed: punteado

    • Dotted: Punteado

    • DashDotted: Guión punteado

    • DashDotDotted: Guión punto punto

  • Warning: Esta subsección debe tener el destino MAX o MIN. Según el objetivo, el exceso o el defecto activarán la advertencia.

    • Limit: Comienzo del rango crítico.

    • Color: Color para el rango crítico como código de color ARGB

ejemplo 24. Ejemplo
SEC tre.Trend
        SEC TrendRecording : TrendSensor
                SEC Visu
                        VisuPlaceholder := 'TrendPlaceholder_TrendSensor';
                        VisuTemplate := 'AC_Trend.GenTrend_VisuTemplate';
                END_SEC
                CycleTime := t#5s;
                LimitType := Records;
                LimitMaximum := 452;
        END_SEC
        SEC TrendVariable : Value
                Variable := value;
                TrendRecording := TrendSensor;
                Color := 16#FF00FF00;
                SEC Warning : MIN
                        Limit := -5;
                        Color := 16#FF101020;
                END_SEC
                GraphType := LinesWithCrosses;
                LineWidth := 3;
        END_SEC
END_SEC