A wrapper for PLC communication in golang. Examples are provided in the example directory. They expect to be run against the stub version of libplctag
.
Try running example/toggle-bool/main.go
:
- Install the
libplctag
dynamic library wherever your OS expects it. (Just follow thelibplctag
instructions tomake install
.) go run example/toggle-bool/main.go
(or usego build
)
- Install the stub version of the
libplctag
dynamic library. - Build or run the code using the
stub
tag. e.g.go run -tags stub example/toggle-bool/main.go