logiCAD3 is the engineering software used to create control applications on the RevolutionPi. The runtime system logi.RTS is pre-installed as a test version. You can activate this test version in the web server. After restarting RevPi you can use the trial version for one hour. With a licence the runtime system can be extended to a full version. This can be purchased in our online shop.
logiCAD3 itself must be installed on a development computer (Windows or Linux). You can download logiCAD3 for free from our online shop.
- Open logi.CAD3.
- Click on File/New to create a new project.
The folder logi.CAD3 Example projects for hardware connection contains the example project Counter project for Revolution Pi.
- Open the file RevolutionPi.iecplc in the project explorer.
Project “Counter project for Revolution Pi”
- Enter the IP address of the RevPi for the value “ADDRESS”.
Tasks are defined in the lower section. For the example project we don’t have to change anything except the IP address.
The next step is to activate the logi.RTS service and create the PiCtory configuration.
- Enter the IP address of your RevPi Core in your browser’s address bar.
The login window opens.
- Log in with the username “admin”.
- Enter your password. You will find it on the sticker on the side of your RevPi Core.
- Click on “Login”
You will now see the current device status of your RevPi Core.
- Click on the “SERVICES” tab and activate the logi.RTS runtime system.
- Save the changes with “SAVE ALL”
- Click on the “APPS” tab.
- Click on the start button behind the entry “PiCtory” to open PiCtory.
PiCtory is opened.
Arrange your devices on the virtual DIN rail in the same way as the devices are arranged in reality:
- Select your RevPi Core or RevPi Connect in the Device Catalog.
- Drag and drop it into the empty slot on the virtual DIN rail
- Right-click on the empty slot next to your RevPi Core or Connect.
A context menu opens.
- Click on “Insert empty columns”.
- Drag and drop the modules you are using from the Device Catalog into the empty slot.
- In this way you can replicate your device composition exactly as you did it in reality.
- In the Value Editor -below right- you can rename the inputs and outputs.
- Behind each variable in the Value Editor you will find the checkbox “Export”. If you check this variable, you will be able to use it later in logi.CAD3.
- Click on File/Save to save the current configuration.
- Click on Tools/Reset Driver to apply the configuration.
- Click on File/Export.
A selection box opens.
- Select Structured Text IEC 61131-3 and enter a file name.
- The definition of the global variable is created and opened in an editor.
- Copy the entire text to the clipboard.
- In the globals folder in logi.CAD3, open the file sample.global.
- Delete the contents and paste the text from the clipboard instead.
The example program counts up the output; with the input it is possible to change the counting direction.
- Switch to the Application test view.
- Click on the green gears button to connect to the RevPi.
- Click on the Start button to start the program.
Now the “Output” on the Modbus RTU module should be counted up. You can check whether the “Output” is really counted up on the process image using “piTest -r Output”.
Alternatively, if you are familiar with Modbus you can use a Modbus RTU Master to read the output register of the Modbus RTU Slave on the RevPi.