Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 672 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 672 Bytes

l5x

A parser for the RSLogix5000 L5X format

This parser was designed to generate go structures for L5X tags for use with go-plc.

Example Usage

Generate a file gen.go in a package types which contains all of the types in your program file. go run github.com/stellentus/l5x/cmd/l5x-to-go -package types -in PATH/TO/PROGRAM.L5X -out gen.go

To generate the same as above, but using a go generate command in your project, add the following comment at the beginning of a file in the types package. //go:generate go run github.com/stellentus/l5x/cmd/l5x-to-go -package types -in PATH/TO/PROGRAM.L5X -out gen.go