On this page
Keyence KV legacy
KEYENCE old KV PLC address read and write driver
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| KEYENCE KV PLCs using legacy KV serial commands | Enable 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 .
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.
Select Keyence KV legacy protocol, associate the channel and set an execution interval such as1000ms. Enable the channel and device when ready to collect.
| Property | Meaning and selection |
|---|---|
| Read/write timeout | Default3000ms per command; include serial and forwarding latency. Channel connection timeout is separate. |
| Delay before frame | Default0ms before each request. Increase for an interface requiring an inter-frame gap. |
| Retry count | Default3; helps transient failures. Correct invalid addresses, types and lengths first. |
| Read/write duty ratio | Default3, minimum1; one read is scheduled per n writes. |
| Write priority | Disabled by default. A write may cancel the current read when enabled. |
| Reverse string bytes within a word | Enabled by default; this entry has no String type, so the common option does not enable text access. |
| Data order | DefaultDCBA; 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.
| Address field | Rule |
|---|---|
| Area | Boolean: R,T,C,CTH,CTC. Int16/UInt16: DM,TM,AT,CTH,CC,CS,TC,TS. Choices follow the selected type. |
| Offset | Decimal device number, editor range0–4294967295. CPU capacity further limits it. Do not multiply by2 for bytes. |
| Bit | R Boolean addresses require explicit word.bit, bit0–15, such as R10.3. Leave it unset elsewhere. |
| Byte order override | Overrides device order for this variable; normally leave inherited initially. |
| BCD override | Select only for an actual BCD/Gray source representation. Leave unset for ordinary integers. |
| Encoding, string byte length, variable-length string | Common editor fields. This entry has no String type; these do not enable text or multiword access. |
There are no separate variable properties.
| PLC object | Gateway address and meaning |
|---|---|
| DM100=1234 | DM100, Int16/1, expected1234. |
| R word10, bit3 | R10.3, Boolean/1. The driver encodes wire number1003; keep explicit word.bit in the gateway. |
| C1 contact | C1, Boolean/1; contact state only. |
| C1 current value | CC1, UInt16/1; selects the current-value field of the combined C response. |
| C1 preset | CS1, UInt16/1; selects the preset field. Writing uses WS. |
| T1 current/preset | TC1 / TS1, UInt16/1; T1 Boolean is the contact. |
| AT or CTH numeric value | Corresponding 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.
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.







