Sign in to follow this  
Followers 0
travis

COP CPS Instruction

3 posts in this topic

Hi all, Does anyone know what is the value should I put for the "length" operand? Example, I have a UDT which contains 8 real and 1 string20. Should I just put 1 ? I read from the reference manual. It said that " You must test and confirm that the instruction doesn’t change data that you don’t want it to change. The COP and CPS instructions operate on contiguous memory. They do a straight byte-to-byte memory copy. In some cases, they write past the array into other members of the tag. This happens if the length is too big and the tag is a userdefined data type. " Could someone guide me, please. Thanks in advanced.

Share this post


Link to post
Share on other sites
If you are copying TO your UDT then the length is in units of 1 UDT. The length is in terms of the destination type. From the outside a UDT appears as a single unit (which a great part of the power).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0