NAME
Device::Opto22 - Perl Object to communicate with Opto22 Brains via Memory-mapped protocol
SYNOPSIS
use Device::Opto22;
my $brain_ip = '192.168.1.7';
my $sock = new Device::Opto22( PeerAddr => "$brain_ip",PeerPort => '2001' );
my $rtn = $sock->send_PUC();
# Read Opto22 scratch pad tables
my $int_table_sz = 15; # number of entries to read in integer scratch pad table
my $flt_table_sz = 18; # number of entries to read in float scratch pad table
my @int_lst = $sock->get_scratchpadint($int_table_sz);
my @flt_lst = $sock->get_scratchpadfloat($flt_table_sz);
DESCRIPTION
This Module communicates with an Opto22 Brain/Controller via OptoMMP a memory-mapped protocol based on the IEEE 1394 standard. This module can be used to create custom software applications for remote monitoring, industrial control, and data acquisition using Opto modular components
Methods include:
get_scratchpadint - Get Integer Scratchpad
get_scratchpadfloat - Get Floating Scratchpad
get_eu_lst - Get Analog Bank Data in Engineering Units
get_digital_lst - Get Digital Bank Data
wr_digital_pnt - Write digital point
serial_chat - Send received data to serial module
Note: The Opto22 Brains are in Big-endian format. The module translates this into common Little-endian format. If you are trying this module out on a Big-endian machine you will need to edit the source code as required.
EXPORT
None by default.
SEE ALSO
For more detailed information on Opto22 components and OptoMMP see...
http://www.opto22.com/documents/1465_OptoMMP_Protocol_Guide.pdf http://www.opto22.com
http://perlworks.com
AUTHOR
Written and maintained by: Duane Nightingale and Steve Troxel (email troxel "at" perlworks.com)
COPYRIGHT AND LICENSE
Copyright (C) 2010
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 345:
=over should be: '=over' or '=over positive_number'