Home

aliazzz
There is a newer version of this page. You can find it here.

Project Members:

The MEGA-IO expansion card for Raspberry-Pi

This driver is a IoDrvFB library as a wrapper around Raspberry I2C MEGAIO driver v1.1.0.0 by Sequent Microsystems.
To optimise the dataflow, some (minimal) code in I2C MEGAIO driver v1.1.0.0 has been revised.

  • 100% Open source,
  • 100% Pure IEC 61131-3 code (ST)

Changelog

v2.0.0.0 info

Initial release in cforge

see https://forge.codesys.com/drv/io-drivers/database/Home/ for details.

    <DeviceIdentification>
      <Type>501</Type>
      <Id>0004 0006</Id>
      <Version>2.0.0.0</Version>
    </DeviceIdentification>

IO interface of MEGA-IO driver v2.0.0.0

// 1000
TYPE IoDrvInput
STRUCT
    dacVoltage: REAL := 0; // added for sake of argument
    relayState: ARRAY[0..7] OF BOOL;
    openDrainState: ARRAY[0..3] OF BOOL;
    gpioOut: ARRAY[0..5] OF BOOL;
    gpioDir: ARRAY[0..5] OF BOOL;
END_STRUCT
END_TYPE

// 2000
TYPE IoDrvOutput
STRUCT
    adcVoltages: ARRAY[0..7] OF REAL; // added for sake of argument
    adcRaw: ARRAY[0..7] OF UINT;
    optoIn: ARRAY[0..7] OF BOOL;
    gpioIn: ARRAY[0..5] OF BOOL;
END_STRUCT
END_TYPE

devdesc.xml

The IO interface still needs to be declared in correct UDT (struct of array components) => throws errors at this moment