LLExec Ubuntu x64: Difference between revisions

From Axel Public Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
=Supported Features=
=Supported Features=
* Generation of immediately executable code upon compiling
* Generation of immediately executable code upon compiling

Revision as of 14:57, 21 July 2021

Supported Features

  • Generation of immediately executable code upon compiling
  • Hot swap download: allowing you to download the new application without halting the current execution
  • Floating point support: for optimized floating point operations
  • Extended string support: for optimized string operations
  • Extended math support: for optimized math operations
  • Relocatable code: for optimized memory usage
  • Source code download and upload: allowing you to download the project source code on the target and to retrieve it in a second moment
  • Can use SoftScope trace tool
  • On-line debug: advanced debug instrument which allow you to see current symbols value directly inside the editor
  • Triggers and graphic triggers debugging instruments
  • Breakpoints and step debug
  • Synchronous I/O forcing
  • Dynamic check of stack integrity
  • Dynamic check of array validity
  • Dynamic check of pointers validity
  • Object-oriented programming mode


LLExec for Ubuntu x64 usage instructions

Prerequisites

  • Configure an Ubuntu x64 machine

Tested on:

  Ubuntu x64 16.04 LTS (4.15.0-66-generic)
  Ubuntu x64 18.04 LTS (5.0.0-23-generic)
  • If ethercat is needed, an ethercat capable ethernet card is required in addition to the normal network device used for TCP/IP communication.

This is tipically done by using the integrated LAN device on your PC motherboard for Ethercat and other network cards (eg. external Pci-X network card device) for TCP/IP network connection (needed by LogicLab GDB connection).

  • "net-tools" package should be installed (use "sudo apt-get install net-tools")

Installation

  • Download LLExecUbuntuInstaller.sh installer and launch it with the following parameters:
   ./LLExecUbuntuInstaller.sh BASE [destination_dir]

BASE: specifies base Ubuntu x64 version (not OSADL).

[destination dir] is optional, if not used, LLExec will be installed into default path /data/plc.

Execution

  • Launch "sudo ./LLExec" from /data/plc folder to start LLExec with root privileges. (Without license it will start in DEMO mode).

By default LLExec loads the configuration stored in "LLExecLinux.conf". If you need to load a different configuration file use "LLExec -f <filename.conf>"

LogicLab usage

  • Execute LogicLab from a Windows machine connected to the same network of the LLExec Ubuntu machine.
  • Create a new project using the LLExec PLC runtime (x64_Ubuntu) target
  • Configure the GDB connection using the IP address of the Ubuntu machine (eg. 192.168.1.10), port 5000.
  • Connect to target with the upper left button

Ethercat Configuration

  • The network interface that will be used with ethercat needs to be clean from every protocols. Tipically this is done disabling every checkbox from "Edit Connections" in Ubuntu (thus disabling DCHP/IPv6/WoL etc..)
  • File "LLExecLinux.conf" needs to be edited with the network card that will be used for Ethercat:
<plugin filename="./LLXPlugin_EtherCAT.so">
     <EtherCAT port=[eth device name]|[port number]
</plugin></nowiki>

If you use [port number] you can specify eth interface number. (Eg: port="0" will use eth0 device for ethercat)

If you use [eth device name] you can specify eth interface name following the new naming convention of recent Ubuntu distributions. (Eg: port="enp0s31f6" will use enp0s31f6 device for ethercat)

  • use "ifconfig" command to know the current names of your network interfaces

Ethercat Master example

  • Import an .esi file with the command "Tools->Import ESI".
  • Click on resources tab of LogicLab, then select the "Ethercat" node and enable it with the checkbox.
  • Right click on the "main network" ethercat node and select "add" to add your imported ethercat device.
  • A new node for the ethercat device will appear, configure it as you like.
  • Save, compile and download the project to the target.