Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A basic DF1 implementation in Python

Project description

DF1

A very basic Allen Bradley DF1 protocol implementation in Python.

How to use

from df1.df1_client import Df1Client
from df1.commands import Command0FA2
from df1.file_type import FileType

with Df1Client(src=0x0, dst=0x1) as client:
    client.connect('192.168.0.32', 10232)
    command = client.create_command(Command0FA2, table=43, start=245, bytes_to_read=10, file_type=FileType.INTEGER)
    reply = client.send_command(command)
    print(reply.get_data(FileType.INTEGER))

Project details


Download files

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

Files for df1, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size df1-0.5-py2-none-any.whl (16.9 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page