UDT not getting copied completely with CPS instruction

arjunnaidur

Member
Join Date
Aug 2012
Location
Vadodara
Posts
2
Dear all,

In RS Logix 5000 i m using the CPS instruction to copy an UDT with 8 strings & 1 DINT tag in it. While the rung is executed sometimes i see the complete set of data is not getting copied from source to destination. [It is like only 3, 4 or 5 tags from source gets copied to destination and remaining tags in destination will be of the previous data only]

Why is it so??
Is there any time limit that i should set such that i should keep on executing the rung till it completely copied??
How do i get the confirmation that UDT is completely copied??

Please help me out to get over this problem.
 
Last edited:
I'm not sure if this is the case but in one program we were receiving a string from an external device. The tag location was cleared before the external source would write the string into our CompactLogix. At first we attempted to copy the string to another tag when the .LEN changed from zero to non-zero. But it had not written all of the DATA section yet. We had to delay the copy for a couple of scans.
 
I'm not sure if this is the case but in one program we were receiving a string from an external device. The tag location was cleared before the external source would write the string into our CompactLogix. At first we attempted to copy the string to another tag when the .LEN changed from zero to non-zero. But it had not written all of the DATA section yet. We had to delay the copy for a couple of scans.

Mr Carlton,
Thank you for your valuable feedback, i'll try putting a delay timer in between 2 executions.

Regards,
Arjun
 

Similar Topics

Afternoon all, I'm working on setting up a large excel recipe table for porting updates through the Linx Gateway RTD/DDE function into my recipe...
Replies
2
Views
96
I am trying to copy an array of real numbers into a UDT with a real data type element. I have attached a snip below showing my COP instruction...
Replies
4
Views
200
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
125
Does anybody have any samples of how to "Create and Use" UDT's in CCW Developer Edition? (I am using v22) I can't find any information from...
Replies
3
Views
300
Hello, I have been looking for a reference for the order that a UDT is copied in the COP instruction. More specifically - I have a set of code...
Replies
5
Views
544
Back
Top Bottom