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 based on Raspberry I2C MEGAIO driver v1.1.0.0 by Sequent Microsystems.

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

System interface of MEGA-IO driver v1.1.0.0

VAR_INPUT
    //stackLevel: USINT;
    dacVoltage: REAL := 0;
    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_VAR
VAR_OUTPUT  
    adcVoltages: ARRAY[0..7] OF REAL;
    adcRaw: ARRAY[0..7] OF UINT;
    optoIn: ARRAY[0..7] OF BOOL;
    gpioIn: ARRAY[0..5] OF BOOL;
END_VAR