GithubHelp home page GithubHelp logo

acd's Introduction

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.

Unzip

To extract the file use the acd.unzip.Unzip class

from acd.unzip import Unzip

unzip = Unzip('CuteLogix.ACD')
unzip.write_files('output_directory')

Extract Database

Extracting the records from a database file is still a work in progress. However, there is some consistencies across the database files.

To read each of the records and store them in a byte array use the DbExtract function

db = DbExtract("build/SbRegion.Dat")

Extract SbRegion

The SbRegion file seems to be fairly basic, to then parse each record from a DbExtract use code similar to that below.

db: DbExtract = DbExtract("build/SbRegion.Dat")
records: List[SbRegionRecord] = []
for record in db.records:
    records.append(SbRegionRecord(record))

You can then read the string format for each rung. I haven't seen anything other than rungs yet, but hopefully they are stored in a similar format.

records[0].text 

will contain something like

LOWER(@f060d7ef@[6],@f060d7ef@[7]);

The tag references are stored in another database.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.