Logix 5000 COPY Function

And yet ...

Bshirk@aptuscontrols is wrong.

The PLC-5 does not copy backwards.

Perhaps his PLC-5 code was copying blocks to different F registers (F21 - F27) using indirect addressing, and instead of using a 2D array to duplicate what he has, he created a 1D array, and didn't understand why it didn't work.

We won't know unless he posts the PLC-5 code. It's likely that what he REALLY wants to do is create a UDT to hold a mixture of historical data, but he's not there yet.

As I said, the PLC-5 COP instruction is using its built-in Index control logic under the hood in order perform the copy. It's not going to analyze the instruction to check for overlapping register addresses. That takes time and programming memory, and back then, both were precious. 20 years ago, the "poor man's FIFO" was a "cool new trick" on this forum (well, the old, old forum -- the original PLCs.net not PLCTalk.net), and people would get it wrong and accidently do it backwards and get a Fill result. It's likely that the firmware coders never thought about the creative ways that could be used; it was just a FOR-NEXT loop, with no option of 'BY -1').

I've experienced several times when I was trying to make software do something for which it wasn't intended. I'd call up the vendor (back when all software had free tech support) and ask, they'd be stumped. A few days later, I'd call them back with some trick that I discovered to make it do what I wanted.

And that's what this forum is all about.
 
That makes more sense.

P.S. the Siemens S7-1200 MOVE_BLK gets it right i.e. shifts forward and backward "correctly" even when destination overlaps source.
 

Similar Topics

Hello, What is the Problem: I have an old version of projects with all the tags' descriptions and a new one without them. I know how to...
Replies
6
Views
3,157
Hi I have offline project and I want to copy a tag (the name and the vaule) to a online project is it posiable ?
Replies
2
Views
1,457
Anyone have a direct link or a copy of this old software? I have valid licenses for it on this PC but when I try and download it from rockwell it...
Replies
8
Views
2,514
This is a real simple interface problem. Typically when I'm developing in ladder I will Ctrl+C an instruction and Ctrl+V, the new instruction will...
Replies
2
Views
1,678
I've run into this a couple times and while I see a lot of references to Fatal crashes on the RA knowledgebase, I don't see one for this...
Replies
10
Views
4,765
Back
Top Bottom