Skip to content

Incorrect execution when using a direct access variable as a function argument #1236

Answered by volsa
chen4s666 asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I had another issue on my mind which I confused with this one. VAR_OUTPUT in fact works for functions, but as you've correctly identified there's some logic missing to store back the results when using direct access in output assignments. This is definetly a bug and I've opened an issue for it. However, we happen to generate the correct code for FUNCTION_BLOCKs (at least in this branch), which you can use in the meantime until this issue fixed.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@chen4s666
Comment options

@volsa
Comment options

Answer selected by chen4s666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants