Skip to main content

[RENAMED to plc-comm-toyopuc] Python client library for TOYOPUC computer-link communication over TCP and UDP

Project description

⚠️ This package has been renamed to plc-comm-toyopuc. toyopuc-computerlink 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-toyopuc (import name is unchanged).

CI PyPI Python 3.10+ License: MIT

TOYOPUC Computerlink for Python

Python library for TOYOPUC Computerlink PLC communication over TCP or UDP.

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 Computerlink Device Ranges page. Use that page for supported device families, address syntax, and profile-specific notes.

Installation

pip install toyopuc-computerlink

Quick example

import asyncio

from toyopuc import ToyopucConnectionOptions, open_and_connect, read_typed, write_typed


async def main() -> None:
    options = ToyopucConnectionOptions(
        host="192.168.250.100",
        port=1025,
        plc_profile="toyopuc:plus:extended",
    )

    async with await open_and_connect(options) as client:
        value = await read_typed(client, "P1-D0000", "U")
        print(f"P1-D0000 = {value}")

        await write_typed(client, "P1-D0001", "U", 1234)


asyncio.run(main())

Documentation

Page Use it for
Full documentation site Unified docs for all PLC communication libraries.
Getting started First connection, first read, and first write.
Usage guide Recommended entry points and common workflows.
PLC profiles Exact canonical profile names and profile-specific cautions.
Computerlink Device Ranges Check shared device families, address notation, and model range notes.
Computerlink Troubleshooting & Codes Troubleshoot common connection, address, write, relay, and PLC error-code symptoms.
Gotchas Symptoms, root causes, and fixes for common mistakes.
Samples Complete sample programs and command lines.

License and registry

Item Value
License MIT
Registry PyPI
Package toyopuc-computerlink

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toyopuc_computerlink-1.2.1.tar.gz (51.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toyopuc_computerlink-1.2.1-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page