MATHDR32 mathematics drive is too weak?
Now, I have a question about MATHDR32 driver: How can I make an integer (Int) function?
Details:
- My objective :
Now my ZenOn receives a variable X1 (between 0kW - 1000kW) which is changed every second with a decimal 0. That means, even if my power changed from 10kW to 11kW, ZenOn would create a little visual impact to the RT user. Imagine if I have hundred of variables on one screen, this impact would becomes unpleasant.
So, what I want is, 1) I want to keep the refresh time to every second, in order to be alert to the transient; 2) If the value is not changed so much (for example, 25kW a step), ZenOn shows the same value as before to reduce the visual impact.
- What I have tried:
Simply, I thought if there was a Int() function in your MATHDR32 driver, I could do the following:
X2 = Int (X1/25) * 25
So, instead of X1, I can show X2 which is totally according to what I want.
But, the problem is, I find that the MATHDR32 driver is too weak... There are only a few poor functions. It does not support Int() function ! ( even if your Report Generator supports an Int() function )
So, return to my question: How can I manage to make an integer function for a variable, or have I another way to achieve my goal?
This is a migrated post! Originally posted on 24.04.2009 by user lephis. Please be aware that information can be outdated.
Disclaimer
This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.
The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.
Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.
Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.
COPA-DATA reserves the right to change this document from time to time at own discretion.
Ing. Punzenberger COPA-DATA GmbH
Karolingerstraße 7b · 5020 Salzburg · Austria
www.copadata.com