Skip to main content

⚠️ This package has been renamed to plc-comm-kv-hostlink. kv-hostlink 1.2.1 is the final release under the old name and will receive no further updates. Install the new package instead: pip install plc-comm-kv-hostlink (import name is unchanged).

CI PyPI Python 3.10+ License: MIT

KEYENCE KV Host Link for Python

Python library for KEYENCE KV Host Link PLC communication.

Supported PLC profiles

The maintained profile table is in PLC profiles. Choose one exact canonical PLC profile from that table.

Supported device types

The shared device and range tables are in the KV Host Link Device Ranges page. Use that page for supported device families, address syntax, and profile-specific notes.

Installation

pip install kv-hostlink

Quick example

import asyncio
from hostlink import HostLinkConnectionOptions, device_range_catalog_for_plc_profile, open_and_connect, read_typed

async def main() -> None:
    catalog = device_range_catalog_for_plc_profile("keyence:kv-7000")
    options = HostLinkConnectionOptions(host="192.168.250.100", plc_profile="keyence:kv-8000", port=8501)
    async with await open_and_connect(options) as client:
        dm0 = await read_typed(client, "DM0", "U")
        print(f"DM0 = {dm0}")

asyncio.run(main())

Documentation

Page Use it for
Full documentation site Unified docs for all PLC communication libraries.
Getting started Install the package, connect to your PLC, and run your first read/write.
Usage guide Use the high-level API and common Host Link workflows.
PLC profiles Choose the canonical profile that matches your PLC model and device ranges.
KV Host Link Device Ranges Check shared device families, address notation, and range tables.
KV Host Link Troubleshooting & Codes Troubleshoot common port, profile, address, write-permission, and PLC error-code symptoms.
Gotchas Check whether this library has any current library-specific caveats.
Examples Run maintained Python samples: samples/high_level_async.py, samples/high_level_sync.py, samples/basic_high_level_rw.py, samples/named_snapshot.py, samples/polling_monitor.py.

License and registry

Item Value
License MIT
Registry PyPI
Package kv-hostlink

Commercial support

If you plan to embed this library in a paid or commercial product, please consider a separate support agreement or supporting the project as a sponsor.

Contact: https://fa-labo.com/contact.html

Metadata

Release files for kv-hostlink 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kv-hostlink 1.2.1
File Size Uploaded
kv_hostlink-1.2.1.tar.gz 31.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kv-hostlink 1.2.1
File Interpreter ABI Platform
kv_hostlink-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 62.9 kB

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page