IMDHMIControls LibraryShop main store

Troubleshooting

RF180C on an S7-300: hardware address, not hardware identifier

PLC programming Published 5 min read

Short answer

An ET200S IM151-8 has no hardware identifier for the RF180C, only the configured hardware address, which the Ident block takes from the compiled device configuration. For an MDS D100's user memory range 0000 to 006F inclusive, ADR_TAG is 0 and LEN_DATA is 112 decimal; 111 leaves the last byte out. STATUS 16#DF80_B00A on a write is the transaction's status code, not a presence problem.

On this page
  1. Why the IM151-8 shows a hardware address and no identifier
  2. Which block to use when FB45 is not in TIA Portal
  3. Reading STATUS 16#DF80_B00A after presence turns TRUE
  4. Setting ADR_TAG and LEN_DATA for an MDS D100 with 112 bytes
  5. Checks before you call the write path done
  6. Questions asked

On an S7-300-class CPU such as the ET200S IM151-8 there is no hardware identifier to look for: the RF180C is wired to the RFID block through the configured hardware address, and that address comes out of the compiled device configuration. Drive the reader with the Ident blocks from the SIMATIC Ident library that TIA Portal integrates; FB45 belongs to a different controller generation. When the write fails with STATUS 16#DF80_B00A after presence goes TRUE, that code is the transaction's own status for your block version — and in this case the fault underneath it was a transponder end address entered as a byte count. The worked example below sets both parameters for an MDS D100, and the checklist at the end verifies the write path.

Why the IM151-8 shows a hardware address and no identifier #

A hardware identifier is the object reference that newer controller generations assign to each configured device, and the Ident blocks on those CPUs expect it. The IM151-8 is the CPU of an ET200S station programmed as an S7-300-class device, and on this class the block interface takes the configured hardware address instead. Both values point at the same configured RF180C; which one a block accepts is decided by the CPU generation, not by the reader.

Read the address from the compiled device configuration and connect it to the block's addressing input. With two RF180C heads on one IM151-8, keep one address-to-reader association per head and never share it between block connections. If a head is not even reachable on the network, that is a different fault with its own fix — see the guide to fixing a PROFINET device that TIA Portal reports as not reachable.

Which block to use when FB45 is not in TIA Portal #

The older S7-300/400 manuals describe FB45, but in a TIA Portal project the RFID operations of an RF180C reader are controlled by the Ident blocks from the SIMATIC Ident library integrated in TIA Portal; those blocks frame the read and write commands. A block number from another library or engineering environment is not a selection rule — pick the library whose documentation names your CPU, the RF180C and your engineering software together. For the module side of FB45-based setups, the RF180C FB45 configuration and LED troubleshooting guide covers the configuration and LED states in detail.

The UDTs the editor creates when you place an Ident block are type definitions, not commands. Declare interface variables of those types, give each block its own instance data block, and connect the fields. A UDT imported into the project does nothing until a block's interface uses it, so the generated types are not a substitute for the instance data.

Reading STATUS 16#DF80_B00A after presence turns TRUE #

Presence TRUE says the reader sees a tag in the field. It says nothing about whether the command parameters, the selected block, the transfer buffer or the requested range are valid, so a failed write with presence TRUE is expected to report a transaction status rather than a presence fault.

The STATUS output of the Ident blocks returns hexadecimal codes when an error occurs, and the meaning of each code is listed in the status table of the documentation for your library version. For this exact code, the resolution note for the RF180 error 16#DF80_B00A works through the case step by step. After decoding it, check the parameters the transaction carries — the next section is the one that resolved this instance.

Setting ADR_TAG and LEN_DATA for an MDS D100 with 112 bytes #

Inputs for this case:

  • Transponder: an MDS D100 (I-Code SLI), the card specified for this job; its user memory occupies byte addresses 0000 through 006F, inclusive.
  • Block: a read or write Ident block whose ADR_TAG input selects the first transponder byte and whose LEN_DATA input carries the byte count, as the block documentation defines them.

The rule in words: bytes transferred = end address − start address + 1. An inclusive end address is a position, never a count.

The arithmetic, in decimal after converting the hexadecimal end address:

006F hex = 6 x 16 + 15 = 111
bytes    = 111 - 0 + 1 = 112
last byte = 0 + 112 - 1 = 111 = 006F hex

Result: ADR_TAG takes 0 and LEN_DATA takes 112 decimal; the transaction then covers 0000 through 006F exactly. 006F is a hexadecimal address, and its decimal value 111 is the last byte's position — one less than the count — so make the radix explicit when you enter the values.

Decision: enter 112 decimal. A length of 111 is a legal partial access that covers only 0000 through 006E and leaves the last byte outside the transaction; if the card was commissioned that way, rewrite the full range and verify that the byte at 006F now reads back what you wrote.

Checks before you call the write path done #

Commission writes on a tag reserved for tests, not on one that carries production data. Then run these checks in order:

  1. Read back the configured hardware address for each RF180C from the compiled configuration and confirm each block connection maps to the intended reader, not just to the same network device.
  2. Compare the block, its UDT-typed interface variables and its instance data block against the SIMATIC Ident library documentation for your TIA Portal version.
  3. Set ADR_TAG and LEN_DATA as the worked example above gives them, and keep the last accessed address at or below the end address of the card.
  4. Provide a PLC-side buffer at least as long as the requested byte count, laid out the way the block interface declares.
  5. Present the tag to the intended reader and watch presence go TRUE on that reader's connection only.
  6. Execute one command at a time and capture DONE, ERROR and STATUS before you launch the next transaction.
  7. Write a known byte pattern, read the same range back, and compare every byte — including the last one in the range.
  8. Keep the fixed-coded identification number as its own read-only whole-ID operation, separate from user-memory writes.

If every check passes and the byte at the end of the range reads back correctly, the write path is commissioned; if any check fails, the STATUS code for your block version is the next input, not a guess about the presence bit.

Questions asked

I entered a length of 111 because the project note said 06F. Is that wrong?

It is a valid partial access, not a full one. The end address 006F equals 111 decimal, and a count of 111 from address zero covers bytes 0000 through 006E only, so the byte at 006F never enters the transaction. For complete coverage set LEN_DATA to 112 decimal with ADR_TAG at 0. Confirm the parameter meanings in the help of your block version before reusing the numbers on another card type.

How much user memory do other ISO transponders give?

Typical ISO transponder sizes are 112 bytes, 256 bytes and 992 bytes of EEPROM, or 2000 bytes of FRAM. Each chip also carries an 8-byte unique serial number that is read separately from user memory, so do not count it inside the ADR_TAG to LEN_DATA range.

Where is the fixed-coded ID number on the MDS D100?

It lives in a separate read-only range with start address FFF0 and length 0008, and it can only be read as a whole. Keep that operation apart from user-memory writes: it has its own addressing, and a write to user memory never touches it.

Can I still use FB45 at all in TIA Portal?

FB45 is documented for migrating an existing S7-300/400 RFID project to an S7-1500 in TIA Portal, and the hardware from that project must be included in STEP 7 Professional. For an S7-300-class CPU such as the IM151-8, the SIMATIC Ident library blocks are the ones the engineering environment supplies for the RF180C.

Keep reading

  • How-to

    Write an S7-1200 heartbeat in ladder logic in TIA Portal

    Tie the light to a detector, not to the heartbeat level: time the on half with one TON and the off half with a second TON, both at three times the measured state time, and OR the two done bits into one communication-fault coil. With a PC heartbeat that changes once per second, PT is 3 s and the fault trips 3 s after the last change; add TCON and TDIAG supervision when the PLC owns the TCP connection.

    PLC programming

  • Troubleshooting

    Fix block format not recognised when uploading an S7-200 program

    A completed upload that Micro/WIN V4.0 cannot display means the transfer worked and the parser failed: the block in the CPU belongs to an older toolchain generation. Save the upload untouched, open the original project in the Micro/DOS or Micro/WIN release that created it, and convert a copy in V4.0. Download nothing until the recovered project opens, compiles and matches the block inventory you recorded.

    PLC programming

  • Explainer

    Which S7-300 modules TIA Portal V13 supports, and where to look

    A STEP 7 V5.5 project proves nothing about TIA Portal V13. Check the exact CPU and modules in the installed hardware catalog under SIMATIC S7-300 > CPU in Network view, and against the vendor's supported-hardware list. A CPU missing there, such as the CPU315 in the reported case, is a no; a GSD file cannot add it.

    PLC programming