Topic: DMD0138 INTEGRAT - Integrate Over Time |
|
The Integrate Over Time (INTEGRAT) instruction is used accumulate the value of the specified input location (this is typically a rate value) at a specified time interval. A typical example where this instruction is used flow meters where the number of rotations of the rotor is counted by a pulse transmitter and converted to volume and flow rate.
The instruction always integrates at a per-second rate, regardless of the Sample Time. The Sample Time changes the interval at which it integrates, and adjusts the amount added accordingly. For example:
Assume Scale Factor is 1 and Input is fixed at 1.
If Sample Time is 10000, then every 10.000 seconds, Integrate Into will add 10 to Integrate Into. If Sample Time is 1000, then every 1.000 second, Integrate Into will add 1 to Integrate Into. If Sample Time is 100, every .0100 milliseconds, Integrate Into will add 0.1 to Integrate Into.
The calculation performed at each Sample Time is: Integrate Into = Integrate Into + (Input * (current Sample Time in seconds) * Scale Factor).
|
|
Parameters:Note: Use the F9 key or click the 'three dot box' at the right edge of the parameter field to open the Default Element Selection Tool (the Element Picker or the Element Browser) or use the Down-Arrow key (Auto-Complete) on any parameter field to see a complete list of the memory locations that are valid for that parameter of the instruction.
Input is the numeric memory location that contains the value to integrate. This can be any readable numeric location.
Sample Time is the amount of time over which the integral value will be calculated while the instruction is enabled. The sample time has a resolution of 1 millisecond. The maximum value is 2,147,483,647 milliseconds. The Sample Time value can be specified in one of two ways:
Scale Factor specifies a scale factor that will be applied during the integral calculation. This can be any constant value or any readable numeric location. Normally this value is calculated based on the time units of the Input, and the desired units of the Integrate Into parameter.
Integrate Into is a memory location to store the integral value. This can be any writable numeric location.
|
|
Status Display:
The yellow triangle in the upper left corner indicates this is a Multi-Scan instruction.
The first input leg (EN) enables and disables the integration process. If this input logic is ON, the instruction will begin integrating. When this input logic is OFF, the instruction will stop integrating, but the Integrate Into value will retain it's current value. If this input logic comes back ON, the instruction will resume the integration process.
The second input leg (RST) is the Reset. If this input logic is ON the instruction will reset the Integrate Into value to 0.0.
|
|
See Also:
DEADBAND - Set Outside Deadband
INTEGRAT - Integrate Over Time
TIMEPROP - Time Proportional Control
|
|
Rung Example:
|
|