Skip to Content
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 examplesConnection requirements
KV Nano: KV-N24, KV-N40, KV-N60, KV-NC32TThe 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.

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 .

KV STUDIO unit settings, fixed IP and subnet mask

KV STUDIO Upper Link 8501 and MC TCP 5000 ports

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.

Upper Link TCP client and port 8501

Keyence Nano device and channel

Nano station, packing and DTU properties

PropertyMeaning and selection
PLC stationDefault 0; use the actual 0–99 station when station addressing is enabled, rather than an IP octet.
Use station on connectionOff by default, sending CR without a station. Enable only when the multi-drop link requires a matching two-digit station.
Maximum pack lengthDefault 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 IDEmpty by default. Identifies an incoming TcpService DTU session; leave empty for direct TCP/serial.
HeartbeatEmpty 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 HexOff means UTF-8 text matching; on means hexadecimal bytes. Match the peer’s actual message.
Read/write timeoutDefault 3000 ms; response wait, not a baud-rate or CRLF setting.
Frame delayDefault 0 ms before each send; adjust for the interface’s required pacing.
Reverse string bytes in WORDsOn by default. Swaps character bytes within each WORD according to source layout.
Data orderDefault DCBA, alternatives ABCD/BADC/CDAB. Match known 16/32-bit values and character layout; individual addresses can override it.
Retry countDefault 3. Correct station/protocol rejection before increasing retries.
Read/write dutyDefault 3, minimum 1; one read after n writes.
Write priorityOff by default; enabling allows a write to cancel the current read.

Nano data format and scheduling properties

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.

DM100 scalar variable

Open Field editor and choose the area, offset, bit and access suffix for the source device.

Nano area, bit and access suffix fields

FieldRules
AreaDiscrete 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.
OffsetB/VB/W use hexadecimal; all other areas use decimal. W10 means WORD 0x10.
BitBoolean R/CR/MR/LR requires word.bit, such as R10.3, with bit 0–15. B/VB already uses bit numbering.
Access suffixNone 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 overridePer-variable ABCD/BADC/CDAB/DCBA; unset inherits device conversion.
Encoding overrideString character encoding such as ASCII/UTF-8.
String byte lengthDM100;len=8 means eight bytes/four WORDs. A string array uses byte length × element count.
BCD overrideUse only for actual BCD/Gray data; ordinary integers remain unset.
Variable string lengthUse 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 objectGateway configuration
DM100=1234DM100, Int16/1; UInt16 for unsigned values.
R word 10, bit 3R10.3, Boolean/1; do not substitute compact R1003.
Sixteen consecutive R contactsR10.0.U, UInt16/1, a packed WORD view.
B bit 0x10B10, Boolean; packed access at the same start uses B10.U.
T1 contact/current valueT1 Boolean read-only; T1.D UInt32 read-only.
AT0 current valueAT0 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.

Upper Link software peer: DM100 one-shot settings and result 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.

Nano device annotation page

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.

Nano expansion read and write fields

Special methodParameters and use
ReadPlcTypeAsync / ReadPlcModeAsyncNo arguments; direct or periodic read. Mode true means RUN, false means programming mode or no registered ladder.
ReadAnnotationAsyncDevice address; direct or periodic read, returning annotation text.
ReadExpansionAsyncUnit, start, WORD count; direct or periodic read.
ClearErrorAsyncExplicit call or write trigger; clears CPU errors.
SetDateTimeAsyncDate/time supplied by the write value, within 2000–2099; direct or variable write.
WriteExpansionAsyncUnit, 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.