2.1 Adding the DbDrv driver

The project main file with the DbDrv driver included is shown in Figure 2.1.


PIC


Figure 2.1: An example of project main file with the DbDrv driver included

There are 2 blocks which must be added to the project to include the driver. First the MODULE block is attached the the Modules output of the EXEC function block. It must be renamed to DbDrv.

The other block named DB is of type IODRV and it is connected to the Drivers output of the main EXEC block. The three most important parameters are:

The name of this block (DB, see Fig. 2.1), is the prefix of all input and output signals provided by this driver.

The above mentioned parameters of the IODRV function block are configured in the RexDraw program as shown in Figure 2.2.


PIC


Figure 2.2: Settings of the DbDrv I/O driver