Skip to content

chathhorn/structured-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

structured-text

Tools for the IEC 61131-3 structured text (ST) language. See: https://en.wikipedia.org/wiki/IEC_61131-3.

Build and install (on Ubuntu 20.04)

  1. Install the haskell-stack package:

    $ sudo apt install haskell-stack
  2. Clone this repo:

    $ git clone git@code.ornl.gov:defcon-scada/structured-text.git
  3. Enter the repo:

    $ cd structured-text
  4. Build and install:

    $ stack install

    This step will take a while the first time, as it'll install Haskell and all the build dependencies as well.

  5. Add stack's default executable deployment directory to $PATH:

    $ export PATH=$HOME/.local/bin:$PATH

    Also consider adding this to ~/.bashrc.

Testing

To run the unit tests:

$ stack test

Usage

The stack install command should build the executable stxt. For usage info:

$ stxt --help

About

Tools for the IEC 61131-3 language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published