Help

 Content

 Blocks library
   LAD
    Other
     Menu
      Main menu block

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.

 

 


10

Publication author

757
Comments: 15Publics: 388Registration: 04-02-2018

53 thoughts on “Help”

  1. ошибка в описании блока “Блок обнаружения изменения числа”

    “Блок служит для обнаружения изменения числа подаваемого на вход “EN” . При изменении значении на выходе”Q” формируется импульс длительностью в один цикл программы. Для блока возможно задание зоны нечувствительности раздельно для каждого направления изменения числа. Эти параметры задаются в редакторе блока.”

    вместо первого “EN”  должно быть  “Value”

    0
  2. что то не так с массивами.
    скетч использовал данные из той же строки другого массива.  менял названия (ставил не совпадающие цифры), удалял/ ставил блоки – (не копировал а притаскивал новый), проверял / менял настройки. есть 3 разных массива. заполненных.  но берёт почему то  из одного … созданного первым.
    костыль  – использование не повторяющихся номеров строк (индексов) .  (помогает)
    ардуино uno. версия FLP- актуал.

    0
  3. Добрый день. помогите с блоком шаговый мотор. при добавлении второго мотора ( кнопка новый) ничего не происходит.

    0
  4. Здравствуйте ! Спасибо огромное всем кто внес свой вклад в этот проект! Программа сделана интуитивно понятно и за месяц я дошел до коммуникаций но с протоколом Modbus остановился на ошибке 244 . Scada мастер, Uno слейв  соединены через Max485. Задача кнопкой на Scada включать диод на Uno и на оборот. Подскажите пожалуйста возможные решения этой проблемы и еще в каких случаях назначать пин pe-de ?

    С уважением Влад!

    0
  5. “Переменная (Тэг) в области памяти Holding Registors внешнего слейва опрашиваемого с помощью мастера на данном контролере.” – не хватает запятых?

    0
  6. Добрый день!

    В справке по блоку SVCM (отправка переменной через коммуникации) показаны активными два устройства: Arduino Ethernet Wiznet 5100  и ESP8266 WiFi Module. В версии программы 4.3.4 можно выбрать только Arduino Ethernet Wiznet 5100.

    В обновлении 6.3.1 ESP8266 WiFi Module также недоступен для выбора.

    Подскажите пожалуйста, может нужно что-то доустановить или настроить?

    3
  7. Добрый день.

    Параметр “Time” – на этот вход подаётся время регулирования (в миллисекундах).” – так и не смог понять на что именно он влияет… Можно где то узнать что это за параметр?

    0
  8. Добрый день! Мне требуется отправка по UART данных для MIDI протокола. Нашёл на просторах интернета готовый скетч, там отправка происходит вот таким образом


    1. void noteOn(int chan, int note, int velocity) {
          Serial.write( (0x90 | chan) );
          Serial.write(note);
          Serial.write(velocity);
      }

    2. Всю голову сломал как сделать это в данной программе, ничего не получается. Подскажите плиз какие есть варианты.
    3. получается там из массива подставляются переменные и пакетом отсылаются на порт
    4. вообщем вот от сюда брал скетч http://forum.amperka.ru/threads/%D0%AD%D0%BB%D0%B5%D0%BA%D1%82%D1%80%D0%BE%D0%BD%D0%BD%D1%8B%D0%B5-%D0%B1%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D0%BD%D1%8B-%D0%BD%D0%B0-arduino-%D0%BA%D1%80%D0%B8%D0%B2%D1%8B%D0%BC%D0%B8-%D1%80%D1%83%D0%BA%D0%B0%D0%BC%D0%B8.15477/
    0
  9. Вопрос: плата Arduino Nano strong (т.е. плата и шилд сразу) при использовании блока матричная клавиатура подключение 2 пин основной 3,4,5,6,7 уже исполняющие
    так вот при такой раскладке после прошивки на 4 пине появляется сигнал и ничего с этим не сделать если-же подключать так-же с 8 по 13 то на 10 он наоборот пропадает и ничем его не получить.
    Flprog стоит 5.3.0 для 64 виндовс, это можно как-то решить т.к. проект готов и затык только в этом (не резать-же шлейф да сейчас такие шлейфы что :)))   )
    спасибо

    0
  10. Вопрос: плата Arduino Nano strong (т.е. плата и шилд сразу) при подключении 2 пин основной 3,4,5,6,7 уже исполняющие
    так вот при такой раскладке после прошивки на 4 пине появляется сигнал и ничего с этим не сделать если-же подключать так-же с 8 по 13 то на 10 он наоборот пропадает и ничем его не получить.
    Flprog стоит 5.3.0 для 64 виндовс, это можно как-то решить т.к. проект готов и затык только в этом (не резать-же шлейф да сейчас такие шлейфы что :)))   )
    спасибо

    0
  11. Приветствую! Подскажите пожалуйста, какова длина/(время) импульса на выходе блока “Установка события по часам реального времени” и минимальная длина/(время) импульса на входе для срабатывания блоков типа “Триггер”? Плата, Arduino UNO.  (Осциллографа нет, а монитором COM порта эти величины с нужной точностью замерять затруднительно.) Или существует формула для этих расчетов?

    0
  12. xatabmail250986

    Здравствуйте, у меня такой вопрос, я хочу запрограммировать Ардуинку на определенный алгоритм вращения шагового двигателя. У меня есть шаговик Nema23 и Драйвер DM556. Я столкнулся с проблемой: В вашей программе для управления шаговиком используется 4 вывода а у меня от драйвера на Ардуино только 2

     2019-11-10 12:23:12

    Аватар

    xatabmail250986

    (PUL, DIR) и земля. Подскажите как я могу реализовать мое подключение с вашей программой?

    0
  13. Здравствуйте уважаемый Сергей Глушенко.

    У меня такой вопрос.

    Есть ли способ понизить скорость мне случайных чисел в данном блоке, как например в блоке “Generator”, с функцией “Несимметричный мультивибратор”…? А то данный блок “RANDOM”, меняет случайные числа с бешеной скоростью, из-за чего на дисплее не успеваешь разглядеть эти числа…

    0
  14. Здравствуйте, Сергей!

    Прежде всего хочу поблагодарить Вас за прекрасную программу. Мне, как в пошлом,инженеру, очень комфортно создавать свой проект в Вашей среде.

    Но у меня вопрос, на который не нашел ответа: Я создаю проект с участием нескольких контроллеров ESP8266 NodeMCU с OLED дисплеем. Очень не хватает такого модуля и модуля ESP32 WiFi LoRa с OLED дисплеем в предустановке.Мои контроллеры должны выполнять некоторые действия, и обмениваться между собой данными и информацией по WiFi в реальном времени. Причем, радиус действия  WIFI сети каждого из модулей не должен влиять на передачу данных между конечными контроллерами. Поэтому контроллеры самонастраиваются, и записывают данные для входа всех контроллеров WIFI сети в память для постоянного коннекта по цепи (от начального до конечного).  Вопрос: Можно ли в Вашей среде создать подобный алгоритм взаимодействия между контроллерами сети?

    С уважением, Аркадий

    0
  15. Здравствуйте! Не могу понять в чём причина. В счётчике на уменьшение, при подключении переменных к входу R и выходу <L он не считает вниз, а если убрать с R то счёт идёт но, не совсем правильно(на ноль не сбрасывается). Подскажите, в чём может быть причина?

     

    0
  16. Здравствуйте подскажите как округлить показания датчика до десятых чтобы температура выводилась в виде 10,1 а не 10,12.

    0
    • Заходишь в параметры блока конвертации строк, там есть параметр “Количество знаков после запятой”

      1
  17. Добрый вечер!
    Как определить и записать максимальное значение аналогового входа за минуту, и записать его на флешку?

    -1
  18. Здравствуйте! Подскажите пожалуйста как создать двойное фазоимпульсное управление в char, для этой схемы.

    Заранее огромное спасибо!

    1
  19. Добрый день. Подскажите пожалуйста как откорректировать датчик дс18б2хх   есть отклонения 1-2 градуса в зависимости  от температуры. Заранее спосибо.

    0
  20. Здравствуйте, На сериал порт приходит сообщение 18 байт, мне нужно использовать несколько байт из него. Какой функцией выделить (извлечь) например 5-й байт? Или присвоить переменной значение 5-го байта из сообщения? Спасибо.

    0
  21. Здравствуйте.

    Скажите как сделать так что бы при достижении времени установленного в настройках блока на выходе установится высокий уровень не на 1 минуту, а до времени отключения будильник?

    В данной версии блока будильника высокий сигнал на выходе пропадает через 1 минуту.

    0
  22. Здравствуйте!

    В FLProg есть блок MCP23017.

    Но ка только в «FLProg» начинает компилировать в «IDE» программа ругается и пишет, что нужны библиотеки MCP23x17.h и MCP23017.h.  Без этой библиотеки блок не рабочий.

    Где их можно скачать?

    0
  23. здравствуйте. есть ли модуль поддержки драйверов с управлением step-dir-enable? если нет то когда планируется?

    0
  24. Здравствуйте.  Не могу запустить версию 5.00

    —————————

    flp.exe – Системная ошибка

    —————————

    Запуск программы невозможен, так как на компьютере отсутствует api-ms-win-crt-runtime-l1-1-0.dll. Попробуйте переустановить программу.

    —————————

    ОК

    —————————

    Что делать.

    1
  25. Доброго времени суток! Скажите пожалуйста, какова максимальная частота счета для этого счетчика? При превышении какой частоты счета, следует выбирать “Скоростной счетчик”? Заранее спасибо.

    0
  26. Доброго времени суток. Блок “умножение” FLProg 4.2.4 версия под Linux ( ось mint 19.1). умножает в 10 раз более установленного значения . Вставить скрин не  получается.

    0
  27. Драйвер светодиодов MAX7219 в программе flProg версии 4.2.4 не работает. По крайней мере с семисегментными индикаторами. Попробовал в другой версии (2.5.1) – все работает корректно.

    0

Leave a Comment

Войти с помощью: