On this page
Keyence Nano
Upper Link address read/write and status diagnostics for KEYENCE KV Nano KV-N24/N40/N60/NC32T.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| KV Nano: KV-N24, KV-N40, KV-N60, KV-NC32T | The interface must support this plugin Upper Link commands and CR/CQ session exchange, with matching station and serial settings. KV-NC1EP requires CPU function version V2 or later; verify session-command support on the selected service. Use a separate MC plugin for MC services. |
Configure the Upper Link interface
This entry sends KV Upper Link ASCII commands using native DM, R and MR names. MC D100 and Upper Link DM100 belong to different protocol entries. See Collection configuration for shared channel settings, scheduling and permissions.
For Nano through KV-NC1EP, open the matching CPU project in KV STUDIO, choose Tool → Unit Editor, select the actual NC1EP, and reserve non-overlapping status DM/relay ranges.
Configure the fixed IP, mask and gateway, then check Port No. (uplink), default 8501 in this manual. Port 8500 belongs to KV STUDIO. Save/transfer and read back the interface settings; check the CPU function version and Nano/NC1EP device ranges.
The network-field example below uses KV STUDIO 11.62 with KV-8000 and shows Upper Link on port 8501. Select the actual NC1EP in a Nano project and enter the read-back IP and port in the gateway. The pictured MC port 5000 belongs to the separate MC service.
Window example: Mech-Mind Keyence setup guide .
The illustrations and Ethernet settings are in chapters 3 and 8 of the KEYENCE Ethernet Unit manual . For serial access, select Upper Link in the actual CPU/interface configuration and match the read-back baud rate, data bits, parity and stop bits. RS-232 needs crossed TX/RX and signal ground; RS-485 needs the matching differential wiring and termination. Do not connect incompatible electrical interfaces directly.
The driver sends CR on connection/reconnection and CQ before normal disconnection. Requests end in CR and responses in CRLF. The peer must implement these session commands and the required RD/RDS commands.
Gateway channel and device properties
For Ethernet, create a TcpClient such as 192.168.1.32:8501, select Keyence Nano, and associate the channel. TcpService is for a transparent DTU that connects into the gateway and requires DTU identification; a normal PLC server uses TcpClient.
| Property | Meaning and selection |
|---|---|
| PLC station | Default 0; use the actual 0–99 station when station addressing is enabled, rather than an IP octet. |
| Use station on connection | Off by default, sending CR without a station. Enable only when the multi-drop link requires a matching two-digit station. |
| Maximum pack length | Default 256. Limits same-area read spans. Protocol limits are CTH 2, CTC 4, AT 8, Z 12, T/C/TS/TC/CC/CS 64 and other areas 256 values; the configured budget and variable width also constrain requests. |
| DTU ID | Empty by default. Identifies an incoming TcpService DTU session; leave empty for direct TCP/serial. |
| Heartbeat | Empty by default, inheriting channel heartbeat. An override applies only in TcpService’s default DTU mode; it identifies heartbeat messages rather than Upper Link data commands. |
| Heartbeat is Hex | Off means UTF-8 text matching; on means hexadecimal bytes. Match the peer’s actual message. |
| Read/write timeout | Default 3000 ms; response wait, not a baud-rate or CRLF setting. |
| Frame delay | Default 0 ms before each send; adjust for the interface’s required pacing. |
| Reverse string bytes in WORDs | On by default. Swaps character bytes within each WORD according to source layout. |
| Data order | Default DCBA, alternatives ABCD/BADC/CDAB. Match known 16/32-bit values and character layout; individual addresses can override it. |
| Retry count | Default 3. Correct station/protocol rejection before increasing retries. |
| Read/write duty | Default 3, minimum 1; one read after n writes. |
| Write priority | Off by default; enabling allows a write to cancel the current read. |
Device addresses, bits and access suffixes
Prepare DM100=1234 in KV STUDIO. Add DM100, Int16, length 1, read-only. DM100 is a 16-bit WORD; Int32/UInt32/Float starting at DM100 occupies two WORDs without multiplying the address by two.
Open Field editor and choose the area, offset, bit and access suffix for the source device.
| Field | Rules |
|---|---|
| Area | Discrete R/CR/MR/LR/B/VB and T/C/CTH/CTC; WORD DM/CM/TM/VM/EM/FM/ZF/W/Z; DWORD AT/TS/TC/CC/CS. The CPU must implement the selected area. |
| Offset | B/VB/W use hexadecimal; all other areas use decimal. W10 means WORD 0x10. |
| Bit | Boolean R/CR/MR/LR requires word.bit, such as R10.3, with bit 0–15. B/VB already uses bit numbering. |
| Access suffix | None selects the type’s default access. Packed contact WORDs require .U, such as R10.0.U or B10.U. The 32-bit current value of T/C/CTH/CTC requires .D, such as T1.D. |
| Data order override | Per-variable ABCD/BADC/CDAB/DCBA; unset inherits device conversion. |
| Encoding override | String character encoding such as ASCII/UTF-8. |
| String byte length | DM100;len=8 means eight bytes/four WORDs. A string array uses byte length × element count. |
| BCD override | Use only for actual BCD/Gray data; ordinary integers remain unset. |
| Variable string length | Use only with source layouts carrying length information; does not replace len. |
There are no extra variable properties. Types are Boolean, Int16, UInt16, Int32, UInt32, Float and String. DWORD areas and T/C/CTH/CTC contacts/current values require read-only variables.
| Source object | Gateway configuration |
|---|---|
| DM100=1234 | DM100, Int16/1; UInt16 for unsigned values. |
| R word 10, bit 3 | R10.3, Boolean/1; do not substitute compact R1003. |
| Sixteen consecutive R contacts | R10.0.U, UInt16/1, a packed WORD view. |
| B bit 0x10 | B10, Boolean; packed access at the same start uses B10.U. |
| T1 contact/current value | T1 Boolean read-only; T1.D UInt32 read-only. |
| AT0 current value | AT0 UInt32 read-only; each protocol value is a DWORD. |
Save, confirm the associated device, enable the channel/device, and compare the live value and timestamps against KV STUDIO.
Compare a single word in Protocol debug
Open Protocol debug → Read/write. Enter DM100, UInt16 and length 1, then click Read and compare with the source DM100. The image uses the HSL13.0.3 Upper Link software service on 127.0.0.1:15028, with DM100 preset to 1234; the one-shot read returns 1234.
Model, annotations and expansion units
Protocol debug provides Overview, Annotation and Expansion unit tabs. Model/mode reads identify the CPU and running state; annotation reads use a PLC device name such as DM100.
Expansion reads require the actual unit number, buffer start and WORD count. A CPU DM number is not an expansion buffer address. Writes use hexadecimal WORD bytes matching that unit’s manual.
| Special method | Parameters and use |
|---|---|
| ReadPlcTypeAsync / ReadPlcModeAsync | No arguments; direct or periodic read. Mode true means RUN, false means programming mode or no registered ladder. |
| ReadAnnotationAsync | Device address; direct or periodic read, returning annotation text. |
| ReadExpansionAsync | Unit, start, WORD count; direct or periodic read. |
| ClearErrorAsync | Explicit call or write trigger; clears CPU errors. |
| SetDateTimeAsync | Date/time supplied by the write value, within 2000–2099; direct or variable write. |
| WriteExpansionAsync | Unit, start, hexadecimal bytes; direct or variable write. |
For periodic method reads, select the method and its arguments in the variable configuration. Clearing errors, setting time and expansion writes are explicit write actions. On communication failure check CR/CQ, station, CRLF and suffixes. Compare the response with a one-shot protocol read using the intended variable type.










