Difference between revisions of "Beremiz"

From ArmadeusWiki
Jump to: navigation, search
(Simple usage)
(Target connection)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Under_Construction}}
 
 
 
== Introduction ==
 
== Introduction ==
  
Beremiz is free software toolkit for automation. It's conform with [http://en.wikipedia.org/wiki/IEC_61131 IEC61131] languages and can drive graphicaly your system.
+
Beremiz is a Free Software toolkit for automation. It conforms with [http://en.wikipedia.org/wiki/IEC_61131 IEC61131] languages and can graphically drive your system.
  
Beremiz is divided in two softwares:
+
Beremiz is divided in two software:
  
* '''Beremiz.py''': The Graphical toolkit that run on the Host to drive the target.
+
* '''Beremiz.py''': the graphical toolkit that run on the Host to drive the target,
* '''Beremiz_service.py''': The target runtime that execute the code compiled by Beremiz.py and sent by network to its.
+
* '''Beremiz_service.py''': the target runtime that execute the code compiled by Beremiz.py and sent to it through network.
  
Then there are two triky things to do to use beremiz on APF* platforms :
+
There are two tricky things to do to use Beremiz on APF* platforms :
 
+
* configure Beremiz.py to cross-compile binary for ARM,
* Configure Beremiz.py to cross-compile binary for ARM
+
* run Beremiz_service.py on APF.
* Run python program Beremiz_service.py on apf.
+
  
 
== Installation ==
 
== Installation ==
Line 19: Line 16:
 
=== Host ===
 
=== Host ===
  
To see how to install Beremiz on your host, please see the [http://www.beremiz.org/doc official website] (How to build with Linux).
+
Host part of Beremiz is installable through Armadeus Buildroot menuconfig :
  
=== Target ===
+
<pre class="host">
 +
$ make menuconfig
 +
</pre>
  
==== APF28 ====
+
Then select:
 +
<pre class="config">
 +
Target packages  --->
 +
    Development tools  --->
 +
        [*] matiec
 +
    ...
 +
    Graphic libraries and applications (graphic/text)  --->
 +
        [*] beremiz framework
 +
</pre>
  
Python 2.7 and Pyro are required to run Beremiz_service.py.
+
* Build/install it:
 +
<pre class="host">
 +
$ make
 +
</pre>
  
* To install python 2.7 run :
+
* Then to launch it:
 
<pre class="host">
 
<pre class="host">
make menuconfig
+
$ python buildroot/output/host/opt/beremiz/Beremiz.py
 
</pre>
 
</pre>
On up to date armadeus trunk view, then select :
+
 
 +
=== Target ===
 +
Python 2.7 and Pyro are required to run Beremiz_service.py:
 +
 
 +
<pre class="host">
 +
$ make menuconfig
 +
</pre>
 +
 
 
<pre class="config">
 
<pre class="config">
Package Selection for the target --->
+
Target packages --->
 +
    ...
 
     Interpreter languages and scripting  --->
 
     Interpreter languages and scripting  --->
 +
        ...
 
         [*] python
 
         [*] python
            python module format to install (.py sources only) --->
+
        external python modules --->
                          (X) .py sources only
+
            ...
        core python modules  --->
+
            [*] python-pyro
                    [*] bzip2 module
+
                    [*] bsddb module     
+
                    [*] codecscjk module 
+
                    [*] curses module     
+
                    [*] pyexpat           
+
                    [*] readline         
+
                    [*] ssl               
+
                    [*] unicodedata module
+
                    [*] sqlite module     
+
                    [*] zlib module       
+
                    [*] hashlib module   
+
 
</pre>
 
</pre>
then make :
+
* then:
 
<pre class="host">
 
<pre class="host">
 
$ make
 
$ make
 
</pre>
 
</pre>
  
* To install Pyro3.14 the tricky method is:
+
===== Install Beremiz_service.py =====
** download Pyro3.14 tarball [https://pypi.python.org/packages/source/P/Pyro/Pyro-3.14.tar.gz#md5=2101230425e6c76f5aa2e9d5167cbd3b here] and decompress it in your [[nfs]] directory.
+
 
 
<pre class="host">
 
<pre class="host">
cd /local/export
+
$ make menuconfig
wget https://pypi.python.org/packages/source/P/Pyro/Pyro-3.14.tar.gz#md5=2101230425e6c76f5aa2e9d5167cbd3b
+
tar -zxvf Pyro-3.14.tar.gz
+
 
</pre>
 
</pre>
  
** Then once on your target (APF28) with python 2.7 installed go to your nfs directory and install it :
+
<pre class="config">
<pre class="apf">
+
Target packages  --->
cd /mnt/nfs/Pyro3.14
+
    ...
python setup.py install
+
    Graphic libraries and applications (graphic/text)  --->
 +
        ...
 +
        [*] Beremiz runtime
 
</pre>
 
</pre>
  
 
== Simple usage ==
 
== Simple usage ==
  
=== launch on target ===
+
=== Target connection ===
  
== Links ==
+
* When Beremiz.py is launched on your Host, create or open a project then save it.
 +
* in project "Config" tab set the correct "URI_location":
 +
URI_location: PYRO://192.168.0.33:3000
  
 +
Replace 192.168.0.33 by the IP of your APF28.
 +
 +
* then clic on «connect» icon.
 +
* You can compile your project and try to send it...
 +
* To configure your compiler, go to project configuration (double clic on head of hierarchy) and adding the path of your compiled armgcc :
 +
YOUR_ARMADEUS_PATH/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
 +
for linker and compiler.
 +
 +
* You can then compile and transfer the program to the APF...
 +
 +
== Links ==
 
* [http://www.beremiz.org/ Home page of project].
 
* [http://www.beremiz.org/ Home page of project].
 +
 +
[[Category:Automation]]

Latest revision as of 16:11, 31 July 2014

Introduction

Beremiz is a Free Software toolkit for automation. It conforms with IEC61131 languages and can graphically drive your system.

Beremiz is divided in two software:

  • Beremiz.py: the graphical toolkit that run on the Host to drive the target,
  • Beremiz_service.py: the target runtime that execute the code compiled by Beremiz.py and sent to it through network.

There are two tricky things to do to use Beremiz on APF* platforms :

  • configure Beremiz.py to cross-compile binary for ARM,
  • run Beremiz_service.py on APF.

Installation

Host

Host part of Beremiz is installable through Armadeus Buildroot menuconfig :

$ make menuconfig

Then select:

Target packages  --->
    Development tools  --->
        [*] matiec 
    ...
    Graphic libraries and applications (graphic/text)  --->
        [*] beremiz framework
  • Build/install it:
$ make
  • Then to launch it:
$ python buildroot/output/host/opt/beremiz/Beremiz.py 

Target

Python 2.7 and Pyro are required to run Beremiz_service.py:

$ make menuconfig
Target packages  --->
    ...
    Interpreter languages and scripting  --->
        ...
        [*] python
        external python modules  --->
            ...
            [*] python-pyro
  • then:
$ make
Install Beremiz_service.py
$ make menuconfig
Target packages  --->
    ...
    Graphic libraries and applications (graphic/text)  --->
        ...
        [*] Beremiz runtime

Simple usage

Target connection

  • When Beremiz.py is launched on your Host, create or open a project then save it.
  • in project "Config" tab set the correct "URI_location":
URI_location: PYRO://192.168.0.33:3000

Replace 192.168.0.33 by the IP of your APF28.

  • then clic on «connect» icon.
  • You can compile your project and try to send it...
  • To configure your compiler, go to project configuration (double clic on head of hierarchy) and adding the path of your compiled armgcc :
YOUR_ARMADEUS_PATH/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc

for linker and compiler.

  • You can then compile and transfer the program to the APF...

Links