Tools for the IEC 61131-3 structured text (ST) language. See: https://en.wikipedia.org/wiki/IEC_61131-3.
-
Install the
haskell-stack
package:$ sudo apt install haskell-stack
-
Clone this repo:
$ git clone git@code.ornl.gov:defcon-scada/structured-text.git
-
Enter the repo:
$ cd structured-text
-
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.
-
Add
stack
's default executable deployment directory to$PATH
:$ export PATH=$HOME/.local/bin:$PATH
Also consider adding this to
~/.bashrc
.
To run the unit tests:
$ stack test
The stack install
command should build the executable stxt
. For usage info:
$ stxt --help