Driver Documentation
Database
This documentation describes the process of creating an own SPI driver for CODESYS, based on the SPI Template, which can be found in the Code Repository. The driver consists of a "Device Description" as well as a CODESYS Library. All essential settings in the Library or the Device Description are repeated in this documentation. For more detailed informations about the Device Descriptions, please check the general I/O driver documentation.
You can use a copy of the Device Description "SPI_Template.devdesc.xml" as a starting point. You need to adapt the following sections of the device description for your needs.
<DeviceDescription>
...
<Device>
...
<DeviceIdentification>
...
<Type>501</Type>
...
</DeviceIdentification>
...
</Device>
...
</DeviceDescription>
<DeviceDescription>
...
<Device>
...
<DeviceIdentification>
...
<Id>0003 0001</Id>
...
</DeviceIdentification>
...
</Device>
...
</DeviceDescription>
<DeviceDescription>
...
<Device>
...
<DeviceIdentification>
...
<Version>1.0.0.0</Version>
...
</DeviceIdentification>
...
</Device>
...
</DeviceDescription>