
TSignalCollection, palette SmartSCADA System, unit ObjectSignals.pas
Component represents collection of signals that are used in system. It is used as signal component container. Signal component is invisible. This component has its own editor that enables access to all signal properties for all declared signals.
PROPERTIES
property EnableEditSignals: Boolean; If value of this property is True, user can edit all signals that are defined in this signal collection in run time. Editing is possible, regardless on property EnableEditProperties of any single signal in that collection. Call of runtime edit can be made by using Edit procedure.
property Signals: TStrings; Click on this property shows TsignalsCollection component editor.
METHODS method Edit; Call of this method in run time. On screen run time editor will be shown.
|
|
1.1 Signals editor Double click on this component calls component editor. By using this editor, you create new signals in system and change already defined signals. (design time)
Figure 1. SignalsEditor Define page (design time editor) Component editor has two pages: - Define and - Configure
Define page is used for defining and deleting signals - New - command that creates new signal of chosen type - Paste - creates signals of chosen type by names that are placed in clipboard, (names must be separated by CR). - Delete - deletes selected signal - Clear - deletes all signals from collection. -
Figure 2. SignalsEditor Define page Configure page contents commands for special property editors calling - Link editor - editor for Signal and component Signals properties linking. - Ini editor, - editor for signal and INI component linking. - Alarms editor, - editor for alarm properties setup. - Conversion editor, - editor for conversion properties setup. - Description editor, - editor for quick signal description input.
In this editor, it is possible to change more than one signal property at once. To change more than one signal property, do next: - Select properties (signals) using SHIFT + Arrow(UP-DOWN), - Edit last selected, - When you confirm input, change is assigned to all selected signals.
There is one exception: when names are changing, new names will differ in that way that every signal gets suffix number (to keep unique signal names).
Figure 3. Group signal name editing, page Configure 1.2 Link editor
Figure 4. Link editor (design time editor) Link editor enables quick inspection of linked object as well as quick object linking. On left side of the screen, all object that have properties that can be linked to signals (show on the right side of the screen). Signals can be linked on two ways: - By drag and drop (signal to property – from right to left) - Double click on selected property combo box with adequate signals will be shown.
If it is possible to link more than one signal to one property, that property is marked by three dots (...). Click on this mark, you get new editor for choosing adequate signals. Over both lists, there is one edit field for fast signal finding. Typing characters in this field, signals will be filtered by first characters in their names. Group editing for property SignalName is also allowed.
Figure 5. Signal group selection 1.3 Signal selecting editor
Figure 6. Signal selecting editor (more than one signal selection) (design time editor) This editor will be shown for signal selection for next components: - TAnimatedProcessImage, - TSignalTable, - TSignalGrid, - TSignalListBox, - TSignalComboBox, - TSignalRadioGroup, - TSignalCheckListBox.
On the left side, there are signals that can be used (filtered by name). On the right side there are signals already linked to property.
Edit field in upper left corner (over the list) is used for fast signal finding. Typing characters in this field, signals will be filtered by first characters in their names.
1.4 Ini editor
Figure 7. Ini editor (design time editor) This editor enables linking of signals to ini component (TIniComponent) and setup of ini component behavior. - Button Copy down column copies value of property to all selected (if there are some) or to all signals below selected one. - Button Copy down to all selected copies all selected properties to all selected signals (if there are some) or to all signals below selected one. - It is also possible to select signals, to change last selected. After confirming changes, property will be copied to all selected signals.
Editor has three columns: - IniFile – column with the name of ini file to be used. To link signal, double click to this column and choose ini component from drop down list - IniFileStatus – define behavior of ini reading and writing. Available values are shown in next table
- SaveValueToIni – defines either values will be written to ini file or not.
1.5 Alarm editor
Figure 8. Alarm Editor (design time editor) This editor enables setup of alarm properties. - Button Copy down column copies value of property to all selected (if there are some) or to all signals below selected one. - Button Copy down to all selected, copies all selected properties to all selected signals (if there are some) or to all signals below selected one. - It is also possible to select signals, to change last selected. After confirming changes, property will be copied to all selected signals.
Edit field in upper left corner (over the list) is used for fast signal finding. Typing characters in this field, signals will be filtered by first characters in their names. Drop down list box over filter edit filed can be used for filtering of signals by type.
Grid columns show next signal properties: - LoAlarmEnabled – Low alarm active – enabled (true/false). - LoLimit – Low limit value, alarm is active when EU value becomes lower or equal to this value. - LoAlarmMessage – text that will be shown in alarm message window when Low alarm is occurs. - LoAlarmWave – path to wave file that has to be played when Low alarm occurs - HiAlarmEnabled – High alarm active – enabled (true/false) - HiLimit – High limit value, alarm is active when EU value becomes greater or equal to this value. - HiAlarmMessage – Text that will be shown in alarm message window when Low alarm occurs. - HiAlarmWave – Path to wave file that has to be played when High alarm occurs.
1.6 Convert editor
Figure 9. Convert Editor (design time editor) This editor enables setup of conversion properties of signal. Conversion can be done on signals whose types are: - TFloatSignal - TIntegerSignal
There is an Edit field in upper left corner (over the list) is used for fast signal finding. Typing characters in this field, signals will be filtered by first characters in their names.
- Button Copy down column copies value of property to all selected (if there are some) or to all signals below selected one. - Button Copy down to all selected, copies all selected properties to all selected signals (if there are some) or to all signals below selected one. - It is also possible to select signals, to change last selected. After confirming changes, property will be copied to all selected signals.
Grid columns of editor show next properties of signal conversion: - ConvertStatus – Convert function, explained in chapter about signal types (float and integer). - LowEU – The lowest engineer value of the signal. - HighEU – The Highest engineer value of the signal. - LowRawData – The lowest raw value of the signal. - HighRawData – The Highest raw value of the signal. - EUUnit – EU unit.
1.7 Active editor
Figure 10. Active editor (design time editor) This editor enables easy review and switching of signal active status. Activation or deactivation of signal can be made just by clicking on the check box of signal. Signals with checked check box are active.
1.8 Description editor
Figure 11. Description Editor (design time editor) This editor enables easy editing of signals description. Descriptions of signals can be read in run time using hints or by info dialogs. - Button Copy down column copies value of property to all selected (if there are some) or to all signals below selected one. - Button Copy down to all selected, copies all selected properties to all selected signals (if there are some) or to all signals below selected one. - It is also possible to select signals, to change last selected. After confirming changes, property will be copied to all selected signals.
There is an Edit field in upper left corner (over the list) is used for fast signal finding. Typing characters in this field, signals will be filtered by first characters in their names.
Figure 12. Signal Info dialog (run time dialog) Dialog with signal description can be called with right click on object that is linked to signal. Dialog shows text that is written in description editor.
1.9 Signal collection Run time
Figure 13. run time editor
This editor shows all signals of one signal collection (TSignalCollection) in run time. It shows type, name, and value and alarm status of all signals that belong to corresponding signal collection. |