-
-
18 Dec 2017 08:29:53 UTC
- Distribution: Device-Modbus-ASCII
- Module version: 0.006
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (182 / 0 / 404)
- Kwalitee
Bus factor: 0- 84.21% Coverage
- License: artistic_2
- Activity
24 month- Tools
- Download (6.31KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Julio FRAIRE
- Dependencies
- Device::Modbus
- Device::SerialPort
- Role::Tiny
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Device::Modbus::ASCII - Modbus ASCII communications for Perl
SYNOPSIS
#! /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;
DESCRIPTION
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.
THANKS
This distribution came to life thanks to Stefan Parvu from Kronometrix. It was his motivation, dedication and support that made this module possible.
SEE ALSO
Other distributions
These are other implementations of Modbus in Perl which may be well suited for your application: Protocol::Modbus, MBclient, mbserverd.
GITHUB REPOSITORY
You can find the repository of this distribution in GitHub.
AUTHOR
Julio Fraire, <julio.fraire@gmail.com>
COPYRIGHT AND LICENSE
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.
cpanm Device::Modbus::ASCII
perl -MCPAN -e shell install Device::Modbus::ASCII
For more information on module installation, please visit the detailed CPAN module installation guide.