News:

  • August 26, 2026, 04:02:31 AM

Login with username, password and session length

Author Topic: MemCopy  (Read 7046 times)

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
MemCopy
« on: August 23, 2018, 05:52:06 PM »
MemCopy Instruction won't let you enter a string length (SS0.length) for the Number of Bytes field. I had to copy it to V memory to get it to work.
« Last Edit: August 23, 2018, 05:54:27 PM by ATU »

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: MemCopy
« Reply #1 on: August 23, 2018, 08:12:17 PM »
If I am not mistaken, you can not specify number of bytes for structures.

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: MemCopy
« Reply #2 on: August 23, 2018, 08:47:17 PM »
I was copying a segment of one byte array into another byte array.  It works if I copy the length variable into a V memory location and then it lets me use a Vmemory address to specify the number of bytes.