News:

  • June 09, 2026, 06:22:50 AM

Login with username, password and session length

Author Topic: Unwanted NOP,s  (Read 12198 times)

Pedro

  • Newbie
  • *
  • Posts: 1
Unwanted NOP,s
« on: June 09, 2008, 06:40:25 AM »
After editing a programm I end up with a mutitude of NOP  rungs after the END.
These rungs do not print but I can not delete them.
Any ideas how to delete them?

72hdflh

  • Newbie
  • *
  • Posts: 2
Re: Unwanted NOP,s
« Reply #1 on: June 09, 2008, 07:48:54 AM »
I don't think there is a way!! There should only be around 8 of them.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Unwanted NOP,s
« Reply #2 on: June 09, 2008, 08:22:33 AM »
72hdflh is correct, Pedro. NOP just means "no operation" and they don't do anything and don't count as taking up space in the PLC's memory. They are only displayed by DirectSOFT because that is what is in the PLC's memory; nothing. Nevertheless NOPs are valid instructions.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

Narf3684

  • Newbie
  • *
  • Posts: 4
Re: Unwanted NOP,s
« Reply #3 on: June 17, 2008, 12:33:02 AM »
Greg is right. A simple way to describe it is that they are there for you to expand your program. They don't really exist, they are just there for you to make more rungs out of them if you need them.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Unwanted NOP,s
« Reply #4 on: June 17, 2008, 10:18:06 AM »
A simple way to describe it is that they are there for you to expand your program. They don't really exist, they are just there for you to make more rungs out of them if you need them.
Actually, they do exist in the PLC, but at the DirectSOFT level they are "virtual" since most people don't reference addresses way past the end of their programs.

The Ladder memory in a PLC is a fixed size.  So, if you have 7K words of ladder memory, when you clear the PLC program, you actually have 7K NOP instructions.  If you stuck an END statement at address 7K, your program would execute 7000 Null Operations on every PLC scan, and, believe it or not, this would take some time to execute!

This is one of the reasons why there is an END statement, so that you can tell the ladder execution engine in the PLC firmware to stop processing Ladder Memory.  If it weren't for that END statement, you would ALWAYS be executing the ENTIRE memory on EVERY PLC scan!