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.
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.CAD 3 Vorlagen” file.
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 Connect 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 Connect.
- Click on “Login”
You can now see the current status of your RevPi Connect.
- Click “Apps” tab.
- Click the start button behind the entry “PiCtory” to start PiCtory.
Dragging a module onto an already existing module will replace the latter. There are only 2 restrictions: RevPi Connect cannot be replaced and gateways always have to be in the left 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 sample.global 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.
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.
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.