Skip to main content

Productivity

Python driver and command-line tool for AutomationDirect Productivity Series PLCs.

Installation

uv pip install productivity

Usage

PLC Configuration

This driver uses Modbus TCP/IP for communication. Unlike the ClickPLC, modbus addresses need to be manually configured in the Productivity PLC firmware (see manual).

To use this driver, go to Write Program → Tag Database, scroll down to the values you care about, and double click the Mod Start cell of each value to assign an address. Then, go to File → Export → Tags to export a csv file. The file is used here so you don't need to remember the addresses.

Command Line

To print the tags and their values, simply call the library with the PLC IP address and the tags file.

$ productivity the-plc-ip-address path/to/tags.csv

Use --set to set values on the PLC:

$ productivity the-plc-ip-address path/to/tags.csv -s "{int_test: 4, float_test: 4.45, string_test: foo}"

The --set parameter takes YAML, a simple data format that allows you to easily set multiple tags at once.

See productivity --help for more.

Python

This driver uses Python async/await syntax to asynchronously communicate with a Productivity2000 PLC. For example:

import asyncio
from productivity import ProductivityPLC

async def run():
    async with ProductivityPLC('the-plc-ip-address', 'path/to/tags.csv') as plc:
        print(await plc.get())

asyncio.run(run())

It is also possible to set tag values:

async def run():
    async with ProductivityPLC('the-plc-ip-address', 'path/to/tags.csv') as plc:
        await plc.set(start=True, setpoint=1.1)

asyncio.run(run())

Metadata

Release files for productivity 0.15.0

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

Source distribution (sdist)

Source distribution for productivity 0.15.0
File Size Uploaded Provenance Actions
productivity-0.15.0.tar.gz 18.8 kB Without provenance Details for productivity-0.15.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for productivity 0.15.0
File Interpreter ABI Platform Actions
productivity-0.15.0-py3-none-any.whl Python 3 none any Details for productivity-0.15.0-py3-none-any.whl

Total release size: 37.6 kB

Release files / productivity-0.15.0.tar.gz

Download URL productivity-0.15.0.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9aaa640968487fdf06f41f79deda69421ed8a7661c9a185e4d80c34c36a80ece
BLAKE2b-256 checksum
How to use checksums
e5b81a7396e5dbcb4c7ab2272ed860f62616896a8bc99434a25269fc96da1057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / productivity-0.15.0-py3-none-any.whl

Download URL productivity-0.15.0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
484130b936c63091fdcb2743c5c84007156f90cca45498c0fce8dd7d63749d92
BLAKE2b-256 checksum
How to use checksums
f2cc8ada2b2da8937b03157e35b455f5318a300a0840730c706afd5280e59d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for productivity 0.15.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.15.0 This release

2 release files No provenance

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