-
Notifications
You must be signed in to change notification settings - Fork 25
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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) -%} |
There was a problem hiding this comment.
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",
...
}
],
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
значительно изменил код (добавив enum_titles), к которому был комментарий, теперь не актуально.
Шаблон для нового функциолана - реле напряжения в MRWM2