Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added protection modes for mrwm2 #691

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

Conversation

sfDaniil
Copy link
Contributor

@sfDaniil sfDaniil commented Jan 24, 2024

Шаблон для нового функциолана - реле напряжения в MRWM2

@sfDaniil sfDaniil requested a review from a team as a code owner January 24, 2024 12:41
@@ -490,7 +635,28 @@
"group": "gg_outputs_channels"
},
{% endfor -%}
{% for out_num in range(1, OUTPUTS_NUMBER + 1) -%}
{% for out_num in range(1, OUTPUTS_NUMBER + 1) -%}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут можно использовать consists_of вместе с enum/enum_titles:

"name": "out protection",
"type": "text",
"enum": [ "0;1", "1;0", "0;0", "1;1" ],
"enum_titles": [ "low voltage", "high voltage", ... ],
"consists_of": [
  {
    "reg_type": "discrete",
    ...
  },
  {
    "reg_type": "discrete",
    ...
  }
],

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

значительно изменил код (добавив enum_titles), к которому был комментарий, теперь не актуально.

@sfDaniil sfDaniil requested a review from sikmir March 25, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants