Thread Content
A beginner learning configuration is asking the experts on the forum: for signals that need to be accumulated, such as traffic volume, why isn’t the accumulation function shown in Figure 1 used, and instead does programming have to be done using the algorithm in Figure 2? I don’t quite understand!
I’m not sure if there are any rewards for replying now; I really don’t want to reply anymore. The functions are all the same, and using modules makes it easier to add additional features.
Firstly, for traffic accumulation, we generally use double-precision floating-point numbers; of course, regularly resetting the flow meter and its configuration also helps to ensure data accuracy. But in most cases, it is necessary to process the flow signals – such as removing small flow values, overcoming disturbances like sudden fluctuations in flow, and addressing control errors related to analog signals. In particular, when adding numbers according to IEC standards, if the values are large, the digits after the decimal point are dropped, which results in inaccurate accumulation of flow data over time. These issues also need to be taken into account in the program; a small functional block similar to one shown in the diagram can be created for repeated use, which makes things more convenient
Well, there is indeed a reset function block later on
In the configuration of Zhejiang University Zhongkong 300 system, Figures 1 and 2 represent two different implementation methods. Figure 1 shows the processing of signals that require accumulation by using an accumulation function. The cumulative function can accumulate the input signal into the output signal to achieve a cumulative effect. However, this approach has some limitations, such as not being suitable for complex algorithms and data processing. Figure 2 shows the use of algorithmic programming to process signals that require accumulation. This approach allows for more flexible signal processing, and can handle more complex algorithms and data processing requirements. Through programming, it is possible to customize the processing logic and algorithms for signals to meet the specific requirements of the system. Therefore, the choice of method for processing signals depends on the specific system requirements and the complexity of the signal processing. For simple cumulative demand, the cumulative function in Figure 1 may be sufficient ; For complex signal processing requirements, the algorithm programming shown in Figure 2 can offer greater functionality and flexibility. .
I see, the explanation is very clear. Thank you! ! !