View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Steve Troxel > Device-Opto22-0.92 > Device::Opto22



Annotate this POD

View/Report Bugs
Module Version: 0.92   Source  


Device::Opto22 - Perl Object to communicate with Opto22 Brains via Memory-mapped protocol


        use Device::Opto22;
        my $brain_ip = '';
        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);


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 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.


For more detailed information on Opto22 components and OptoMMP see...


Written and maintained by: Steve Troxel and Duane Nightingale (email troxel "at"


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: