# Thread: Messwerte als Peak

1. User
Join Date
27.11.2014
Posts
14

## Messwerte als Peak

Hallo.

Ich habe eine Frage zum Trend. Eine Trendkurve zu erstellen ist ja relativ einfach. Ich habe aber das Problem, dass Anlagenbedingt die Messwerte nur minimal voneinander abweichen und man daher nicht sieht, wann die Messung stattfand. Ist es möglich, die Messwerte als DOT darzustellen, oder noch besser als PEAK? Dann hätte ich auch eine Anzeige, wann genau die Messung stattfand.

Vielen Dank für die Hilfe.

2. ## Re: Messwerte als Peak

The measured value when received from PLC stays like received until the PLC sends new value. For the particular value the curve is horizontal during period between changes. So the question is: how to make better visible only “steps” on the curve.

My proposal is to place on trend additional vertical belts at the moments of value change. You can do it using an additional, internal variable:

1. create additional, internal variable NEW_VAL, data type BOOL, calculation: Network, initial value 0.

2. create two zenon functions ‘write set value’, linked to NEW_VAL, set value 0 and set value 1, both ‘direct to HW’.

3. by variable NEW_VAL link by limit 1 the function created in (2) setting value 0, eventually with ‘Delay’=1s.

4. Create a reaction matrix – multi-numeric – with one state: value ‘Any’, activated ‘Treat each change of value as new limit violation’, calling function created in (2) – setting value 1

5. link rema (4) to your process variable with measured values.

Now, each time when new measured value comes from PLC the additional variable has – for 1s – the value 1 (and the rest of time value 0).

6. add to trend a curve with variable NEW_VAL --> you will have “peaks”.

Similar solution - with NEW_VAL as numerical (same as process variable), not bool, no rema but allocation:

1. like above but with numerical data type
2. like above but create only one function - set value 0.
3. like above
4. create allocation with source=process variable, destination=NEW_VAL, trigger by edge.
5. -
6. like above

#### Posting Rules

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•