Open topic with navigation
The distributed driver status object (Spooling status)
Purpose
You can show the spooling status for a distributed driver station as follows:
- No spooling (the value will be 0)
- Spooling in progress
- Remaining time for current spooling process
How it works
When you have created the analog station object as described below, the object will work as follows:
- When there is no spooling, we receive online values. The Actual Value and Set Point will both be 0.
- When spooling is in progress, the Actual Value will increase from 0 to the Max. value set for the analog object.
- When the Max. value is reached, spooling is over and the Actual value will fall back to 0
- When spooling, the Set point atom will hold an estimate of the number of seconds left before the spooling is over. If required, time remaining can be displayed as HH:DD:MM.
Example
You can show the spooling status in various ways. The Alternative 1 example shows the spooling status in % in a progress bar.
Alternative 1: Show the spooling status in %
- In the Objects menu, select Standard Descriptors, then Progress Control.
- Create an analog object named
[Station Name]_SPOOL.
Example: OP1_SPOOL
Show picture
- On the Edit Mapping tab, select the Actual value, Set point and High Alarm atoms. Clear the remaining atoms, they are not used. Set the I/O mode of the three atoms to Local.
- If you want to generate an alarm, when spooling starts, do the following:
- Select the High Alarm atom.
- Create a new alarm text named "Spooling started".
Show picture
- Go to the Analog tab. Set the High Alarm value to 0. When spooling is running, the value will increase from 1 to the max. value. A value different from 0 will thus generate the Spooling started alarm.
- Leave the default values for Actual Value and Set Point.
- To show the spooling progress in %, set the Max. value to 100 and the Min. value to 0.
Show picture
- Click OK and position the text and graphics on the diagram.
Please note that time estimates higher than 100 seconds will get truncated to 100, because the Max. value is 100.
Alternative 2: Show the remaining spool time in HH:MM:SS
- Follow steps 1 - 6 in the previous procedure.
- On the Analog tab, set the Max. value to 100000.
If you need to handle spooling times longer than a full day, set the value higher than 100000.
Show picture
- On the Display tab, clear the Enable check box under State/Value. It does not make sense to show a value between 0 - 100000 for the progress bar.
- Click OK.
- To show the remaining time in HH:MM:SS, create a new unreferenced analog object and name it
SPOOL_REMAINING.
- Using the Calculation feature, we can now convert the value in seconds to the format HH:MM:SS. First, we enable the three atoms to be used on the Edit Mapping tab: Actual Value, Set Point, Low Limit.Clear the remaining atoms.
Show picture
- On the Analog tab, clear the check box for Low Limit. We use the atom for a calculation and thus do not need an alarm.
- On the Calculation tab, create these three calculations:
- Select Actual Value for showing hours (HH). Insert this calculation syntax:
Setpoint('OP1_SPOOL') DIV 3600
- Select Set Point for showing minutes (MM). Insert this syntax.
Setpoint('OP1_SPOOL') DIV 3600
- Select Low Limit for showing seconds (SS). Insert this syntax.
(Setpoint('OP1_SPOOL')- Value('SPOOL_REMAINING')*3600) - Setpoint('SPOOL_REMAINING')*60
Show picture
- Click OK to save the object.
- Create three text descriptors referring to the object, where each refers to the Actual Value, Set Point and Low Limit, respectively.
Show picture
- Click OK.
- Install the configuration and test the functionality in Supervise.
Open topic with navigation