18 Dec 2017 08:29:53 UTC
- Distribution: Device-Modbus-ASCII
- Module version: 0.006
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (182 / 0 / 404)
- KwaliteeBus factor: 0
- 84.21% Coverage
- License: artistic_2
- Activity24 month
- Download (6.31KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionJFRAIRE Julio Fraireand 1 contributors
- Julio FRAIRE
- SEE ALSO
- GITHUB REPOSITORY
- COPYRIGHT AND LICENSE
Device::Modbus::ASCII - Modbus ASCII communications for Perl
#! /usr/bin/env perl use Device::Modbus::ASCII::Client; use strict; use warnings; use v5.10; my $client = Device::Modbus::ASCII::Client->new( port => '/dev/ttyUSB0', baudrate => 19200, parity => 'even', ); my $req = $client->read_holding_registers( unit => 4, address => 0, quantity => 2, ); $client->send_request($req); my $resp = $client->receive_response;
This distribution implements the Modbus ASCII protocol on top of Device::Modbus. It includes only a client, Device::Modbus::ASCII::Client, which is based on Device::Modbus::Client. See this last module for the core of the documentation.
This distribution came to life thanks to Stefan Parvu from Kronometrix. It was his motivation, dedication and support that made this module possible.
You can find the repository of this distribution in GitHub.
Julio Fraire, <email@example.com>
Copyright (C) 2017 by Julio Fraire This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install Device::Modbus::ASCII, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Device::Modbus::ASCII
For more information on module installation, please visit the detailed CPAN module installation guide.