IMDHMIControls LibraryShop main store

Troubleshooting

Why a KTP700 Basic Start button does not set the M bit in the S7-1200

PLC programming Published 7 min read By IMDHMI controls team

Short answer

The Start button's Release event writes %M1.3 through the configured HMI connection, so ping and a visible device prove nothing about the write. Check in order: whether system message 190011 still appears at release (a rejected write), whether marker byte 1 is the CPU's clock or system memory byte (the CPU overwrites the bit), and whether program logic rewrites the byte or a word containing it. Watch the bit at the moment of release.

On this page
  1. What the symptoms already prove
  2. Prove whether the write still lands
  3. Check whether the CPU owns the marker bytes
  4. Timing a SetBit on %M1.3 with the clock memory byte at %MB1
  5. Find the program writer, not just the bit
  6. Watch the bit at release, not while you hold it
  7. The decision for each result
  8. Questions asked

Your Start button is not fighting the network. The Release event writes Auto_Start at %M1.3 through the configured HMI connection, and ping plus an entry in Accessible Devices prove only that the IP path exists, never that this write lands. Three different faults produce your exact picture — the bit FALSE in the Watch Table, alarm 190011 gone since the switch went in, a clean diagnostic buffer — and you separate them in one order: prove whether the panel's write is still rejected, test whether the CPU has taken marker byte 1 for itself, then find any program logic that rewrites the byte after the panel. Watch the bit at the moment of release, never while you hold the button. The case in front of you is a CPU 1214C DC/DC/DC at firmware V4.2.2 with a KTP700 Basic PN, both engineered in TIA Portal V21; the figures quoted below are the documented S7-1200 values.

What the symptoms already prove #

A Release function runs at the instant your finger leaves the button, so holding Start down shows you nothing in a healthy system. Judge the command by the bit, not by the button face springing back — that return is by design.

  • The 190011 message was the panel reporting that the Auto Start variable could not be written. It stopped appearing when the topology changed, which proves the switch change, not a repair; a message can also stop appearing when it is acknowledged or when the write stops being attempted, so you reproduce the operation and read the message again.
  • The clean CPU diagnostic buffer is expected either way: the evidence for a rejected tag write lives on the panel, and the buffer records controller faults. Treat "no recent fault" as no information at all.
  • All three command bits sit in two adjacent bytes: Auto_Start at %M1.3 in marker byte 1, Auto_Start_HMI at %M0.4 and Auto_Stop_HMI at %M0.6 in marker byte 0. One reserved byte cannot explain all three failing — but a rejected write can, a word write at %MW0 can, and so can two reserved bytes, one per assignment. The checks below separate those cases.

Prove whether the write still lands #

  • Put an alarm view that shows system messages on a panel screen, then press and release Start and read what appears at that moment. This single test separates "rejected" from "overwritten", and everything else waits on its answer.
  • If message 190011, or any connection error, appears at release, the write is still rejected. Repair in this order: the HMI connection's partner and destination must be the CPU at 192.168.0.100 on the panel's own subnet; the addresses must be unique — a second device answering 192.168.0.2 breaks tag traffic while ping keeps working; and the panel must run the compiled project you are inspecting, so download the HMI station again after any change.
  • If the message names a secure connection or a certificate, compare both device clocks and the trust setup; that is its own failure with its own fix, covered in why a KTP700 Basic shows a secure connection error to an S7-1200.
  • Only a silent panel with a bit that still will not hold TRUE moves you on — that pattern means the write arrives and something removes it.

Check whether the CPU owns the marker bytes #

The CPU can reserve marker bytes for itself, and both reservations sit on one page: open the CPU's properties in device configuration and read the System and clock memory page.

  • System memory: you can assign one marker byte as the system memory byte, and four bits in it carry CPU states the program may read, such as the first-scan flags. Unless you can show your command bits sit outside those four, treat the whole byte as taken.
  • Clock memory: you choose which marker byte becomes the clock memory byte, and its eight bits toggle on their own frequencies, the slowest 0.5 Hz and the fastest 10 Hz, in a 1:1 pulse-pause ratio. The operating system refreshes these bits, so a value the panel writes to one is overwritten with no fault and no message.
  • Decision: if either assignment names marker byte 1 or marker byte 0, you have your answer — and a system byte at 0 with a clock byte at 1 kills all three of your bits at once, which fits the symptom exactly. Move every operator command bit to bytes with no assignment, in the HMI tag table and in any logic that reads them.

Timing a SetBit on %M1.3 with the clock memory byte at %MB1 #

Inputs:

  • The suspect address: Auto_Start = %M1.3, so the bit sits in marker byte 1 — that comes from your button and tag configuration.
  • The clock memory behavior, from the S7-1200 documentation: eight bits per assigned byte, toggling between 0.5 Hz and 10 Hz, refreshed by the operating system.
  • The write under test: SetBit on Release, one TRUE delivered at the instant of release.

The rule: a clock bit is driven by the CPU, so the panel's TRUE survives only until the next clock edge. With the documented 1:1 pulse-pause ratio, each state lasts half a period, and the period is one divided by the frequency.

The arithmetic:

  • Slowest bit: period = 1 / 0.5 Hz = 2.0 s, so TRUE holds 2.0 s / 2 = 1.0 s.
  • Fastest bit: period = 1 / 10 Hz = 0.1 s, so TRUE holds 0.1 s / 2 = 0.05 s.

The result: if %MB1 is the clock memory byte, your SetBit holds TRUE somewhere between 0.05 s and 1.0 s and then falls with no instruction involved — and a Watch Table drawing on its own cycle shows FALSE most of the time.

The decision: release Start and watch. A bit that rises and falls again within 1.0 s, with a cross-reference that shows no program writer, means the CPU owns the byte — confirm it on the System and clock memory page and move the command bits. A bit that never rises at all means the write is still rejected; go back to the message check.

Find the program writer, not just the bit #

  • Cross-reference the command bit directly, then its containers: %MB1, %MW1, %MD1 — and %MW0, which spans marker bytes 0 and 1, so one word write there, a mode word, a first-scan initialization, a reset sequence, clears all three of your bits in a single instruction.
  • Search for writers, not readers: MOVE-type instructions that recompose a command word every scan are the usual owners, and a bit-level cross-reference will not show them.
  • Ownership rule: one writer per bit. If the program clears the bit on a real condition — an interlock, a stop sequence — give the panel its own command bit for the program to read, or let the program own the bit and display its state. Never delete an interlock or a reset condition to make the bit stay TRUE.

Watch the bit at release, not while you hold it #

  • Release-event failures run both ways: a function that never fires strands a command, as in why a lost release event leaves an HMI valve command stuck; yours fires, and the bit dies right after.
  • Trap the edge if your eyes are not fast enough: set an unused bit in an unassigned byte on the positive edge of Auto_Start. If that latch is set while Auto_Start reads FALSE, the write landed and something cleared it — proof of overwrite, not rejection.
  • Run one isolated transport test with the machine in a safe, non-operating state: a temporary BOOL tag on an unused, unassigned bit, a test button with SetBit on Release, nothing else connected. If that bit holds TRUE, the connection and the downloaded project are good and the fault is byte ownership.
  • None of this needs the panel's Control Panel password: the connection, the tags and the events travel with the project download from the engineering station.

The decision for each result #

  • A write error appears at release: repair the connection — partner and destination address, unique addresses, a fresh download of the HMI station, then clocks and certificates if the message names them — and repeat the test.
  • The panel stays silent, the bit rises and falls back on its own, and the cross-reference is clean: the CPU owns the byte. Confirm the assignment, move all operator command bits to unassigned bytes in the tag table and the logic, compile and download both stations.
  • The panel stays silent and the bit never rises: the panel is running something other than the project you inspected, or the connection is misaddressed — download the HMI station again and re-check the partner before anything else.
  • A program writer turns up: give the bit one owner, route the command through a bit the program reads, keep every interlock, then verify by running Start and Stop through one full cycle and watching the bit hold from release until the Stop event.

Questions asked

Does the CPU's PUT/GET permission block the KTP700 Basic write?

No, as long as the panel connection was configured in the project and downloaded with the HMI station: a configured connection carries its own authorization. The 'Permit access with PUT/GET communication' setting in the CPU's protection settings governs remote partners that write with PUT/GET instructions, such as a gateway or a script. Enable it only for a partner you have identified, on a network you control.

Why can the Watch Table miss a TRUE that really happened?

The Watch table refreshes on its own display cycle, not in step with the PLC scan, so a TRUE that lasts only a few scan times can come and go between two refreshes and never be drawn. A clean FALSE in the table is therefore not evidence that the write failed; trap the edge in logic or watch the moment of release before you conclude anything.

Where is alarm 190011 generated, and why is the CPU buffer clean?

On the panel. 190011 is an HMI system message that tells the operator a value could not be written to the PLC; it is produced in the panel's runtime, not by the CPU. The CPU diagnostic buffer records controller faults, not failed tag writes from a panel, so it can stay empty while every write fails. Acknowledging the message changes nothing; the write has to be made to land.

How do I get into the password-protected Control Panel if I must?

Only panel-side settings live there, such as the panel's own network address or transfer mode; everything in this fault travels with the project download. When you truly need it, use the credentials from whoever commissioned the panel, or the manufacturer's documented recovery procedure for that exact model. A factory reset erases the project on the panel, so keep the compiled project ready and reload it afterwards.

Which marker bytes should carry operator command bits?

Bytes with no system or clock memory assignment and no program writers. When you plan the tag table, reserve one contiguous run of marker bytes for HMI commands, record that allocation in the project documentation, and re-check the CPU properties after any hardware-configuration change or CPU copy, because both assignments travel with the device configuration.

Keep reading

  • How-to

    Why a lost release event leaves an HMI valve command stuck

    A press event and its release are two separate writes, so a communication loss while the button is held leaves the valve command stuck at 1. Configure the WinCC flexible area pointer Coordination, detect its life-bit transitions in the PLC, and when they stop, reset both command bits and deny output permission until the operator issues a fresh press.

    PLC programming

  • Troubleshooting

    Trace an HMI command that never reaches the PLC output

    When the screen shows a command but the machine does not act, walk five boundaries in order: the screen object's tag binding, the communication connection and controller identity, the input interface, the ladder logic with its permissives, and the output interface. Because a PLC reads inputs once per scan and a scan is typically milliseconds, a brief command can be read and overwritten within one scan. The first boundary where indications disagree marks the fault.

    PLC programming

  • Troubleshooting

    Why a KTP700 Basic shows a secure connection error to an S7-1200

    A KTP700 Basic secure connection error that survives matched clocks, a trusted certificate and a panel image update to 17.0.0.9 is a panel-side failure, not a missing setting. The working laptop simulation proves the S7-1200 and the connection configuration are fine. Capture the exact startup system alarm text next; another IP change or fresh download will not move the fault.

    PLC programming