Memory_Copy

Hello, I am currently trying to use the MEMORY_COPY function, but there is no Output from the function block for the destination? It only lists the destination as an Input. The only output of the block is for the status of the MEMORY_COPY block. Is there a solution for copying bytes from a source to a destination?

Hi Daniel, The destination variable should be updated by the function, even though it is an Input variable … you can think of this parameter as being passed by reference, rather than by value. If the MEMORY_COPY function is not working, then that is another question … Martin.

… and as an alternative to MEMORY_COPY, you could look at the _TO_BUF and BUF_TO_ functions … depending on the data types of the source and destination, these may work. Martin.

Martin, MEMORY_COPY did work as intended, just seemed confusing that the input variable changes