Steve Troxel > Device-Opto22-0.92 > Device::Opto22

Download:
Device-Opto22-0.92.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.92   Source  

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 Opto22 modular components.

There is an underlying Firewire.pm module that is used.

Methods ^

Methods include:

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.

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: Steve Troxel and Duane Nightingale (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.

syntax highlighting: