Skip to Content
On this page

Omron Host Link C Mode

This plugin sends Host Link C-Mode ASCII commands, such as RD/RR/RC/RG, for PLC memory and status. Select Host Link on the PLC and “Omron Host Link C Mode” on the gateway. Host Link FA/FINS and Ethernet FINS use different frames; changing a port does not convert them.

Compatible devices and models

Device series / model examplesConnection requirements
CS1, CJ1 (serial interface configured for Host Link)Use a Host Link unit or serial port supporting the C-Mode commands used by this plugin. Check unit number and memory ranges. Use the separate Host Link FINS plugin for FA/FINS frames.
CP1H + CP1W-CIF01, CP1W-CIF11/CIF12Select Host Link C-Mode on the serial option and check commands and memory areas in the CPU manual. FA/FINS frames use a different format.
CP1L-EL/EM + CP1W-CIF01, CP1W-CIF11/CIF12Set the serial option to Host Link using C-Mode frames. Match unit number, serial settings and CPU memory ranges. Use the separate FINS plugin for built-in Ethernet FINS.
CP2E-S, CP2E-N (with a Host Link serial interface)Use the built-in serial port or a CP2W serial option supported by the CPU, configured for Host Link C-Mode. Two-wire RS-485 is half-duplex. Check supported commands and memory in the CPU manual.

PLC setup and wiring

CPU / interfaceRequirements
CS1/CJ1 CPU serial port or serial communications unitSupport for this plugin’s C-Mode commands and 1:N format. An older 1:1-only controller is not automatically compatible.
CP1H or CP1L-EL/EM with CP1W-CIF01Correct RS-232C option-board cable, Host Link mode, unit number and format.
CP1H or CP1L-EL/EM with an applicable RS-422A/485 optionCheck the exact CPU/CIF11/CIF12 manual; CP1L-EL/EM Host Link uses four wires.
CP2E serial interfaceSelect a built-in/supported option for the complete CPU model. W614 §14-6 lists C-Mode and FINS; specified two-wire RS-485 interfaces are half-duplex.

1. Connect by signal name

For CP1L-EL/EM with CP1W-CIF01, W516-E1-02 Appendix F, printed page 748  shows PLC SD2 → PC RD2, PLC RD3 ← PC SD3 and PLC SG9 → PC SG5, with handshaking wired as shown. PLC pin 6 is 5 V for NT-AL001, not signal ground. Other CPUs/converters require their own pinouts.

Original CP1L RS-232C option-board wiring, W516 page 748

2. Download the actual port settings

Connect the correct CPU in CX-Programmer, back up its project, open Settings / PLC Setup and select the physical Serial Port. Select Host Link and record Baud, Format and Unit Number. A separate PLC mode named “C-Mode” is not required; the host selects commands through its frames.

For CP1L-EL/EM, the relevant SW4/SW5 must be OFF so PLC Setup controls the port; ON forces Toolbus. W516 page 150 specifies 9600 bit/s, 7 data bits, Even, 2 stop bits by default. Match actual settings when customized rather than assuming one stop bit.

W614 §7-2-4, page 7-5  gives this CP2E serial port 1/built-in RS-232C settings table. Defaults are 9600/7E2, unit 0. Port 2/built-in RS-485 uses its corresponding §7-2-5 settings.

CP2E Host Link mode, format and Unit Number table, W614 page 7-5

Download PLC Setup and activate it as required by the model. CP2E reads these parameters at power-on; A617 reports actual port 1 conditions. Downloaded and active values may differ. Restart within an approved stop window.

For CP2E two-wire interfaces in W614 §14-8, allow at least 1 ms at 9600–115200 bit/s or 3 ms at 1200–4800 bit/s after PLC transmission before the next request. A converter may need longer; frame delay adds gateway-side waiting. This does not replace CP1L four-wire requirements.

CP2E two-wire half-duplex turnaround, W614 page 14-52

CP1L serial settings in CX-Programmer

For a CP1L fitted with CP1W-CIF01, open Settings in CX-Programmer9.4 and select the Serial Port1/Serial Port2 tab for the installed option board. Choose Custom, 115200 baud, 7,2,E format, Host Link mode and Unit Number0. Download and activate the settings according to the CPU restart procedure.

CX-Programmer CP1L-M Host Link port at 115200, 7E2 and unit 0

Match these settings in the gateway: SerialPort /115200 /7 data bits /Even /2 stop bits, station 0. The channel image below uses9600; change the gateway baud rate to115200 when following this CP1L project. Select the plugin matching the required FINS encapsulation or C-Mode commands.

Source: OMRON Knowledge Base, NB With CP1L Through COM1/RS232 (Host Link) , CP1L-M with CP1W-CIF01, CX-Programmer9.4.

Gateway channel and device properties

In “Development Configuration → Collection Configuration”, create a Serial Port channel with the actual COM and PLC format, for example 9600/7/Even/2. Release other programs using that port. Create/bind a device, select “Omron Host Link C Mode”, set an interval such as 1000 ms and enable both objects. See Collection configuration for common settings.

TCP Client/Server support a transparent serial server carrying the same ASCII frames. The client connects to the converter; in server mode the converter connects to the gateway listener. This has no UDP, FINS/TCP handshake, rack/slot or plugin-specific DTU field. PLC Ethernet port 9600 is not a transparent C-Mode endpoint.

Set the actual endpoint and complete the PLC settings above, then enable the channel and device.

Dedicated Omron Host Link C-Mode channel settings

Select Omron Host Link C-Mode and associate its channel

SettingMeaning, default and constraints
PLC station numberDefault 0, matching Host Link Unit Number; s= can override. The official range is 0–31. The current version sends hexadecimal station characters: decimal 10 becomes 0A, unlike BCD 10 required by W342. Units 0–9 coincide; use units 0–9 with this version. Units 10–31 require a version that sends BCD station characters.
Maximum pack lengthDefault 30, range 1–30. WORD access counts words, Boolean access counts timer/counter flags. An oversized single periodic variable is rejected. Direct reads split at 30 points; WORD writes split at 30 WORDs/60 data bytes.
Read/write timeoutDefault 3000 ms for a complete response. Check wiring, format and error codes before increasing it.
Frame delayDefault 0 ms before every send, for turnaround/pacing; increases total cycle time.
Retry countDefault 3. Correct illegal commands/addresses rather than increasing retries.
Read/write duty cycleDefault 3, minimum 1; a read after every n writes during continuous writing.
Write priorityOff by default; may cancel a read to serve a write, delaying feedback.
Data formatDefault CDAB; ABCD/BADC/CDAB/DCBA. Interpret original WORD layout for 32-bit values; point data= can override.
Reverse string bytes within WORDsOff by default. Swaps each WORD’s two character bytes; separate from encoding and numeric order.

There are no FA/FINS ICF, DA2, SA2, SID or response-wait fields. Station/frame definitions follow W342-E1-18 §2, pages 8–9 .

Open Plugin Properties and scroll down to check runtime and conversion settings as well as the protocol fields.

Omron Host Link C-Mode protocol and packing properties

Omron Host Link C-Mode runtime and conversion properties

Areas, variables and address fields

Types are Boolean, Int16, UInt16, Int32, UInt32, Float and String, with no extra plugin variable properties. There are no Byte, 64-bit or Double choices. See Collection configuration for permissions, arrays, groups and intervals. Numeric offsets count 16-bit WORDs; 32-bit values occupy two WORDs.

Area / commandsAddress and behavior
D/DM: RD/WDD100/DM100 data-memory WORDs; CPU protection/ranges still apply.
C/CIO: RR/WRC0/CIO0 WORDs. Here WR is a command, not support for a WR10 work-area address.
LR: RL/WLLR10 link WORDs when supported by the CPU. LR is absent from the current area dropdown; use manual address entry, not W.
H/HR: RH/WHH20/HR20 holding WORDs; CPU retention/ranges apply.
A/AR: RJ/WJA100/AR100 auxiliary WORDs; begin read-only and check CPU write permission.
TIM/CNT numeric: RC/WCTIM0/CNT0 present values. CNT adds 2048 internally; do not add it in the entered address. Match PLC binary/BCD instructions.
TIM/CNT Boolean: RGTIM0/CNT0 completion status, read-only, without .bit. This is not the present value’s lowest bit. No Boolean writes are supported.
E/EM: RE/WEE1.100/EM1.100: hexadecimal bank, decimal WORD offset. Confirm the bank exists.

Ordinary W/WR, IR, DR and CF are unsupported. D/CIO Boolean access is also unsupported. To observe CIO0.03, read CIO0 as UInt16 and extract its bit, or transfer the signal in the PLC; do not enter CIO0.3 as a C-Mode bit command.

Address fieldEntry and constraints
Device areaMatch the area/CPU table. Shared FINS choices are filtered by type and permission; the enum does not define C-Mode capability. Enter LR manually.
OffsetDefault 0, decimal 0–9999 with the entire range ending by 9999. The internally adjusted CNT address also follows this limit. CPU limits may be smaller.
BitLeave empty. TIM/CNT Boolean uses the timer/counter number without a bit suffix. Set variable permission to read-only before editing its Boolean address.
Extended bankDefault 0, editor 0–31, E/EM only. Numeric 10 becomes A, yielding EA.100 for offset 100. CPU bank limits apply.
Station overrideBlank inherits device; editor 0–31. Value 2 produces s=2;D100. The 10–31 encoding restriction still applies; manual Byte parsing is not a valid PLC range.
Data-format overrideBlank inherits device; ABCD/BADC/CDAB/DCBA saved as data=.
Encoding overrideString encoding, e.g. encoding=ASCII; UTF-8 length counts bytes, not characters.
String byte lengthRequired len=. 20 bytes use 10 WORDs. Odd reads round up; writes require even bytes/complete WORDs. Periodic length must fit Maximum pack length.
BCD overrideC8421/C5421/C2421/C3/Gray for matching storage. Leave binary data unset; check TIM/CNT instruction format.
Variable-string overrideUnset/explicit false stay distinct. Memory reads still require len=; a PLC length header is not inferred.
PLC definitionGateway entry and expected comparison
DM100 UInt16 value 1234D100, UInt16, array 1, initially read-only; compare 1234 in decimal.
D110=0000 hex, D111=3F80 hex, Float 1.0 low WORD firstD110;data=CDAB, Float, array 1; expect 1.0.
Three 16-bit valuesD120, UInt16, array 3 maps D120–D122.
BCD timer present valueTIM0;bcd=C8421, UInt16; compare present value. Omit BCD for binary instructions.
TIM0 completion flagTIM0, Boolean, array 1, read-only; compare completion, not whether the present value is nonzero.
CNT20 completion flagCNT20, Boolean, read-only; the plugin internally adds 2048.
Bank A WORD100EA.100, UInt16; confirm the real bank and value.
20-byte ASCII bufferD200;len=20;encoding=ASCII, String, array 1 uses D200–D209; check per-WORD character order.

Each periodic variable must fit the pack limit: at the default 30 WORDs, an Int32 array of 15 fits, while 16 occupies 32 WORDs and does not. Direct-read splitting does not guarantee periodic packing of an oversized variable. Stations, command areas, bit/word access and intervals form separate packages.

Create a read-only variable with the address and actual PLC type described here. Open Field Editor, check the decoded fields and confirm to fill the address back in. These scalar examples keep array length at 0.

Omron Host Link C-Mode variable address, type and read-only permission

Structured fields of this Omron Host Link C-Mode address

PLC status and data verification

In “Protocol Debug → Operations”, query PLC model and mode. The model may return CS/CJ or a raw model-code label rather than a full ordering code. Mode 0 means PROGRAM, 1 RUN, 2 MONITOR; compare with the engineering tool. The page has no mode-change button.

C-Mode model/mode query entry

After status queries, read a known WORD: in Special Methods select ordinary read, D100, UInt16, count 1; compare with PLC monitoring, then save a periodic variable and check quality/timestamp. Separately compare a read-only TIM0/CNT20 Boolean flag.

Special methodInput and return
ReadPlcTypeAsyncNo business parameters; returns a model string. Direct call and periodic read are available; a model code is not a full CPU part number.
ReadPlcModeAsyncNo business parameters; returns mode integer 0/1/2. Direct/periodic reads do not change the mode.

For approved WORD writes, record the original, write a known value, confirm independently in the PLC, restore and read again. Boolean flags cannot be write-test points. FCS XORs ASCII bytes; frames end in *CR, which converters must preserve.

SymptomChecks
Neither status query respondsCOM ownership, Host Link/DIP mode, serial format, wiring, unit and converter direction.
Units 0–9 work but higher units failCurrent station encoding; timeout or Ethernet nodes cannot fix it.
WORD works, Boolean failsRead-only permission, TIM/CNT without .bit, CPU RG support.
Illegal area/commandW/IR/DR/CF unsupported; LR/EM also require CPU support.
Errors 13/14/15/16/18FCS, command format, range/hexadecimal data, command support, frame length respectively; retain the full error and reduce to one WORD.
Oversized periodic arrayKeep each variable within 1–30 WORDs/flags and CPU range, or divide variables by business meaning; do not assume direct splitting applies.

After saving, check the name, address and type under Real-time Variables. Enable the channel, device and variable, then compare the known value, quality and advancing collection time as described above.

Saved Omron Host Link C-Mode variable