Question with COP instruction in Logix500

busarider29

Lifetime Supporting Member
Join Date
Aug 2013
Location
Midland, MI
Posts
393
Greetings from Michigan,

I have to edit some code that was not written by me. The existing code works but I'm hazy on exactly what is going on and/or how it works. Can someone briefly describe how the attached code works. I'm more hazy on what's going on with the COP instruction and how this is working here. The instruction documentation doesn't quite describe it written/coded this way (?).

Thanks you

COP instruction.jpg
 
the source in COP instruction is called indirect addressing.
the value after the colon in the (source in COP) have vale of N7:59.
Example:
N7:140 ------- DEst N7:133
N7:141 ------- DEst N7:133
N7:142 ------- DEst N7:133
The increment value depends on the C5:5.ACC value
the posted runs will increment every scan.
 
the source in COP instruction is called indirect addressing.
the value after the colon in the (source in COP) have vale of N7:59.
Example:
N7:140 ------- DEst N7:133
N7:141 ------- DEst N7:133
N7:142 ------- DEst N7:133
The increment value depends on the C5:5.ACC value
the posted runs will increment every scan.

Ahhh...thank you. Got it now. :geek:
 

Similar Topics

Hi All, I'm new at this, and I'm not able to understand what I believe to be strange behavior while using the COP instruction in my program. I'm...
Replies
13
Views
4,323
Hello all. I have a Danfoss VLT feeding an INT into my CpLX program. I need to concatenate the MSB and LSB for position. I used a COP, making sure...
Replies
10
Views
567
1769-L16ER-BB1B, ver. 24, I can't figure out why a COP instruction will not work. I'm trying to copy a string array that is in a UDT into...
Replies
3
Views
1,538
So I'm trying to do some arithmetic with arrays of DINTs. However, I'm running into a problem. I’m trying to create a copy of let’s call it...
Replies
2
Views
6,308
OK. You guys helped me out a bunch with my first Siemens question. I found a bunch of issues with integrity checking the PLC programs I was...
Replies
3
Views
103
Back
Top Bottom