Why use a COP #M input source to #B9?

plaurent

Member
Join Date
Feb 2009
Location
NC
Posts
23
Trying to understand a program someone else wrote.

What is the reasoning behind a COP instruction for source #M for an input to a #B9 binary tag? Why wouldn't the original author simply specify the Input tag in the ladder?
 
M1 and M0 files are required for some smart cards in a SLC. Accessing those files takes considerable scan time. It is better to do it once with a big COPy rather than have a bunch of references in the program, since they're physically located in the smart card. If you can post the code we can probably tell you a lot more (zip it first).
 
Last edited:
Yep, you have a devicenet scanner in slot 1. The scanner can give you 32 words in and 32 words out, but if you need more, you have to use M0/M1 files.

Each time the SLC runs across a reference to M0 or M1 data, it must send information to the smart card and wait for a response, so it's better to do it once with a COP rather than dozens of times with OTE or XIC instructions. Also, the status of the M0 and M1 files cannot be monitored directly in RSLogix500 so you need a copy anyway to be able to see what's really out there.
 
Last edited:

Similar Topics

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
214
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
655
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
562
I'm having to make an AOI to use with a generic ethernet device because the manufacturer does not provide an AOP. I just want to do a sanity check...
Replies
13
Views
1,272
We're converting a machine's control from CompactLogix to Micro800. It was originally going to be on a Micro850. However, because we've ended up...
Replies
2
Views
1,611
Back
Top Bottom