News:

  • September 26, 2026, 08:28:55 AM

Login with username, password and session length

Author Topic: Replace and FIFOLOAD/UNLOAD  (Read 6358 times)

Bolt

  • Hero Member
  • *****
  • Posts: 598
Replace and FIFOLOAD/UNLOAD
« on: December 04, 2021, 12:19:06 AM »
I used Ctrl+R to replace a SL0 with SS0, which was the Value/Destination for FIFOLOAD/UNLOAD.  It replaces all instances in the program except in those 2 instructions, with no warnings or errors, until you do a Program Check.

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Replace and FIFOLOAD/UNLOAD
« Reply #1 on: December 04, 2021, 01:17:26 AM »
I did it on another program, and there it worked as expected, replaced SL0 with SS0 within the FIFO instructions.  I think it's related to if the system configuration has been changed already, or if it's still in a full blown RUN mode status link with the PLC.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: Replace and FIFOLOAD/UNLOAD
« Reply #2 on: December 06, 2021, 09:39:38 AM »
The Queue based instructions are MEMORY based, not VALUE based.  Hence, the string user block you are using for your queue must also change in size from  the max length of SL to SS (256 max chars to 64 max chars) or vice versa.

You should ALWAYS get that error, unless you simultaneously change the Queue User Block parameter as part of the same multi-variable replace operation, e.g. from MyLongString with MyShortString when also replacing the Value parameter SL to SS.