|
| Re: OPC_UA Subscribe FB Var Initialization [message #1767478 is a reply to message #1767436] |
Thu, 06 July 2017 10:18   |
|
hi,
this is an interesting problem you are pointing out here. I think I don't have a quick solution for you. But I also think that we need to provide you with a solution for that. One of the problems I see is that setting a default value on the RD_x outputs is maybe not the thin you would like to have. the problem is that even if you could set here a default value it would not come to your FB as this would require an event and this is not happening.
Therefore I would propose a different solution:
1. specifiy the default value on the input of your FB, either as default value in your FB type, or as parameter value in the application
2. on initionalisation this value is mirrored back to the RD_ output into the opc UA server
In order that this is working we would need to change a bit in the download process for supporting the second part of 1 and a change in the OPC UA layer. Although I think the latter should be pretty straight forward.
What do you think?
|
|
|
|
| Re: OPC_UA Subscribe FB Var Initialization [message #1767516 is a reply to message #1767492] |
Thu, 06 July 2017 17:06   |
|
Jose this is an excelent quick solutionfor Felipe's issue.
However I would still like come back to my proposal from above. As you can see in the attached screenshots it would eliminate quite some FBs. The only problem is that currently in 4diac we only write constants during deployment when they are not connected and we don't show them when there is a connection. Espcially changin the deployment would just mean to remove an if. However I wanted to get feedback from other 4diac users and IEC 61499 experts if they see an issue when we change the behavior?
P.S.: Changing the behavior would have also an aditional benefit that it would be very easy to set a type of an any input and we wouldn't need these int2int blocks like you used them in your example. Insteady write the constant INT#0 on the input of the FB_SEL.
|
|
|
| Re: OPC_UA Subscribe FB Var Initialization [message #1767517 is a reply to message #1767492] |
Thu, 06 July 2017 17:07   |
|
Jose this is an excelent quick solutionfor Felipe's issue.
However I would still like come back to my proposal from above. As you can see in the attached screenshots it would eliminate quite some FBs. The only problem is that currently in 4diac we only write constants during deployment when they are not connected and we don't show them when there is a connection. Espcially changin the deployment would just mean to remove an if. However I wanted to get feedback from other 4diac users and IEC 61499 experts if they see an issue when we change the behavior?
P.S.: Changing the behavior would have also an aditional benefit that it would be very easy to set a type of an any input and we wouldn't need these int2int blocks like you used them in your example. Insteady write the constant INT#0 on the input of the FB_SEL.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04185 seconds