22.11.2.5 Copy Memory (String Mode)

Copies device memory with one operation. Copy the number of bytes (Parameter 3) in the source address (Parameter 2) to the destination address (Parameter 1).

When there are NULL characters in the source address, these are also copied. NULL is not added at the end of the destination address.

You can use Copy Memory (String Mode) when tags are registered.

memcpystr(Destination address, Source address, Number of bytes)

Example expression:

memcpystr ([w:[PLC1]TagName1], [w:[PLC1]TagName2], 5)

In the above example, read 5 bytes from PLC1's TagName2 and then write the data to PLC1's TagName1.