How-to
Wiring a Host Link serial cable from PLC to HMI
Short answer
Wire the cable as a crossover, not straight through: PLC SD on pin 2 to the HMI's RD, PLC RD on pin 3 to the HMI's SD, SG pin 9 to SG, shield at the PLC cabinet end only. Set Host Link unit 00 and 9600 bps, 7 data bits, even parity, 2 stop bits on both ends, and release the port DIP switch so the PLC Setup applies.
On this page
- What Host Link expects of the wire
- Build the RS-232C crossover cable
- Set the PLC serial port to Host Link
- Match the HMI driver to the same numbers
- Point the tags at memory the CPU really has
- Checking screen poll load on a 9600 bps Host Link port
- Bring the link up and prove it
- When the run is long or noisy
- Questions asked
Build the Omron Host Link cable as a crossover, not a straight-through modem lead: PLC SD on pin 2 lands on the HMI's RD, PLC RD on pin 3 lands on the HMI's SD, and SG on pin 9 runs through to SG with the shield grounded at the PLC cabinet end only. On the PLC side, turn off the serial port's DIP-switch default so the PLC Setup applies, set the port to Host Link (SYSMAC WAY) with unit number 00, and fix the framing at 9600 bps, 7 data bits, even parity and 2 stop bits; then set the identical values in the HMI's Omron Host Link driver. Straight-through pinout, a DIP switch left on default, a unit number mismatch and a framing mismatch are what kill almost every first attempt at this link.
What Host Link expects of the wire #
Host Link (SYSMAC WAY) is Omron's original serial protocol, predating FINS, and it runs master-slave over RS-232C or RS-422 at up to 19.2 kbps. The documented connection is one PLC to one terminal, reading and writing words and bits through the PLC's RS-232C port. That keeps the physical job small: one shielded cable, three conductors that do the work — SD, RD and SG — and a shield. The HMI is the master and drives every transaction, so a dead screen is a cable or settings fault, not traffic contention. The generic bring-up is the same as connecting an HMI to a controller over a serial COM port; what changes here is the pin map, the DIP-switch default and the framing.
Build the RS-232C crossover cable #
Confirm the PLC connector against your CPU's manual before crimping. The common Omron RS-232C D-sub carries FG on pin 1, SD on 2, RD on 3, RS on 4, CS on 5 and SG on 9, and a few units place some of these differently. On the HMI end, take RD and SD from the maker's connect guide for the exact terminal model, because pin assignments vary between HMI models. Build the cable with both devices powered down; hot-plugging RS-232C wiring is how transceivers die.
- Cut shielded cable to the run length and keep it out of any raceway shared with drive motor leads, contactor coils or servo power.
- Cross the data pair: the PLC's SD line goes to the HMI's RD terminal, and the PLC's RD line goes to the HMI's SD terminal. A straight-through cable leaves transmitter facing transmitter, and the link stays silent at any framing.
- Run SG through to SG. Omitting the signal ground is the classic cause of framing errors that appear only after the panel has warmed up.
- Leave flow control out of the cable. Host Link normally runs with it off; if your CPU's port insists on hardware handshake, loop RS to CS at the PLC connector instead of running handshake wires the length of the cable.
- Land the shield drain wire to FG or PE at the PLC cabinet end only. Grounding both ends builds a ground loop between the panel door and the cabinet — the noise path behind sporadic transmission errors.
Set the PLC serial port to Host Link #
Clear the DIP-switch default first. On CS and CJ CPUs the front DIP switch includes a position that forces the serial port to standard default settings; while it is on, every value you enter in the PLC Setup is ignored. Turn it off so the port reads your setup.
Then, in the PLC Setup for the port you wired:
- Set the serial mode to Host Link.
- Set the Host Link unit number — 00 is normal for a point-to-point link — and make it equal the station number you will enter in the HMI driver.
- Record the framing: baud rate, data bits, parity and stop bits. The common Host Link default is 9600 bps with 7 data bits, even parity and 2 stop bits, but read what your setup actually holds instead of assuming it.
- Save and power-cycle the CPU. Several Omron CPU families apply serial port settings only at startup, so a saved setup that has never seen a restart still runs the old values.
For a CP-series CPU worked through end to end, the article on commissioning CP1L Host Link serial reads to SCADA follows the same port settings out to the SCADA side.
Match the HMI driver to the same numbers #
In the HMI project software, add the Omron Host Link driver for the CPU family — Weintek's connect guide, for one, covers the C, CPM, CPL and CQM series — then enter the station or unit number, speed, data length, parity, stop bits and flow control taken from the PLC side. Select the COM port you actually cabled: dual-port panels accept a valid configuration on the port you did not wire, and the screen just times out.
| Setting | PLC side | HMI driver side |
|---|---|---|
| Protocol | Host Link serial mode | Omron Host Link driver |
| Baud rate | port setting | speed |
| Data bits | 7 or 8 | data length |
| Parity | even / odd / none | parity |
| Stop bits | 1 or 2 | stop bit |
| Unit number | Host Link unit no. | station number |
| Flow control | port setting | none |
Every row has to read the same on both ends, or each poll ends in a timeout.
Point the tags at memory the CPU really has #
| Omron area | Typical use from the screen |
|---|---|
| CIO | I/O and internal bits: pushbuttons and lamps |
| W | coordination bits between screen and program |
| DM | setpoints, recipe values, numeric displays |
| HR / AR | retentive flags and status words |
| TIM / CNT | timer and counter present values and done bits |
Group the screen's numeric data into contiguous DM blocks. At the default framing, every scattered single-word address becomes its own poll frame, and the frame count is what sets update speed.
Checking screen poll load on a 9600 bps Host Link port #
Inputs, each from a documented setting: the port framing of 9600 bps, 7 data bits, even parity and 2 stop bits — the common Host Link default as read back from the PLC Setup — plus the one start bit that the RS-232C asynchronous frame puts around every character. The rule: bits per character equals start bits plus data bits plus the parity bit plus stop bits, and characters per second equals the port bit rate divided by bits per character.
The arithmetic: 1 + 7 + 1 + 2 = 11 bits per character, and 9600 bps ÷ 11 bits per character = 872.7, so the port delivers 872 whole characters per second in each direction. Result: roughly 870 characters per second per direction, before protocol gaps and retries. Decision: hold each screen's polled traffic under about 800 characters per second at this framing — above that, updates visibly lag. When a screen needs more, group its tags into contiguous blocks first; if it still lags, set both ends to the Host Link maximum of 19.2 kbps, which carries 19,200 ÷ 11 = 1,745 characters per second. The failure pattern of a screen that starts fast and drifts into sluggish updates is worked through in why an HMI freezes or updates slowly over serial.
Bring the link up and prove it #
- Ring the finished cable out with both ends unplugged: SD-to-RD continuity in each direction, SG end to end, and the shield open at the HMI end.
- Power up the PLC and confirm the DIP switch is off and the setup holds the framing you recorded.
- Transfer the project to the terminal and power-cycle it.
- Split the first fault by symptom. Total silence points at the physical layer: a straight-through cable, the wrong COM port selected in the driver, or the DIP-switch default still overriding your setup. Steady timeouts with the wiring verified point at a framing or unit number mismatch.
When the run is long or noisy #
RS-232C is point-to-point and happiest inside the classic 15 m guideline, so keep it to cabinet-to-panel distances. For a longer run, or a cell full of drives, move the same Host Link traffic to RS-422 four-wire: the PLC's SDA and SDB pair lands on the HMI's RDA and RDB, and the PLC's RDA and RDB pair lands on the HMI's SDA and SDB, plus signal ground. A reversed pair gives a permanently dead link rather than a degraded one, so with zero receive activity, swap the pair before suspecting the port. Enable termination resistance only at the two physical ends of the segment — on Omron serial option boards it is a slide switch or jumper on the board itself. The trade-offs are the same as moving an HMI serial connection from RS-232 to RS-485.
Questions asked
How do I tell a straight-through cable from the crossover this link needs?
Unplug both ends and ring the cable out with a meter. In the crossover Host Link needs, pin 2 at one end rings to pin 3 at the other, pin 3 rings to pin 2, and pin 9 rings to pin 9. If pin 2 rings straight through to pin 2, you built a modem cable, and the link stays silent at any framing.
Can one Host Link serial port serve two HMI panels?
The documented Host Link connection is one PLC to one terminal, so a second panel needs its own serial port on the CPU, an RS-422 multidrop arrangement your HMI maker documents for Omron Host Link, or, past a couple of operator stations, a move to Ethernet FINS.
Why does one HMI object stay dead while the rest of the screen updates?
The Host Link driver in the HMI can expose more memory areas and ranges than a smaller CPU actually implements. A read of an unimplemented area comes back as a Host Link error response rather than a timeout, so the link looks healthy while that object shows nothing. Check the areas your exact CPU supports before assigning addresses.
Which Omron CPU families does an HMI Host Link driver cover?
The Host Link connect guides published by the HMI makers list the supported families. Common coverage is the C, CPM, CPL and CQM series, and CS and CJ CPUs speak Host Link on their serial ports. Check the guide for your exact CPU and terminal pairing before building the cable, because port availability differs inside each family.