2.1 Adding the OwsDrv driver
The project main file with the OwsDrv driver included is shown in Figure 2.1.
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 OwsDrv.
The other block of type IODRV is named OWS and it is connected to the Drivers output of the main EXEC block. The three most important parameters are:
- module
- – Name of the module linked to the driver, in this case OwsDrv. The name is CASE SENSITIVE!
- classname
- – Class of the driver, in this case OwsDrv. The name is CASE SENSITIVE!
- cfgname
- – Name of the driver configuration file (*.rio, REX Input/Output). It is a simple text file which is automatically created when necessary. It can have arbitrary name (here ow_cfg.rio). The configuration is further discussed in chapter 3.
The name of this block (OWS, 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 RexDraw program. The configuration dialog is shown also in Fig. 2.1.
[Back to top] [Up] [Next]