Thread Content
Dear experts: In 300XP, how can one configure flow accumulation using a graphical interface, and how are variables defined? ?
Cumulative type variables can be defined directly in the program. The cumulative type is a structural type provided by the system, namely structAccum. The definition of this structure is as follows: struct structAccum { sfloat remainder; // fractional part long accum; // integer part int reserved; // reserved field, not to be used } As can be seen from the definition, the accumulation-type variable has three members: remainder, accum, and reserved. The reserved portion is prohibited for users, remainder represents the cumulative decimal part (less than 1), and accum represents the cumulative integer part. When the fractional part exceeds the range [0–1), it is automatically carried to the integer part. Analog accumulation is widely used in engineering. It consists of two parts: sum1 and sum0. Among them, sum1 is 32 bits long and is of the integer type ; sum0 occupies 16 bits; it is of the sfloat type, which is an unsigned 12-bit fixed-point decimal number, with the integer part taking up 4 bits. When the analog value accumulation exceeds the range that sum0 can represent (0–15.999), it automatically carries over to the higher-order sum1. For example, when accum=12.123443, accum.sum0=12.123443 and accum.sum1=0. When accum=34.457638, accum.sum0=2.457638 and accum.sum1=2; since sum1 starts from the 17th position, its value is 2, which actually corresponds to 2×16=32.
In the 300XP graphical configuration, there is a flow accumulation module that can be used directly. You can check the online help for more details
I’ve used the SUPCON 300, and it didn’t seem that great. It’s very simple; it cannot provide complex control functions. Moreover, the upper-level monitoring software is not well-designed; it is based on Windows 95 and prone to freezing.
For the first question, just follow what was said on the 3rd floor! The second question: Global variables are defined in the “Variable Editor” under the “Project” menu ; Input and output variables, as well as private variables, are defined under \"Variable Definition\" in the \"Object\" menu
Some of the functions of Zhejiang University’s Zhongkong system are indeed a bit more complicated to implement compared to other systems