Skip to Content
On this page

Keyence MC Binary

KEYENCE MC compatible with 3E binary address read and write driver

Compatible devices and models

Device series / model examplesConnection requirements
KV-7500, KV-5500 (built-in Ethernet)Enable MC protocol QnA-compatible 3E frames and match the selected plugin ASCII/binary encoding, TCP/UDP transport and port. Use the KEYENCE MC device map; Upper Link addresses such as DM cannot be used unchanged.
KV-7500/7300, KV-5500/5000/3000 + KV-EP21VUse the KV-EP21V MC 3E service. KV-5500/5000/3000 require CPU function version V2 or later. Match encoding, port and device mapping to the module settings.
KV Nano: KV-N24, KV-N40, KV-N60, KV-NC32T + KV-NC1EPUse CPU function version V2 or later and enable MC 3E through KV-NC1EP. Check the CPU device ranges. Upper Link services use the separate Nano plugin.

Configure the KV STUDIO binary MC service

This entry sends QnA-compatible 3E binary frames. KV STUDIO port 8500, Upper Link port 8501 and the MC listener are separate services. See Collection configuration for shared channel, scheduling, permissions and expression settings.

  1. Open the matching CPU/Ethernet project and choose Tool → Unit Editor. Add the actual KV-EP21V, or select the CPU’s built-in Ethernet settings. This manual requires KV STUDIO V8.0 or later for KV-7500/7300; that is not a universal requirement for every CPU.

  2. Open the unit settings, reserve unused leading DM/relay ranges, and set the interface IP, mask and gateway. Keep test data outside the unit’s reserved status area. For a built-in interface, double-click the CPU under Unit configuration and open Set unit. The KV STUDIO 11.62/KV-8000 window below shows IP 192.168.1.22 and MC TCP port 5000. This gateway example uses 192.168.1.30; use the settings read back from your actual model. Source: Mech-Mind Keyence MC setup guide .

    KV STUDIO unit settings, fixed IP and subnet mask

    KV STUDIO Upper Link 8501 and MC TCP 5000 ports

  3. Check MC protocol port (TCP), default 5000 in this manual. UDP has a separate setting. Set MC protocol communication code to Binary. Simple PLC Link UDP 5001 is a different service. This driver uses 3E, even though the unit also supports 4E.

  4. Confirm/save the unit configuration, transfer it using the site’s procedure, apply or restart communication as required, and read it back online. Connect the actual LAN port to the gateway network. KV Nano requires the appropriate KV-NC1EP and CPU function version.

KV-EP21V/KV-NC1EP port settings, communication codes and device mapping are documented in chapters 3 and 9 of the KEYENCE Ethernet Unit manual .

Use PLC transfer → Monitor mode to open the transfer window. Check the target CPU and unit/Ethernet settings, then transfer according to the project change procedure, preserving the PLC program and variables.

KV STUDIO transfer window with unit and Ethernet settings

Channel, device and all 12 properties

Select Keyence MC Binary in Development configuration → Collection configuration. Create a TcpClient to the actual listener, illustrated by 192.168.1.30:5000. Enable the channel and device after completing configuration and confirming the target.

Binary MC TCP client channel

Keyence MC Binary plugin and channel selection

The selector also offers UdpSession, SerialPort and TcpService. Native KV Ethernet uses the matching TCP client or UDP service. SerialPort requires a proven transport of the same MC frames; it does not provide KV programming-port access. TcpService requires a peer that actually initiates a connection.

Binary route, packing and runtime properties

PropertyMeaning and selection
Network numberDefault 0; this KV manual requires fixed 00. Not the final IP octet.
Module stationDefault 0; the target unit station must be 00, not the TCP port.
Module I/O numberDefault decimal 1023, hexadecimal 03FF, the required route value; not a physical input address.
PLC numberDefault decimal 255/FF, called PC number in the manual. Preserve the complete 0/0/1023/255 route.
Maximum pack lengthDefault 256; same-area read-span budget. WORD areas count 16-bit words; Int32/Float use 2 and Int64/Double use 4. Gaps consume span. Reducing it creates more requests and must still fit each individual variable.
Read/write timeoutDefault 3000 ms. Check an MC error code before increasing the response wait.
Frame delayDefault 0 ms before each transmission; distinct from device acquisition interval.
Reverse string bytes in WORDsOff by default. Swap each pair of character bytes only for the PLC’s actual string layout.
Data orderDefault DCBA; ABCD/BADC/CDAB are alternatives. Compare a known 16-bit value and then a known 32-bit INT/REAL; individual variables can override it.
Retry countDefault 3. Repeated unsupported-command/address failures require a configuration correction.
Read/write dutyDefault 3, minimum 1; one read after every n writes, not a percentage.
Write priorityOff by default. Enabling allows writing to cancel reading; leave off during initial read-only commissioning.

Lower conversion and scheduling properties

There are no additional variable properties. Address-editor overrides below apply only to that variable; unset values inherit the device setting.

Map KV devices to gateway addresses

Prepare independent DM100=1234 in the KV STUDIO watch table. Add D100, Int16, array length 1, read-only. DM100 is Upper Link syntax and is not accepted here.

DM100 mapped to a D100 scalar

Open Field editor, confirm area D and offset 100 without a bit number, and confirm the address.

Structured Keyence MC address editor

FieldMeaning in this entry
Device areaDecimal WORD areas: D/SD/R/TN/CN. Hex WORD areas: ZR/W. Hex bit areas: X/Y/B. Decimal bit areas: M/L/SM/TS/TC/CS/CC. A selectable area is not proof that every CPU implements it.
OffsetStart in that area’s radix; the wire start occupies at most 3 bytes. Not a byte offset or a 40001-based register number.
BitBoolean WORD access requires decimal 0–15, such as D100.3. M100 and XA3 already address individual bits and reject an extra bit suffix.
Data order overrideABCD/BADC/CDAB/DCBA overrides device conversion, for example D100;data=DCBA.
Encoding overrideString character encoding, such as ASCII/UTF-8. Does not select MC binary/ASCII framing.
String byte lengthSpecify capacity: D100;len=8 occupies DM100–DM103. Array length counts elements, not string bytes.
BCD overrideSelect only for actual BCD/Gray-coded PLC data; leave ordinary binary integers unset.
Variable string lengthEnable only for a layout that really includes length information; it does not discover a PLC string’s size.
Object in KV STUDIOGateway address and interpretation
DM100, 16-bit 1234D100, Int16/1; choose UInt16 for unsigned quantities.
DM100 bit 3D100.3, Boolean; DM100=8 should yield true. WORD bit writing can read/modify/write the original word and conflict with PLC logic.
EM100D100100 on the larger KV families covered by this manual. The Nano table does not provide EM.
FM100R100; MC R means file register, not native KV relay R.
Native R word 10, bit 3, compact R01003Absolute bit 163 is hexadecimal A3: use XA3 or the corresponding Y mapping. Verify in the CPU watch table; X/Y here map KV relays and do not by themselves identify physical input/output.
T10/C10 contactsTS10/CS10, Boolean.
T10/C10 current valuesTN10/CN10, UInt16. The manual exposes only 16 bits through MC and returns 65535 when the native value exceeds that range. Selecting Int32 does not restore native 32-bit timer data.
ZF and WUse MC ZR/W and hexadecimal numbering; check the CPU-specific range.

TC/CC codes are accepted by the driver, but this manual’s KV mapping does not document those coil areas. Start with documented D, X/Y, M and other confirmed areas.

Save and compare a known value

Check the saved variable’s address, type and device. Enable the connected field channel/device only after confirming the target. Compare D100 against the PLC watch while changing 1234 to 5678; check quality and advancing timestamps.

A local comparison with the HSL 13.0.3 MC server uses binary mode, 127.0.0.1:15026 and D100=1234. Point the gateway TCP client at that listener and use D100, Int16, array length 1. The live value should show 1234 with advancing acquisition timestamps.

MC Binary D100 scalar value and normal status

For no response, check binary/ASCII, TCP/UDP and the listener port. C051 indicates point-count investigation, C056 an address/range issue, and C059 unsupported command/service settings. Use one-shot protocol reads and communication logs to compare area, start, count and end code.