Skip to main content

Rockwell ACD File Tools

Project description

PyPI PyPI - Downloads ACD Tools

Rockwell ACD Project File Tools

The Rockwell ACD file is an archive file that contains all the files that are used by RSLogix/Studio 5000.

It consists of a number of text files containing version information, compressed XML files containing project and tag information as well as a number of database files.

This library allows you to unzip all the files and extract information from these files.

Installing

To install acd tools from pypi run

pip install acd-tools

Parsing the ACD file

To get the Controller object and get the program/routines/rungs/tags/datatypes, use something like this

from acd.api import ImportProjectFromFile

controller = ImportProjectFromFile("../resources/CuteLogix.ACD").import_project().controller
rung = controller.programs[0].routines[0].rungs[0]
data_type = controller.data_types[-1]
tag_name = controller.tags[75].text
tag_data_type =  controller.tags[75].data_type

Unzip

To extract the file use the acd.api.ExtractAcdDatabase class. This extracts the database files to a directory.

from acd.api import ExtractAcdDatabase

ExtractAcdDatabase('CuteLogix.ACD', 'output_directory').extract()

Extract Raw Records From ACD Files

A select number of database files contain interesting information. This will save each database record to a file to make it easier to see whats in them.

from acd.api import ExtractAcdDatabaseRecordsToFiles

ExtractAcdDatabaseRecordsToFiles('CuteLogix.ACD', 'output_directory').extract()

Dump Comps Database Records

The Comps database contains a lot of information and can be export as a directory structure to make it easier to look at. It will also extract the CIP class and instance and write it to the log file.

from acd.api import DumpCompsRecordsToFile

DumpCompsRecordsToFile('CuteLogix.ACD', 'output_directory').extract()

Converting from ACD to L5X

This hasn't been started but could be feasible eventually.

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

acd_tools-0.2a8.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

acd_tools-0.2a8-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file acd_tools-0.2a8.tar.gz.

File metadata

  • Download URL: acd_tools-0.2a8.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for acd_tools-0.2a8.tar.gz
Algorithm Hash digest
SHA256 93d3c6d778d7f667f6d98f291046631088f3096630e0e855ed813fd31fbfdd0a
MD5 1c01b35fd6f811ee58b08b49e2f735f0
BLAKE2b-256 38972a0d5feac705f0f0f26113f794bd62123788b0b7c55190061d1a348c7085

See more details on using hashes here.

File details

Details for the file acd_tools-0.2a8-py3-none-any.whl.

File metadata

  • Download URL: acd_tools-0.2a8-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for acd_tools-0.2a8-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4f8ded59bbd7ee4772e3bbd48ecf4bbbc83ccd3db617a48659b6c2c89e9090
MD5 6ce6cf5eef901c314a0edc0837478312
BLAKE2b-256 b952104a0645fbf60c000936d45e387e2e6f691a8148a6939959e819cbe9e655

See more details on using hashes here.

Supported by

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