Can an X20 PLC receive RS-485 frames with a 9-bit address-mark byte?

We are replacing an existing operator panel with a B&R PLC and HMI. The PLC will act as a slave on a shared, half-duplex RS-485 bus. There is one PLC per panel, and a master can poll multiple panels.

The supplied panel and master firmware appear to use an 8051 UART in 9-bit multiprocessor mode at 19200 baud. The master sets the ninth bit on the first byte of each poll (the address) and clears it on the remaining bytes. The panel marks the first byte of its reply the same way. The original panel uses hardware address recognition; our PLC would need to receive the shared bus and filter frames by address.

We are considering an X20CP1684 with an X20IF1030 and DVFrame. Is there a supported B&R interface or Automation Runtime method to:

  • Receive the 8-bit data from all bytes even though the ninth bit differs between the address and data bytes?
  • Access or configure the ninth bit directly, or safely handle the parity/framing errors that may result from using a conventional 8-bit UART setting?
  • Transmit a marked first reply byte followed by unmarked bytes, while meeting the master’s response timing?

Would setting fixed mark/space parity (if supported by the selected interface) work for any part of this exchange? Have you tested this with an X20IF1030, X20CS1030, or another B&R serial module? If direct communication is not supported, is a 9-bit-capable gateway or serial coprocessor the practical solution?

We have not yet verified the behavior on the target hardware, so experience or test results would be very helpful.

Hello,

I can imagine that this will be very difficult. Officially, the UARTs and DvFrame only support a maximum of 8 data bits.

One possible workaround would be to use the parity bit as the 9th data bit.

After all, we have the option here to set it permanently to either ‘Mark’ or ‘Space.’

It would mean that we would have to quickly reconfigure the UART during send procedure an handle parity errors during receive.

However, with PLCs, we’re not dealing with a pure microcontroller environment where you simply have to change the settings of a few registers.

Maybe we have a chance using a X20CS1030 in Flatstream model without the help of DvFrame and set Parity by pure register writing e.g. Type of parity check.

I hope someone has a better idea.