REX controls Raspberry Pi User Manual

Driver for the rex control system, the rpidrv module.

Advertisement

Quick Links

www.rexcontrols.com/rex
Raspberry Pi driver for the REX Control System
(the RPiDrv module)
User guide
REX Controls s.r.o.
Version 2.50.1
2016-11-07
Plzeň (Pilsen), Czech Republic

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Raspberry Pi and is the answer not in the manual?

Questions and answers

Summary of Contents for REX controls Raspberry Pi

  • Page 1 Raspberry Pi driver for the REX Control System (the RPiDrv module) User guide REX Controls s.r.o. Version 2.50.1 2016-11-07 Plzeň (Pilsen), Czech Republic...
  • Page 2: Table Of Contents

    1.3 Installation of the driver on the host computer ....1.4 Installation of the driver on the target device (Raspberry Pi) ..
  • Page 3: The Rpidrv Driver And The Rex Control System

    REX Controls company. System requirements The RPiDrv driver can be used on all Raspberry Pi models which does have a network adapter (LAN / WAN). In order to use the driver, the host computer (development) and the target computer...
  • Page 4: Installation Of The Driver On The Host Computer

    REX Control System. It is necessary to select the corresponding package in the installer. The REX Control System typically installs to the C:\Program Files (x86)\REX Controls\REX <version> folder. The following files are copied to the installation folder: Bin\RPiDrv_H.dll – Configuration part of the RPiDrv driver.
  • Page 5: Including The Driver In The Project

    It is recommended to name the IODRV block according to the used platform: • RPI – Raspberry Pi GPIO, PiFace Digital expansion board • UNP – UniPi expansion board • PIO – Intellisys PIO platform The most important parameters of IODRV block are: module –...
  • Page 6: Connecting The Inputs And Outputs In The Control Algorithm

    (.mdl files). The individual tasks (QTASK or TASK blocks) are connected to the QTask, Level0,. . . , Level3 outputs of the main EXEC block. 2.2.1 GPIO pins of the Raspberry Pi Necessary IODRV block configuration for Raspberry Pi GPIO:...
  • Page 7 • Block name – RPI • module – RPiDrv • classname – RPiDrv The inputs and outputs of the RPiDrv driver can be accessed as shown in Fig. 2.2. Figure 2.2: Example of input and output flags of the RPiDrv driver One block of the From type allowing the user to read one input has the Goto tag set to RPI__GPIO21U, while the other has this tag set to RPI__GPIO22U.
  • Page 8: The Piface Digital Expansion Board

    D for internal pull-down in inputs and H or L for initial state in outputs. The pin numbering on Raspberry Pi is shown in Fig. 2.3. All the input and output flags for the Raspberry Pi GPIO pins are prepared by de- fault in the folder C:\Program Files (x86)\REX Controls\REX <version>\Examples\RaspberryPi_examples\...
  • Page 9: The Unipi Expansion Board

    Digital. All the input and output flags for the PiFace Digital expansion board are prepared by default in the folder C:\Program Files (x86)\REX Controls\REX <version>\Examples\PiFaceDigital_examples\ 00_IO_Flags. Figure 2.4: Input and output flags when using PiFace Digital The numbering of the screw terminals of the PiFace Digital is depicted in Fig. 2.5.
  • Page 10: The Intellisys Pio Expansion Board

    The pin numbering of the UniPi expansion board is shown in Fig. 2.7. All the input and output flags for the UniPi expansion board are by default prepared in the folder C:\Program Files (x86)\REX Controls\REX <version>\Examples\UniPi_examples\ 00_IO_Flags. 2.2.4 The Intellisys PIO expansion board Necessary IODRV block configuration for Intellisys PIO expansion board:...
  • Page 11 Figure 2.6: Input and output flags when using UniPi C:\Program Files (x86)\REX Controls\REX <version>\Examples\PIO_examples\00_ IO_Flags.
  • Page 12 Figure 2.7: UniPi – numbering of terminals Figure 2.8: Input and output flags when using Intellisys PIO...
  • Page 13 Figure 2.9: Intellisys PIO – numbering of terminals...
  • Page 14: Troubleshooting

    Chapter 3 Troubleshooting In the case that the diagnostic tools of the REX Control System (e.g. RexView) report unexpected or incorrect values of inputs or outputs, it is desirable to test the functionality outside the REX Control System (command line tools, simple Python script, etc.). Also double check the configuration –...
  • Page 15: Bibliography

    Bibliography [1] The Raspberry Pi Foundation. Raspberry Pi. http://www.raspberrypi.org, 2013. [2] University of Manchester. PiFace Digital Interface. http://www.piface.org.uk, 2013. [3] REX Controls s.r.o.. Getting started with REX on Raspberry Pi, 2013. Documentation reference number: 7567...

Table of Contents