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
Modbus TCP bridge skip cycle function #2615
base: develop
Are you sure you want to change the base?
Changes from all commits
940fa15
4035fb2
7c5c34b
9d9b269
6b3874a
5898d49
bb1793e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,5 +33,8 @@ | |
@AttributeDefinition(name = "Invalidate elements after how many read Errors?", description = "Increase this value if modbus read errors happen frequently.") | ||
int invalidateElementsAfterReadErrors() default 1; | ||
|
||
@AttributeDefinition(name = "Interval between accesses (in milliseconds)", description = "Cycle skipping will be calculated from this value and core cycle time.") | ||
int intervalBetweenAccesses() default 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would rename this to Description for unit can be simply "[ms]" instead of "(in milliseconds)" - see this example: https://github.com/OpenEMS/openems/blob/develop/io.openems.edge.core/src/io/openems/edge/core/cycle/Config.java#L13 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! I will fix them. |
||
|
||
String webconsole_configurationFactory_nameHint() default "Bridge Modbus/TCP [{id}]"; | ||
} |
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.
Cycle has a method
getCycleTime()
. Is there a reason you don't use it directly?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.
Ah sorry. Just realized, that you asked exactly this question here: https://community.openems.io/t/bridgemodbustcpimpl-doesnt-work-when-cycle-is-referenced/2530/3