Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heyoka/snap7erl
Erlang wrapper around the multiarch snap7 library
https://github.com/heyoka/snap7erl
erlang plc s7-addressing siemens-s7-plcs snap7
Last synced: about 1 month ago
JSON representation
Erlang wrapper around the multiarch snap7 library
- Host: GitHub
- URL: https://github.com/heyoka/snap7erl
- Owner: heyoka
- License: apache-2.0
- Created: 2019-08-29T14:43:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T07:38:48.000Z (2 months ago)
- Last Synced: 2024-10-17T22:53:24.476Z (2 months ago)
- Topics: erlang, plc, s7-addressing, siemens-s7-plcs, snap7
- Language: C++
- Size: 752 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
snap7erl
=====Erlang only version of https://github.com/valiot/snapex7
Note: the snap7 sources are included in this library at the moment.
Supported architectures
----------------------
Sucessfully builds and tested on:+ Linux i386
+ Linux x86_64
+ Linux armv6
+ Linux armv7
+ Linux armv7lBuild
-----$ rebar3 compile
Start
-----
$ rebar3 shell
Useage
------
%% start a client
{ok, Client} = snapclient:start([]).
%% connect to a S7
ok = snapclient:connect_to(Client, [{ip, <<"127.0.0.1">>}, {slot, 1}, {rack, 0}]).
%% read a DB with addressing
A = <<"DB4.DBR2">>,
ParamList = s7addr:parse(A, return_list),
snapclient:db_read(Client, ParamList).