IMDHMIControls LibraryShop main store

Troubleshooting

MB_CLIENT version change after TIA Portal V16 migration

PLC programming Published 8 min read

Short answer

A TIA Portal V13 SP1 to V16 migration does not by itself change the drive; it changes which MB_CLIENT revision, CPU firmware and request data the project carries. Compare the instruction version in both archived projects, read the online CPU identity (the replacement CPU may be V4.4 or V4.5), test the older revision in a project copy, and capture one request to confirm address, quantity and word order before judging homing failures as drive faults.

On this page
  1. Three compatibility layers, not one V16 problem
  2. Read the CPU identity and the loaded revision first
  3. Why a completed write can still skip homing
  4. Run the revision test in a project copy
  5. Worked example: converting a printed reference of 40111 to the wire address
  6. Compare the captured frame and the drive state
  7. The decision for each case
  8. Questions asked

An S7-1200 that drives a Schneider Lexium 32 servo over Modbus TCP stopped executing some commands, homing included, after its project moved from TIA Portal V13 SP1 to V16 and onto a replacement CPU. Work from the instruction and the data inward, not from the drive outward: compare the MB_CLIENT revision loaded in the migrated project against the one the working project uses, read the online CPU identity to settle the installed firmware, and capture one request on the wire to confirm the register address, quantity and word order the client actually transmits. Drive parameter changes and CPU firmware updates come last, once you know what the migration changed.

Three compatibility layers, not one V16 problem #

Opening a V13 SP1 project in V16 converts the project once. Inside it, MB_CLIENT is a versioned library block: the manual documents MB_MODE as the operation selector that replaces Modbus function codes, MB_DATA_ADDR as the start address, and the register quantity and data buffer completing the request, all carried over the CPU's PROFINET interface. Around the block sit two more layers, the CPU the project downloads to and its firmware, and the reported case changed all of them at once, because it landed on a replacement CPU remembered only as firmware V4.4 or V4.5. When a migration also swaps the CPU, the move adds the same risks as converting a project to a different controller revision — the checklist for converting an RSLogix 500 project to another MicroLogix revision covers that exact case.

The instruction-firmware pairing is documented, not folklore: the S7-1200 documentation states that a CPU with firmware V4.0 accepts MB_CLIENT up to and including library version V3.1, so a revision that ran on one CPU can fall outside another CPU's range. Siemens also publishes a separate Migration Tool for defined version steps, and its published list covers V13 SP2, V14 SP1, V15, V15.1 and V17 through V20; this case converted by opening the project directly in V16, so the conversion to audit is the one your open-and-download actually performed.

Read the CPU identity and the loaded revision first #

Five readings come before any parameter change:

  1. Archive both projects — the working V13 SP1 application and the migrated one — including device configuration and the connected communication settings.
  2. Go online with each CPU and read the device identity: order number and firmware version. A remembered V4.4-or-V4.5 is not a reading; make it one.
  3. Compare the read firmware against the device configuration in each project, and keep each project on the CPU it was configured for.
  4. Open the MB_CLIENT properties in both archived projects and record the selected revision of each.
  5. If the revisions differ, that difference becomes suspect number one; run the controlled test below before touching any drive parameter.

The decision at this step: a firmware update is not the first corrective action. It becomes the action only when the revision you need is documented outside the installed firmware's range — the V4.0-firmware ceiling on the V3.1 library above is what that kind of limit looks like.

Why a completed write can still skip homing #

A Modbus transaction is one request plus its response, and a drive can complete every transaction and still not move. Register acceptance and command acceptance are different events: the communication interface confirms the write, while the drive's operating state decides whether the command can execute. A Modbus exception is the server rejecting the request at protocol level; a client-side timeout means no response came back at all. Read the instruction's diagnostic output to tell the two apart, and capture the exchange if the distinction stays unclear. A request whose address and quantity run past the end of the drive's register map answers with exception 02 — the case in the article on a Modbus read that crosses a register map gap.

What you observe Where the fault sits What confirms it
No response to reads or writes Connection, endpoint or client execution A matching response returns when the working machine sends the same request
Reads succeed, writes fail or answer with an exception Address, quantity or access rights The captured write shows the function, address and quantity the manual expects
The write completes, homing never starts Command value, sequence or drive state A drive status change acknowledges the homing request
Only the migrated machine misbehaves Instruction revision, CPU configuration or data layout Identical frames on the wire from both machines

Run the revision test in a project copy #

  • Copy the migrated project and test in the copy; the machine's archive stays untouched.
  • Change only the MB_CLIENT revision selection in that copy. Nothing else changes in the same step.
  • Check the call and its associated instance data after the change: revisions can differ in interface layout, so the instance data must match the revision you selected.
  • Re-enter and verify the request inputs — MB_MODE, MB_DATA_ADDR, the register quantity and the data buffer — against the values the working project shows online at the moment it issues the homing command.
  • Put the drive in the same initial state on both machines: no active faults, same enable condition, same homing parameter set.
  • Keep the axis inhibited while you compare read transactions; issue the homing write itself only under the machine's approved motion-test conditions.

Then the verdict: if the copy runs the older revision with identical request data and the homing request goes through, you have found it. Keep the older revision when the installed firmware documents it as compatible; otherwise keep the newer revision and carry the corrected request data forward instead.

Worked example: converting a printed reference of 40111 to the wire address #

The inputs:

  • The drive manual's register table. In the classic Modicon convention it prints the first holding register as 40001; the exact printed number for your command register comes from that table, and 40111 here is an illustrative value for the arithmetic.
  • The two frames to compare: the homing write the working project transmits and the homing write the migrated project transmits.

The rule in words: a printed 4xxxx reference and a 0-based protocol address name the same register only after conversion — the protocol address equals the printed reference minus 40001 — and some tools take one form while others take the other.

The arithmetic: 40111 - 40001 = 110. For a single-register command the quantity is 1, one 16-bit register.

The result: the printed reference 40111 and the protocol address 110 are two spellings of one register; 111 and 40112 name different registers.

The decision: the two machines must transmit the same number — equal, not close. Capture the same write from each machine and compare the address field; if they differ by even one register, enter the working machine's number in the migrated project before any drive parameter is touched. A close address can complete as a normal write against the neighboring register and still never trigger homing, which is precisely the reported symptom.

Compare the captured frame and the drive state #

A mirrored switch port or an in-line tap captures the request, and Modbus TCP carries the function code, start address and register count in the open. Read those three numbers from one write on each machine and set them side by side; one captured frame settles the convention question for your installation better than any table remembered under pressure. For a 32-bit command assembled from two registers, the protocol carries each 16-bit register high byte first, but which register holds the high word is the sender's choice: a changed buffer declaration or a reordered structure swaps that word order without any alarm, and the drive accepts two ordinary writes while receiving a different number. Compare the buffer layout in both projects once the addresses already match.

After the frame checks out, read the drive itself: operating state, active faults, enable condition and the selected homing configuration. Identical initial conditions on both machines are what make the whole comparison mean anything.

The decision for each case #

  • Nothing answers, reads or writes: repair the connection first — client execution, connection data and the drive's endpoint. When the request path crosses a gateway, the pattern matches the article on an S7-1200 Modbus TCP client that shows no data through a gateway.
  • Reads work and writes fail or answer with an exception: fix the address and quantity. Convert the printed reference, prove both machines on the wire, and note that an address outside the range the selected operation allows is rejected on the CPU before any frame leaves — the failure family behind the MB_MASTER error 16#8188 for an out-of-range input-register address.
  • Writes complete and homing still never starts: communication has passed; check the drive's operating state, the command sequence and the homing configuration instead of Modbus.
  • Only the migrated machine differs: run the controlled revision test — older MB_CLIENT revision, identical request data, project copy. Keep the older revision if the installed firmware allows it; keep the newer one and fix the data if it does not.
  • Firmware update: only when the revision you need is documented outside the installed firmware's range. Read the identity first, update second, and re-verify the request data afterward, because an update changes nothing about a wrong address.

One outbound reference for the hardware-swap case: converting an RSLogix 500 project to a different MicroLogix revision.

Questions asked

Does MB_DATA_ADDR take the printed register number or the converted protocol address?

The address in the form your instruction revision documents; the two conventions differ by exactly 40001, so a register printed as 40111 in the classic Modicon convention is protocol address 110 after conversion. Capture one write from the working project, read the address field, and enter that same number in the migrated project; the captured frame settles the convention for your installation.

How do you tell a Modbus exception from a timeout on MB_CLIENT?

An exception is an answer: the server received the request and rejected it, and the response carries the requested function code with its high bit set plus a one-byte exception code. A timeout is silence: the instruction's diagnostic output reports an error and no response frame appears on the capture. Read the client's error output first; a short packet capture settles any doubt.

Does the replacement CPU's firmware decide which MB_CLIENT revision I may use?

Yes, they pair. The S7-1200 documentation states that a CPU with firmware V4.0 accepts MB_CLIENT up to and including library version V3.1, and later firmware lines have their own ranges in the same description. Read the installed firmware online rather than trusting a memory such as V4.4 or V4.5, then select a revision inside that firmware's range before testing.

Does the V16 migration rewrite the MB_CLIENT block on its own?

The conversion carries the block with the revision the project already selected; the revision is a property you change deliberately in the block's version selection, not something the migration switches on its own. That is why the first check is comparing the selected revision in both archived projects, and why a migrated machine can end up running a different revision than a project created new in V16.

Keep reading

  • Troubleshooting

    Why an S7-1200 Modbus TCP client shows no data through a gateway

    When a Modbus TCP test utility reads the instrument through the gateway but the S7-1200 shows nothing, the Ethernet path already works; the PLC's request does not match it. Copy the working request's destination, unit identifier, function code, address and count, capture the PLC at a switch mirror port, and read MB_CLIENT STATUS to place the fault at connection, timeout or exception stage.

    Industrial networks

  • Troubleshooting

    Fix STEP 7 V5.5 warning after TIA Portal wrote an S7-300

    Download the hardware configuration and blocks from a freshly created SIMATIC Manager project and the warning clears; a CPU 313C-2DP recovered exactly this way. Formatting the MMC with the mode switch (MRES held roughly 9 s until the STOP LED stays lit) does not clear the TIA-written state, so use it only when you also want the card empty.

    PLC programming

  • How-to

    Migrating S7-300 projects from STEP 7 v5.5 to TIA Portal

    You can migrate an S7-300 project from STEP 7 v5.5 into TIA Portal with the migration tool, but the converted project goes online without showing online blocks: timestamps in the CPU no longer match, so TIA treats the program as inconsistent and wants a full transfer after any change. Keep the classic toolset for large programs and firmware updates; use TIA for small S7-300 projects that gain a unified project with an HMI or an S7-1200.

    PLC programming