Troubleshooting
Why PKW words stay empty while cyclic PROFIBUS data works
Short answer
The PKW words stay empty because PKW on this PROFIBUS profile is request-and-response: the PLC must write a complete request into the mapped Q words, then accept the data only when the response status is valid. Cyclic words IW0 to IW8 updating proves the DP link is sound, so the fault is entirely in the request handshake, not the network.
On this page
Your PROFIBUS link is fine. With the MMC L PKW EV40 profile, the words IW0 through IW8 are cyclic process data the TeSys T pushes every bus cycle, and those values updating prove the DP master, the slave address and the bus parameters are all correct. The PKW words are a different channel: request-and-response. They stay empty because no complete request — command, register number, control fields — has been written into the mapped Q words, or because the response status was never evaluated. The fix is in your PLC program: build the full request, watch it leave the Q words, and accept the data only when the response status is valid. Nothing in the network or device configuration needs to change.
What the word map tells you #
Open the drive slot in the TIA Portal V13 device configuration and confirm that the I/O lengths and addresses match the MMC L PKW EV40 profile as the TeSys T PROFIBUS manual (document DOCA0131EN) defines it. Record the Q addresses of the request area and the I addresses of the response area; the rest of this article refers to those areas by role, because your exact addresses depend on your configuration.
| Mapped area | Role | Behavior you see | What it means |
|---|---|---|---|
| IW0 to IW8 | Cyclic process data | Updates every bus cycle | DP link, slave address and cyclic mapping are correct |
| Q words, request area | PKW request fields | Hold your last write | Must carry a complete request before anything happens |
| I words, PKW response window | PKW status and data | Empty until a request completes | Data appears only after the relay answers a valid request |
If the DP side ever does need attention, the setup behind it is the one described in Connecting an S7-1200 to a PROFIBUS slave through a CM 1243-5 — but with cyclic data flowing, nothing there is your fault.
Why the PKW words need a request first #
Cyclic process data flows on its own: the relay sends the mapped values each bus cycle and the PLC only reads them. PKW is a transaction instead. The master places a request in the output area, the relay processes it, and the relay places status and data in the input area. Reading the response window never calls register 457 or any other register; only a written request does. That is why the response window can sit empty for hours while the cyclic words keep updating perfectly.
The same Q area on this profile also carries control bits, such as the operating-mode and run or reverse commands the profile documents, so a carelessly built request can command the motor. Before your first write to the Q words, put the drive in a state where an unexpected start cannot hurt anyone: motor isolated or the machine locked out.
If your controller generation is an S7-300 rather than an S7-1200, the same parameter data is reached through acyclic SFB52 reads instead; the route is laid out in PKW register access through acyclic SFB52 reads on an S7-300.
The checks, in order #
- Confirm the selected profile and the configured I/O lengths against the manual, and confirm the response window is the I area the device configuration actually assigns to PKW.
- Record the Q and I addresses, and identify every request field — command, register number, any count or subindex — exactly as the manual defines it for this profile.
- Confirm the register you want is among the ones the profile documents; the relay answers only registers reachable through this channel.
- Encode the register number in big-endian order at the field boundaries (the next section works one through with real numbers).
- Move the complete request words into the Q words in one operation each, and watch them online with a watch table so you know what actually left the PLC.
- Evaluate the response status, and copy the returned data into a program memory word only when that status indicates a completed, valid response.
- Clear or rewrite the request according to the documented handshake, so stale response data is never mistaken for a fresh answer.
Encoding the register number, byte order #
Take the register from the thread, 457. Convert it: 457 = 1 x 256 + 201, and 201 = 12 x 16 + 9, so 457 = 16#01C9. The S7-1200 stores a Word with the high byte first, so moving a Word value of 16#01C9 into the register-number field puts 01 then C9 on the wire — exactly the big-endian order the profile requires.
The classic mistake is assembling that field from individual bytes computed on a little-endian source. The bytes then arrive as C9 01, the relay reads 16#C901, which is 51457 — not a valid register — and it answers with an error status instead of data. The same arithmetic applies to the second register named in the thread: 700 = 2 x 256 + 188, and 188 = 11 x 16 + 12, so 700 = 16#02BC; reversed it reads 16#BC02, which is 48130. An error status on an otherwise correct request is the signature of a byte-order fault.
Decoding the response and the failure boundary #
When the status in the response window indicates a valid completed response, copy the returned value into a program memory word and use it from there. When it does not, the boundary tells you where the fault sits:
- The Q words never change: your request logic or the output mapping is wrong. Fix the program side before touching anything else.
- The Q words change but the response window never fills: compare every request field and its byte order against the manual, field by field.
- The status changes but reports an error naming the register: the relay received the request fine and rejected the register number or its encoding, which is usually the byte-order fault above; the page on resolving a PKW register-not-found error on PROFIBUS walks that specific status down.
- The status is valid but the value looks wrong: you are reading a different register than you intended, so recheck the field you actually wrote.
If a documented, byte-order-correct request still produces no response, escalate to the device manufacturer's support channel with the hardware and software versions, the profile selection, the mapped addresses, and the captured request and response words. The decision in every case: leave the DP configuration untouched, write the complete request into the mapped Q words with big-endian fields, accept data only on a valid status, and treat an error status as information about the request, not a reason to change the register number.
Questions asked
Does the CM 1243-5 or the DP network need reconfiguration when only the PKW words are dead?
No. Cyclic words updating end to end prove the DP master-slave link, the slave address and the bus parameters are correct. The PKW channel rides on that same link and fails only at the application level, so leave the network and device configuration alone and fix the request logic in the program.
Can I reuse an S7-1200 Modbus RTU example for this TeSys T link?
No. A Modbus RTU example defines function codes, unit identifiers and serial register addressing for a Modbus network. This link carries the TeSys T PKW telegram over PROFIBUS DP, whose request and response fields are defined in the drive's PROFIBUS manual. Copying a Modbus example produces requests the relay will not answer.
Why does the relay answer with an error instead of returning register data?
Usually byte order. Register 457 must reach the relay as 16#01C9; if the two bytes land reversed, the relay reads 16#C901, which is 51457 and not a valid register, so it sets the error status instead of returning data. Check that the bytes of the register-number field sit in big-endian order before changing anything else.
What information should I collect before contacting support about a dead PKW channel?
The exact hardware and software versions (LTMR100PFM v2.6, LTMEV40FM v1.6, CM 1243-5 v1.3, CPU 1212C v3.0, TIA Portal V13), the selected profile, the mapped input and output addresses, and an online capture of the request words you wrote and the response words received. With that, support can decode the transaction directly; without it, the fault cannot be separated from a configuration error.