Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. Dan Clark
  2. PLCnext Engineer
  3. Monday, 07 October 2019

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?

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Engineer
  3. # 1
Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

... 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.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Engineer
  3. # 2
Dan Clark Accepted Answer Pending Moderation
0
Votes
Undo

Martin,

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

  1. more than a month ago
  2. PLCnext Engineer
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.