This driver is a IoDrvFB based wrapper around the 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.
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>
// 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
The IO interface still needs to be declared in correct UDT (struct of array components) => throws errors at this moment