FLProg

Visual programming for not programmers

Яндекс.Метрика
Main block for menu


The block serves as a constructor to create a single-level or multi-level menu in the project. Configured block using the block editor.


Section "Settings" block editor contains four tabs:
"Menu tree"
"Control of menu"
"Control of value"
"Outputs"

1. Tab "Menu Tree" needs for create a main list of menu items. The left side is directly to the tree menu and buttons control of position menu items.


1.1. Buttons control of position menu items.

1.1.1. ' Move up menu item ' – For move selected menu item up in the node limits.


1.1.2 ' Move down menu item ' – For move selected menu item down in the node limits.


1.1.3 "Move item" - For move the highlighted item from one node to another.


1.1.4 "Delete menu item" – deletes the selected menu item.


1.2. In the right part of the tab "Menu Tree" shows the settings of the selected menu item. For each menu type has its own set of parameters.

1.2.1. Settings main menu item.


1.2.1.1. The field "Name of menu" enter a name for the whole menu
1.2.1.2. The button "Add new menu item" menu item is used to create a new menu item within the main menu.


1.2.2. Settings for other menu items.
The upper part of the settings are the same for all types of items.


1.2.2.1. "Menu item name" - enter name menu.

1.2.2.2. "Additional line" - the creation of extra strings attached to the menu item. When you create those strings in the block outputs appear (and this case, "AStr1" and "AStr2"), which are given values this strings. If a menu item is the string value not specified, when the menu selection of this item on the corresponding output will be displayed an empty string. Not specified lines appear slanted text "Not defined".


1.2.2.3. "Group of parametrs" - selecting this check-box menu item is converted to a group. The group item doesn't value, but you can add other menu items, including group. If you clear this check box, the menu item is once again becoming normal.
1.2.2.4. "Input for direct going to the menu" - selecting this check-box, the block appears, the input at the rising edge of the pulse, which go directly to this menu item. The input name corresponds to the index of the menu item in the menu tree.


1.2.2.5. "Output activity menu item" - If you select this check-box the block output appears on which you activity this menu item appears high logical level. The name of the output corresponds to the index of the menu item in the menu tree.

1.2.3. The lower part of the settings varies depending on the type of menu item.

1.2.3.1. Group menu item


1.2.3.1.1. "String of output "Val" " " text string that will appear on the output "Val" when activity of this menu item.
1.2.3.1.2. Button "Add submenu" is used to add a new menu item in the child group of this item.

1.2.3.2. Regular menu items (with a value).


1.2.3.2.1. Common to all types of menu items


1.2.3.2.1.1. "Type of the variable" - select the type of data in this menu item.
1.2.3.2.1.2. "Save in EEPROM" - on selecting this check-box value menu item will be stored in non-volatile memory.

1.2.3.2.2. For data types Integer, Long Integer, Unsigned long integer, Byte


1.2.3.2.2.1. "Conversion type" - Selection in which the form is submitted the value of the item on the output "Val" block.
1.2.3.2.2.2. "Max." - Specify the maximum value for this menu item. If you clear this check-box the maximum value is missing.
1.2.3.2.2.3. "Min." - Specify the minimum value for this menu item. If you clear this check-box is a minimum value is missing.
1.2.3.2.2.4. "Step" - Setting step changes the value

1.2.3.2.3. For the data type Float.


1.2.3.2.3.1. "The number of digits after the decimal point" - Select the number of decimal places when outputting values to the output "Val" block.
1.2.3.2.3.2. "Max." - Specify the maximum value for this menu item. If you clear this check-box the maximum value is missing.
1.2.3.2.2.3. "Min." - Specify the minimum value for this menu item. If you clear this check-box is a minimum value is missing.
1.2.3.2.3.4. "Step" - Setting step changes the value

1.2.3.2.4. For the Boolean data type


1.2.3.2.4.1. "Conversion type" - Selection in which the form is submitted the value of the item on the output "Val" block.
1.2.3.2.4. 2. "Text for "True" " - Text to the output of the "Val" when the value of the menu item to True if the selected format conversion "Your text"
1.2.3.2.4. 3. "Text for "False" " - Text to the output of the "Val" when the value of the menu item to False if the selected format conversion "Your text"

1.2.3.2.5. For the Char data type


1.2.3.2.5.1. "Conversion type" - Selection in which the form is submitted the value of the item on the output "Val" block.

2. Tab "Control of menu"


2.1. "Input "Reset"" - On selecting this check-box in the block will added the input "Reset". The rising edge of a pulse on this input menu moves to the first item on the main menu.
2.2. "Inputs "Menu up"/"Menu down" - If you select this check-box in the block will added the inputs "MU" and "MD". On the rising edge of the pulse at the input 'MU' menu will move to previous item within its parent. On the rising edge of the pulse at the input 'MD' menu will move to the next item within its parent.
2.3. "Switch the menu items around the ring" - if you select this check-box to move around the menu items will be made to ring. Upon reaching the first menu item within their parent will be passed on latter. And Vice versa. If you clear this check-box upon reaching the end of menu items within their parent navigate through the menu options in this direction will be stopped.
2.4. "Inputs "Enter to menu"/"Exit from menu" - If you select this check-box in the block will added the inputs "ETM" and "ExTM". The activity of the group menu item at the rising edge of the pulse at input "ETM" menu will move to the first child item in the group menu item. In the absence of the group of the menu item child items no action will not be performed. The activity of any menu item at the rising edge at the input "ExTM" will be passed to the parent of the active menu item. If the parent item is the main menu - no action will not be performed.
2.5. "Reset on the menu on rising edge at the input "En"" - on selecting this check-box each time you log in (rising edge at the input "En") menu will be set to the first item on the main menu. If you clear this check-box with each new entry in the menu, it will remain in the position where you left in the last activation.

3. Tab "Control of value"


3.1. "Inputs "Value+"/"Value -"" - on selecting this check-box of the block displays inputs "V+" and "V". The rising edge at the input 'V+' value of the active menu item changes specified in the properties menu step upward. If the properties menu item is set to the maximum value, when this value is reached, the change stops. The rising edge at the input 'V' value of the active menu item changes specified in the properties menu step downward. If the properties menu item is set to the minimum value, when this value is reached, the change stops. If the active group menu item, no action occurs. There are three modes of changing the value.

3.1.1. "One step at each impulse" - the value of the menu item will change by one step each time the cutting edge on the inputs "V+" or "V".
3.1.2. "With the acceleration" – rising edge at the input "V+" or "V" value will change one step. But if you maintain a high level of input within the time specified in the field "Start time of the acceleration" values will automatically change in the same direction one step with the period specified in the "Update period value" until then, until you removed the high level from the input.
3.1.3. "Double acceleration" – rising edge at the input "V+" or "V" value will change one step. But if you maintain a high level of input within the time specified in the field "Start time of the acceleration" values will automatically change in the same direction one step with the period specified in the "Update period value". If you continue to maintain a high level through time (considered from the moment of the leading edge at the input) is specified in the field "Start time of the second acceleration" period of changing values will be changed to specified in the "Update period value on the second level." Values will change until then, until you removed the high level from the input.

3.2. "Inputs direct input of numbers" - If you select this check-box on the block will added inputs for direct input of numbers (B0 ... B9). During the transition to the non-group menu item front impulse on any of these inputs converts the value of the item in edit mode and immediately enters a character corresponding to the input (0 ... 9). The subsequent front edges on these inputs add the corresponding symbols to the typed value.
3.3. "Input ", "" - on selecting this check-box in addition to the digital inputs on the block will added input ".". The front impulse of this input adds a "." character to the typed value. Works only with menu items of type Float.
3.4. "Input "-"" - on selecting this check-box in addition to the digital inputs on the block will added the input "-". The front impulse of this input adds a "-" symbol at the beginning of the dialed value. If this symbol was already present in the beginning of the value it will be removed.
3.5. "Input "Backspase"" - on selecting this check-box in addition to the digital inputs on the block will added input "<". The front impulse of this input delete the last character typed.

4. Tab "Outputs"


4.1. "Output "Active group menu " - on selecting this check-box in the block will be added output "AG". When activity group menu item on the output exhibited a high logic level.
4.2. "Output "Active the main menu"" - on selecting this check-box in the block will be added output "AMM". The activity of any menu item being directly subsidiary to the main menu on the output exhibited a high logic level.
4.3. "Output "Name of the parent menu" - on selecting this check-box in the block will be added output "NPM". It shows the name of the menu item that is the parent of the currently active item.

Constant inputs and outputs of the block.

Input "En" - Input the activity menu. When a low logic level on this input, the unit does not respond to the state of the inputs and the digital outputs of the unit set low logic level, and strings outputs an empty string. At a high level on this input the block operates in normal mode.
Output "Name" - On this output displays the name of the currently active menu item.
Output "ValStr" - On this output displays the value not the group menu item in accordance with specified settings for he conversion. If the active group menu item – this outputs displays that is written in the "String of output "Val"" options for this item.