How-to
Using a Beijer HMI as a Modbus bridge to an S7-1200
Short answer
Yes. The Beijer HMI polls the RS485 device as a Modbus RTU client and its data-transfer function copies the values into tags the S7-1200 already shares with the screen over Ethernet, so the PLC needs no serial module; the bridge lives in the HMI application.

On this page
Yes — put the bridge in the screen. The S7-1200 and the Beijer HMI already exchange data over Ethernet, so the screen's serial port polls the RS485 device as a Modbus RTU client while a transfer step inside the HMI project copies each value into tags the PLC already shares with the screen. The controller keeps its program untouched and needs no serial module. This is an application-level bridge: the HMI reads a value through one driver and writes it through another, so the work a dedicated protocol gateway would otherwise do falls to the screen's driver pair and transfer logic. The steps below set the roles, wire the bus, build the exchange area in the PLC, and prove one value end to end.
Why the S7-1200 needs no serial module here #
The S7-1200 needs its CM 1241 RS422/485 module only when the controller itself runs Modbus RTU on serial, because that module sits behind the PLC's own Modbus RTU instructions. Siemens documents it with a maximum of 1000 m of shielded cable, baud-rate dependent, and 707 V DC type-tested isolation between the RS485 signals and ground; those figures matter only if you later move the polling into the PLC. In this arrangement the PLC never touches the serial bus, so the module, its slot and its commissioning are all avoided.
RS485 names the electrical layer, not the application, so confirm from the device manual that the port really speaks Modbus RTU before wiring anything. Keep the architecture straight too: a transparent gateway forwards Modbus requests between two networks, while this bridge terminates both protocols inside the HMI and copies values at the application level. If the serial device must someday serve a controller directly, with no screen in the loop, that becomes a gateway selection problem — the case covered in why a legacy serial PLC needs a gateway for Modbus RTU.
Building the bridge, step by step #
- Collect the device's Modbus register table before opening the HMI editor: for each point, record the register area, the first register address, read or write access, the data type, the scaling and the word order of anything wider than 16 bits.
- Leave the working Siemens connection alone. Identify which driver the HMI project currently uses for the S7-1200 over Ethernet and keep it as the Ethernet side of the bridge; there is no reason to convert a working connection to Modbus TCP.
- Add the screen's serial Modbus client. The driver help covering Modicon Modbus Master RTU/ASCII documents the serial RTU role: select RTU, enter the device's station number, and copy the baud rate, parity and stop-bit settings from the device manual rather than from a default.
- Wire the two-wire RS485 bus from the terminal definitions in both manuals, because manufacturers do not label polarity uniformly. Terminate at the two physical ends of the bus only and apply the shield as the device requires; the discipline is the same one behind configuring RS232 devices on a shared RS485 fieldbus — one defined line, one termination set, non-colliding addresses.
- Prove the serial link before building on it: poll one documented, read-only register and check the value against the device's own display, then watch the driver diagnostics over repeated polls for recurring timeout or framing errors.
- Reserve an exchange area in the S7-1200: a dedicated data block with three zones — device-to-PLC values, PLC values the device must see or commands it must receive, and a status word the HMI rewrites every cycle. The HMI writes only into this block, never into physical outputs, so the PLC program stays the sole owner of the actuators.
- Add the cross-driver transfer using the facility the screen's own documentation names for it — a scheduled transfer block or a cyclic script, named differently from model to model. Complete each serial read before publishing its result, and on a failed poll update the status word without republishing the last value as fresh.
- Test both directions you will actually use. Compare one mapped value at the device, on the screen and in the PLC monitor; then transfer a value chosen to expose scaling or word-order mistakes and confirm sign, magnitude and units at all three points. Leave command writes to the device disabled until the read path has survived that test.
Sizing the polls for a 40-register device map at 19200 bit/s, 8E1 #
Inputs: the device exposes 40 holding registers, all read-only (an example map; take the real count from its register table). One Modbus read returns up to about 125 contiguous registers, the limit documented in the Modbus interface description the serial driver follows. The link runs at 19200 bit/s with 8 data bits, even parity and one stop bit (example settings; match them to the device manual), and a Modbus RTU character costs 11 bits on the wire: start, 8 data, parity, stop.
The rule in words: a poll costs its request frame plus its response frame, with every byte at 11 bits, plus a silent gap of at least 3.5 character times before each frame, and the frame time is the total bits divided by the bit rate.
Arithmetic: the read request is 8 bytes. The response carries address, function and byte count (3 bytes), the data at 2 bytes per register (40 × 2 = 80 bytes) and the checksum (2 bytes), for 85 bytes. Together 8 + 85 = 93 bytes, so 93 × 11 = 1023 bits, and 1023 ÷ 19200 bit/s = 53.3 ms. The gap is 3.5 × 11 = 38.5 bits, or 2.0 ms at this rate, and two gaps per poll add about 4 ms. One complete refresh therefore holds the wire for roughly 57 ms, and 40 registers sits far below the single-read limit, so one request covers the whole map.
Decision: set the transfer cycle at about five times the wire time, which keeps the serial link at roughly a quarter of capacity or less. Here 57 ms of wire against a 250 ms cycle is 57 ÷ 250 = about 23 percent, and the S7-1200 receives the full map four times per second. With this map against the single-read limit there is nothing to split and no reason to change the serial rate; if a real map outgrows the single-read limit, split it into consecutive blocks and add each block's frame and gap time the same way — wire time grows roughly in step with the register count.
What moves the answer #
Direction changes the roles. If the device must see the PLC's I/O or receive commands, the HMI writes PLC-authored values into the device's writable holding registers, with the PLC program as the only source of each command value; alternatively the HMI runs its Modbus Slave RTU/TCP driver and the device's own master polls the screen at the station number that driver assigns to it. Decide before wiring, because the roles decide who initiates every transaction on the two wires.
Failure handling belongs in the design, not in an alarm after the fact. The PLC logic must act on bridge values only while the status word keeps advancing, and upstream systems must treat an unchanged map as a serial fault — the same reasoning behind the checks a SCADA I/O server runs when serial PLC values freeze.
Growth moves the numbers, not the architecture: more registers mean more read blocks and a longer wire time, as the worked example shows, while the HMI keeps doing the serial work and the S7-1200 keeps reading its own tags over Ethernet.
Questions asked
Does the S7-1200 need any serial hardware for this bridge?
None for this arrangement, because the PLC never sends or receives a serial frame; the screen does that work. The CM 1241 RS422/485 module is required only when the PLC itself runs its Modbus RTU instructions, for example if the screen is removed from the machine and the controller must poll the device on its own serial bus.
Can the RS485 device read the S7-1200's I/O through the same screen?
Yes. The usual route is a set of writable holding registers in the device that the HMI keeps filled from PLC tags; write to a spare register first and confirm the device accepts the value before touching a register that drives behavior. The alternative is the HMI's slave role, where the device's master polls the screen directly; the slave driver's documentation allows up to eight masters over Ethernet.
Why do 32-bit values arrive scrambled through the bridge?
A Modbus register is one 16-bit word, so a floating-point or double-integer value occupies two consecutive registers, and the device's manual decides which word comes first. If the HMI and the device disagree, the magnitude is wildly wrong while the poll itself succeeds. Swap the word order in the driver or in the transfer, then confirm with a known value read at the device, on the screen, and in the PLC.
How should the PLC program treat values that arrive through the bridge?
As HMI-produced data, not as device data. Have the HMI set a transfer-status or heartbeat word in the exchange block only after a successful poll, and let the PLC logic act on the process values only while that word keeps changing. When the serial poll fails, the screen writes the status but leaves the old values untouched, so nothing stale is mistaken for a fresh measurement.


