IMDHMIControls LibraryShop main store

Troubleshooting

Fix an Omron CJ1M serial connection that will not go online

Industrial networks Published 5 min read

Short answer

When the CJ1M cable pin map checks out but CX-Programmer Auto Online fails, the wiring is almost never the fault. The failure lives in the COM port the operating system assigned the USB-to-serial adapter, or in the serial settings the CPU is running, which a switch setting can force away from the project values. Test cable, then COM selection, then PLC-side settings, and change only the layer the readings condemn.

On this page
  1. The port and the cable that fit it
  2. Verify the cable first: six checks
  3. Confirm the COM port the adapter actually took
  4. Working the case: cable good, COM7 selected, still offline
  5. The PLC side: the settings behind the switch block
  6. Order of attack when it stays offline
  7. When to call it fixed — and the traps
  8. Questions asked

When a hand-wired cable matches the CJ1M pin map — PC to PLC 2-2, 3-3, 4-8, 5-7, 9-5, with pins 1, 4 and 6 shorted — and CX-Programmer's Auto Online still will not bring the PLC up, the wiring is almost never the fault. The failure sits one layer up: the COM port the operating system assigned to the USB-to-serial adapter, or the serial settings the CPU is actually running on the port, which a switch setting can force away from the values in your project. Test the three layers in order — cable, COM selection, PLC-side settings — and change only the one the readings condemn.

The port and the cable that fit it #

The CJ1M-CPU21/22/23 CPU units carry a built-in RS-232C serial port on a D-SUB 9-pin male connector, with a connector set used for the serial link; the port's wiring and its settings are documented in the CPU unit's own manual. Omron sells a connection cable for CJ-series serial ports, the CJ1W-CN226, and the hand-wired equivalent is the pin map below. If a serial option board adds a second port, establish which physical port your plug occupies before comparing settings — each port carries its own configuration.

Verify the cable first: six checks #

PC pin PLC pin
2 2
3 3
4 8
5 7
9 5
1, 4, 6 shorted together

The 1-4-6 group is a jumper, and the wiring list does not say which connector carries the short — settle it against the pin-number markings instead of assuming. Work with the cable off the PLC, and double-check all connector wiring before you switch the power supply back on.

  • Bell each of the five pairs with a continuity meter, reading the molded pin numbers as you go.
  • D-SUB numbering can look mirrored viewed from the wiring side; trust the markings, not the view.
  • Confirm the jumper on the connector your wiring document assigns it to.

Six passing checks clear the wiring layer. The same bell-and-read discipline proves any vendor's programming cable, including the DB9 pinout for the TD200-to-S7-200 programming cable, which crosses 2-2, 3-3, 7-7 and 8-8.

Confirm the COM port the adapter actually took #

A USB-to-serial adapter enumerates as a virtual COM port, and the operating system — not CX-Programmer — decides its number. Open the system's device list with the adapter plugged in and read the number it reports. In CX-Programmer's communications selection for the connection, set exactly that port, then run Auto Online and accept the confirmation prompt.

A perfect cable cannot rescue a wrong COM selection, because the software is then addressing a different interface entirely. And a matching COM number proves nothing beyond the PC layer: it does not test the wiring, and it does not test what the PLC port is set to. It clears its own layer, which is exactly what you need from it.

Working the case: cable good, COM7 selected, still offline #

Inputs:

  • CPU: CJ1M-CPU21, read from the housing.
  • Cable: hand-wired to the pin map above.
  • Adapter: USB-to-serial converter, reported by the system's device list as COM7.
  • Software: CX-Programmer with COM7 chosen in the PLC communications selection; Auto Online run and the prompt accepted.
  • Result: no connection.

Rule in words: a serial go-online has three independent layers — conductors, PC port selection, PLC port configuration — and each layer is cleared by its own test, in that order, with nothing else touched.

The arithmetic:

  • Conductor checks: five pairs (2-2, 3-3, 4-8, 5-7, 9-5) plus one jumper group (1-4-6) = 6 checks; continuity passes 6 of 6.
  • COM comparison: adapter number 7, CX-Programmer number 7; 7 − 7 = 0 difference, a match.
  • Layers cleared 2 of 3; 3 − 2 = 1 layer left, the PLC-side configuration.

Result: the fault is in what the PLC port is running — its serial parameters, and where those parameters come from.

Decision: once continuity is 6 of 6 and the COM difference is 0, stop adjusting cable and port selection and open the CPU's switch block and the port's settings. That is where this fault was found: the fix reported back was a DIP-switch setting.

The PLC side: the settings behind the switch block #

  • Read the exact CPU model off the housing before anything else. A CQM1 CPU is not a CJ1M; wiring or switch positions carried over from another series produce exactly this silent failure.
  • Open the settings for the physical port in use — the built-in RS-232C port on CPU21/22/23 units, or an option board's port — in the controller setup held in your project.
  • Compare the port's speed, data bits, parity, stop bits and selected protocol against what the CX-Programmer connection is set to use, and change a parameter only where the two sides demonstrably differ.
  • Check the CPU's switch pins against the manual for that exact CPU: the pins decide whether the port follows the project's settings or a fixed default set. Pin numbers and ON/OFF meanings are model-specific and printed in the CPU's documentation; the case above was closed by one switch setting.
  • Record the original values before any change, and move one pin or parameter at a time.

Order of attack when it stays offline #

  1. Confirm the CPU model and the physical port the cable is in.
  2. With the cable off the PLC, bell the five pairs and the jumper — six checks. Repair any failure; at six passes, leave the cable alone.
  3. Reconnect, read the adapter's COM number in the device list, and select that number in CX-Programmer.
  4. Run Auto Online once and read the result.
  5. With the cable and the COM layer cleared, go to the switch block and the port's configured values, and correct the one confirmed mismatch.
  6. Retry Auto Online. If it still fails, record the CPU model, port, COM number, continuity results and the settings in force, and work from that record instead of changing settings at random.

When to call it fixed — and the traps #

Call it fixed only when Auto Online completes and CX-Programmer identifies the expected PLC, and confirm the open project matches that PLC before you edit or transfer anything. The recurring traps:

  • Trusting a pin diagram without checking which side you are viewing it from.
  • Assuming one serial wiring fits every CJ or CQM CPU.
  • Treating the adapter's COM number as proof that the PLC is listening.
  • Copying switch positions between CPU models.

The settings that carry the go-online also carry everything else you later hang on that port; the sequence is the one behind commissioning CP1L Host Link serial reads to SCADA, where the same port discipline decides whether SCADA reads succeed.

Questions asked

Does the CJ1W-CN226 cable replace the hand-wired pin map?

Yes. The CJ1W-CN226 is the cable sold for connecting a PC to CJ-series serial ports, so its pinout is the manufacturer's and the six continuity checks are already satisfied. A link that still fails with the original cable has its fault above the wiring layer: start at the device list and the COM selection, then the PLC-side settings.

Where do I find the DIP switch positions for my CPU?

In the operation or hardware manual for the exact CPU, in the switch section: pin numbers and what each ON and OFF position does are listed per model, including any pin that forces the serial port to a fixed default instead of the values set in the project. The manual covering the CJ1M-CPU21/22/23 units documents the built-in RS-232C port; positions from a CQM1 or CS1 manual do not transfer.

Why does Auto Online fail when the COM port is right?

Auto Online reaches the PLC only when both ends run matching serial parameters. With continuity and COM selection cleared, the mismatch is on the PLC side: the port is running settings that differ from the connection's, or a switch pin has forced a fixed default set in place of them. Correct the one confirmed difference and retry once.

Can I reuse this pin map on a CQM1 CPU?

No. The map in this article is the CJ-series PC-to-PLC connection; a CQM1 CPU is a different generation with its own port wiring and switch layout. Use the wiring from the CQM1's own documentation. Carrying the CJ map onto it produces exactly the silent, no-result failure traced here.

Keep reading

  • Troubleshooting

    MicroLogix 1000 not found in RSLinx after a channel change

    The MicroLogix 1000 is missing from RSLinx because the channel-configuration download changed its serial port from DF-1 to DH-485, so the DF-1 driver and Auto-Configure can never verify against it. Reach the controller through DH-485 with a 1747-UIC at its default 19200 baud, go online, set Channel Configuration back to DF-1, download, and re-run Auto-Configure.

    Industrial networks

  • Troubleshooting

    Why DF1 reads work on an SLC 500 but not a PLC-5

    The DF1 link layer is identical on both processors, so your cable, baud and channel settings are not the fault. The difference is the PCCC command dialect: SLC 500 and MicroLogix answer protected typed logical reads that address data by byte offset, while the PLC-5 answers typed reads that address words. An RTU speaking only the SLC dialect reads nothing from a PLC-5 — set it to PLC-5 mode or get PLC-5 support from the vendor.

    Industrial networks

  • Troubleshooting

    Fix a Raspberry Pi PROFINET device not reachable in TIA Portal

    Discovery in TIA Portal's name-assignment dialog proves only that the Pi's link is visible. Reachability arrives when the CODESYS runtime lets the S7-1200 write the adapter address: set Adapter.0.EnableSetIpAndMask=1 under [SysSocket] in /etc/CODESYSControl_User.cfg, restart the runtime, and retry name assignment on a current runtime.

    Industrial networks