-
Notifications
You must be signed in to change notification settings - Fork 35
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
add event trigger function block #936
add event trigger function block #936
Conversation
this FB will trigger all unconnected events of the specified type within a resource on REQ
@@ -0,0 +1,26 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<FBType Name="E_TRIG" Comment="Trigger FB for a specified Event Type" > |
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.
i dont like the name and the comment. For me its not really clear what this block should do.
If the name is defined by the IEC 61499 standard, then i would leave it like, otherwise we should give it a more descriptive way that makes it clear that all blocks with the event type will be triggered.
@azoitl what do you think about that ?
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.
I would also go for an improved comment. There is no name in the standard for this block. But I thought keeping it short and simple and in line with existing blocks (E_RTRIG, E_FTRIG) would be a good idea.
</Event> | ||
</EventOutputs> | ||
<InputVars> | ||
<VarDeclaration Name="EVENTTYPE" Type="STRING" Comment="Event type to be triggered" /> |
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.
'EInit'
could be a sensible InitialValue for EVENTTYPE
?
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.
definitly
This FB will trigger all unconnected events of the specified type within a resource on REQ
related to https://github.com/eclipse-4diac/4diac-forte/pull/298