News:

  • May 02, 2026, 01:38:13 PM

Login with username, password and session length

Author Topic: Do-more paste error  (Read 15071 times)

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Do-more paste error
« on: December 10, 2012, 01:29:25 PM »
I keep getting an error when I try to paste code blocks from 1 project to another:


I've restarted both instances of Designer, but I have not restarted my computer.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: Do-more paste error
« Reply #1 on: December 10, 2012, 02:29:57 PM »
This COULD be a bug that I just addressed.

Does your clip from SOURCE project contain BUILT-IN PLC elements that go BEYOND the DEFAULT range (or even beyond the range in your DESTINATION project).  i.e. Your SOURCE clip references the built-in timer structure T999 (e.g. TMR T999), but in your Destination project, the built-in T only goes up to T255 (i.e. 256 timers)?

You will get this error in THAT situation.

To resolve this with the current release, you must either
1. IN THE DESTINATION PROJECT - bump up the size of your built-in data block to be the size of the data block in your SOURCE CLIP, or at least the size of the largest element that is in the clip (1000 in my example, because T999 is the 1000th timer).
or
2. IN THE SOURCE PROJECT - replace the element with one that fits within the range in the destination project.  REMEMBER TO NOT SAVE THE CHANGE TO DISK IN THE SOURCE PROJECT!!

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Do-more paste error
« Reply #2 on: December 10, 2012, 03:02:07 PM »
Thanks Franji1,

I will try that and see if it will help.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: Do-more paste error
« Reply #3 on: December 10, 2012, 03:15:39 PM »
A third work-around would be to do File->Export->Project and export the specific code-block and also checking the BuiltIn Blocks & Heap Items below the Memory Configuration checkbox in the Configuration section.

Then with the exported .TXT file, do Tools->Insert Instructions from File, and remember to select the As Code Blocks in the Instruction Import Method group.