How to Use logiCAD3 and PiCtory

logiCAD3 is the engineering software to create control applications on Revolution Pi. The logi.RTS runtime system is pre-installed on RevPi and is automatically started upon booting.

Pre-installed is a test version that ends after one hour. A licence for the full version can be acquired in the online shop.

logiCAD3 itself has to be installed on a development computer (Windows or Linux). logiCAD3 can be acquired free of charge as a Download from our online shop.

After starting logi.CAD3, you have to set up a new projects using File/new (Datei/Neu). There is a sample project titled “logi.CAD3 KUNBUS Revolution Pi Projekt” in the “logi.CAD3 Beispielprojekte für Hardware-Anbindung” file.

Project "logi.CAD3 KUNBUS Revolution Pi Projekt" Screenshot
Open project “logi.CAD3 KUNBUS Revolution Pi Projekt”

In project explorer, one can open the RevolutionPi.iecplc file in the new project. One has to enter the IP address of the RevPi in the upper section. Tasks are defined in the lower part. Nothing needs to be changed here at the moment.

As the next step, one has to configure the hardware in PiCtory.

  • Enter the IP address of your RevPi Core in the address box of your browser.

The log-in window opens.

  • Login with the user name “admin”.
  • Enter your password. You will find the sticker on the side of your RevPi Core.
  • Click on “Login”

You can now see the current status of your RevPi Core.

Apps tab screenshot
  • Click “Apps” tab.
  • Click the start button behind the entry “PiCtory” to start PiCtory.

PiCtory opens.

Screenshot of PiCtory
Screenshot of PiCtory

In PiCtory, you have to order RevPi, I/O modules and gateway modules in the same way as in reality. Right clicking on the mouse will open a small context menu which can insert empty columns and delete modules. Using drag-and-drop, you can insert modules from Device Catalog to the left in the empty slots.

Dragging a module onto an already existing module will replace the latter. There are only 2 restrictions: RevPi Core cannot be replaced and gateways always have to be in the most outer position. If you click on the number above the pictures of the modules and drags it then you can change the order.

As the next step, you can give the inputs and outputs better names to the bottom right in Value Editor. Ticking Export in the variable allows the variable to be used later in logi.CAD3.

Now the current configuration has to be saved in PiCtory with File/Save and activated with Tools/Reset Driver.

With File/Export, a little choice box will be opened. After selecting Structured Text IEC 61131-3 and entering a file name, the definition of the global variable will be created and opened in an editor. Copy then whole text in clipboard.

Back in logi.CAD3, you open the file in the globals folder, delete its contents and insert instead the text from the clipboard.

Now you can open the RevolutionPiProgram in the src/RevPi folder and insert variables defined in PiCtory in the VAR_EXTERNAL section.

Statusseite Bildschirm

The above example always turns off and on the first output of the DIO module Output_Pin_1. At the same time, the green LED A1 on RevPi will be turned off and on.

Statusseite Bildschirm

In the Applikationstest view, you can connect up to the RevPi by pressing the button with the two green cogs and then start the programme by pressing the start button. The LED A1 on RevPi should now start blinking green and the O1 output will be turned on and off.