Skip to Content
On this page

Keyence KV legacy

KEYENCE old KV PLC address read and write driver

Compatible devices and models

Device series / model examplesConnection requirements
KEYENCE KV PLCs using legacy KV serial commandsEnable the legacy KV command interface used by this plugin with matching serial settings and areas. Use separate plugins for Upper Link or MC services.

Prepare the legacy KV command interface

This entry uses legacy single-value RD, WR, WS, ST and RS commands. Confirm that the CPU and communication interface provide this command set. For RDS block access, 32-bit values or strings, use the Keyence Nano Upper Link entry and check CPU support.

The current entry uses TcpClient. When connecting through a serial device server, select transparent forwarding and match the PLC baud rate, data bits, parity and stop bits. Disable Modbus conversion. Use crossed TX/RX and signal ground for RS-232; follow interface markings and termination requirements for RS-485. Enter the device server listening IP and port in the gateway. A native Ethernet legacy-command interface uses its configured Upper Link endpoint, commonly port8501.

The driver sends CR on connection and CQ before normal disconnection. Requests end in CR and responses must end in CRLF. Forward these characters unchanged. Disconnect the programming connection before using a shared serial port for collection.

For a KV Ethernet interface that provides the legacy RD/WR command set, read back the IP and Port No. (uplink) in the matching KV STUDIO CPU/unit project, save and transfer the settings. The network-field example below uses KV STUDIO 11.62 with KV-8000 and shows Upper Link 8501 and KV STUDIO 8500. The target CPU must provide the legacy commands on this page. A legacy CPU behind a transparent serial server uses that server’s mapped port.

Window example: Mech-Mind Keyence setup guide .

KV STUDIO unit settings, fixed IP and subnet mask

KV STUDIO Upper Link 8501 and MC TCP 5000 ports

See chapters 3 and 8 of the KEYENCE Ethernet Unit manual  for ports and RD/WR/WS commands. Confirm the legacy command set in the actual CPU command table before choosing this entry.

Configure the channel and device

Under Development → Collection, create TcpClient, for example 192.168.1.33:8501. A local COM name is not a TCP endpoint. With a serial device server, use its address and mapped port. See Collection configuration for common fields.

TCP channel for legacy KV commands

Select Keyence KV legacy protocol, associate the channel and set an execution interval such as1000ms. Enable the channel and device when ready to collect.

Legacy KV plugin and channel selection

Legacy KV properties

PropertyMeaning and selection
Read/write timeoutDefault3000ms per command; include serial and forwarding latency. Channel connection timeout is separate.
Delay before frameDefault0ms before each request. Increase for an interface requiring an inter-frame gap.
Retry countDefault3; helps transient failures. Correct invalid addresses, types and lengths first.
Read/write duty ratioDefault3, minimum1; one read is scheduled per n writes.
Write priorityDisabled by default. A write may cancel the current read when enabled.
Reverse string bytes within a wordEnabled by default; this entry has no String type, so the common option does not enable text access.
Data orderDefaultDCBA; alternatives ABCD/BADC/CDAB. Check a known16-bit value; an address can override it. This option cannot turn single-word commands into atomic32-bit access.

Single-value variables and addresses

Prepare DM100=1234 in the PLC monitor. Add a read-only variable using DM100, Int16 and array length 1. Int16 is signed16-bit; UInt16 is unsigned0–65535; Boolean is for contacts. Each RD/WR/WS/ST/RS accesses one value. Lengths above1 are rejected, and Int32/Float/String are not supported by this entry.

DM100 variable with length1

Legacy KV address editor

Address fieldRule
AreaBoolean: R,T,C,CTH,CTC. Int16/UInt16: DM,TM,AT,CTH,CC,CS,TC,TS. Choices follow the selected type.
OffsetDecimal device number, editor range0–4294967295. CPU capacity further limits it. Do not multiply by2 for bytes.
BitR Boolean addresses require explicit word.bit, bit0–15, such as R10.3. Leave it unset elsewhere.
Byte order overrideOverrides device order for this variable; normally leave inherited initially.
BCD overrideSelect only for an actual BCD/Gray source representation. Leave unset for ordinary integers.
Encoding, string byte length, variable-length stringCommon editor fields. This entry has no String type; these do not enable text or multiword access.

There are no separate variable properties.

PLC objectGateway address and meaning
DM100=1234DM100, Int16/1, expected1234.
R word10, bit3R10.3, Boolean/1. The driver encodes wire number1003; keep explicit word.bit in the gateway.
C1 contactC1, Boolean/1; contact state only.
C1 current valueCC1, UInt16/1; selects the current-value field of the combined C response.
C1 presetCS1, UInt16/1; selects the preset field. Writing uses WS.
T1 current/presetTC1 / TS1, UInt16/1; T1 Boolean is the contact.
AT or CTH numeric valueCorresponding area and index, one16-bit value. Do not apply Nano DWORD rules.

Save, enable the connection and compare DM100 with the PLC monitor. Check that acquisition timestamps keep advancing.

Single-point access and troubleshooting

In Protocol debugging → Read/write, first read DM100 as Int16 with length1. Select Boolean for an R contact. Change a dedicated test word and read again to compare it with the PLC. Writes require the appropriate permission; writing CS/TS changes a preset.

Legacy KV single-point read/write

For an immediate timeout, check CR handshake and CRLF responses. If TCP connects but reads fail, check transparent forwarding, the legacy command set and CPU address capacity. Set array length1 for single-value errors. Create separate variables for multiple values. This entry exposes ordinary read/write; Nano-specific model, clock and expansion-unit methods are not available here.