Help for this page

Select Code to Download


  1. or download this
        my $itemdata = OPCItemRead ($rightdata[0], $i+1);
        $rightdata[0]->{lastvalues}->[$i] = $itemdata->{Value};
        OPCItemWrite($rightdata[0], $i+1, $rightdata[0]->{lastvalues}->[$i
    +] + 1);
    
  2. or download this
    sub OPCItemRead {
    
    ...
        $items->Item($itemno)->Write($newvalue);
        
    }
    
  3. or download this
    OPC::Item::Write Matrikon.OPC.DDE:
        Win32::OLE(0.1707) error 0x80070057: "The parameter is incorrect"
        in METHOD/PROPERTYGET "Write"
     at C:/Program Files/Perl/lib/Win32/OLE/OPC.pm line 1666
    
  4. or download this
    x $items->Item($itemno)->Read($OPCDevice)
    
  5. or download this
    OPC::Item::Write Matrikon.OPC.DDE:
        Win32::OLE(0.1707) error 0x80070057: "The parameter is incorrect"
    ...
            Win32::OLE::OPC::Item::Write('Win32::OLE::OPC::Item=HASH(0x22c
    +2360)', 11) called at opccompare.pl line 542
            main::OPCItemWrite('HASH(0x2291d14)', 5, 11) called at opccomp
    +are.pl line 151
    main::(opccompare.pl:154):                              if (not($debug
    + =~ m/quiet/)) {
    
  6. or download this
    <b>Write(VALUE)</b>
         Write VALUE to this item.