Raspberry Pi HMI: Difference between revisions

From Axel Public Wiki
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
The steps to follow are simply to modify the '''LLExecLinux.conf''' file, under directory '''/data/plc'''<br>
The steps to follow are simply to modify the '''LLExecLinux.conf''' file, under directory '''/data/plc'''<br>
You have to uncomment out this section:
You have to uncomment out this section:
  <runtime filename="./LLXRt_Linux_ARM_HMI.so" area="1" targetId="RaspPI_2p0" targetComm="RaspPI_HMI">
  <runtime filename="./LLXRt_Linux_ARM_HMI.so" area="1" targetId="<b>RaspPI_2p2</b>" targetComm="RaspPI_HMI">
   <memory>
   <memory>
   <data size="0x80000"/>
   <data size="0x80000"/>
Line 24: Line 24:
  </runtime>
  </runtime>
then you must restart your Raspberry PI.
then you must restart your Raspberry PI.
= Using Pagelab =
= Using Pagelab =
== Configuration ==
== Configuration ==

Revision as of 17:59, 22 October 2019

This article is intended to give some basic HMI support on the Raspberry PI runtime.

Requirements

  • An HDMI display capable to display resolution of 800x480.
  • A usb touch screen, or a usb mouse supported by the Raspbian distribution.

Target configuration

The steps to follow are simply to modify the LLExecLinux.conf file, under directory /data/plc
You have to uncomment out this section:

<runtime filename="./LLXRt_Linux_ARM_HMI.so" area="1" targetId="RaspPI_2p2" targetComm="RaspPI_HMI">
 <memory>
  
  <databit size="0x0"/>
  <dataret size="0x0"/>
  
  <debug size="0x400000"/>
 </memory>
 <tasks>
  <task name="Draw" id="0" period="20000" type="worker"/>
  <task name="Refresh" id="1" period="20000" type="worker"/>
  <task name="Trend" id="2" period="100000" type="worker"/>
 </tasks>
 <params>
  <param name="vnc_enable" value="false"/>
 </params>
</runtime>

then you must restart your Raspberry PI.

Using Pagelab

Configuration

Open PageLab software, the click on New project button.
Select target Raspberry PI 2.0 then give a name to the project.
Click on menu Project ==> Communication settings.
Select the GDB protocol and click on button Properties to specify the actual IP of the Raspberry.

Create a page

On the project tree, please right click on the Pages node then press Insert page.
Double click on the new page node, from the PLC Vars pane drag the sysSeconds variable in the page,
then select Edit control.

Compile and download

Select menu Project ==> Generate code
Select menu Project ==> Download project