LLExec LxWin

From Axel Public Wiki
Jump to navigation Jump to search

LLExec for Acontis LxWin usage instructions

Prerequisites

Configure a LxWin RTOS machine with a dedicated ethercat capable network card (optional) and a virtual network to enable TCP/IP communication between Windows and LxWin.(See official LxWin documentation)

Ethercat has been tested only with Intel cards using e1000e linux driver. (eg. Intel I210 Series)

Installation

  • Extract the LLExec_x.y.z_LxWin.zip file into a windows folder, let's say c:\data\plc
  • Within LxWin, the directory "/mnt/rtfiles" is shared with Windows under "%APPDATA%\acontis_technologies\workspaces\default\Rtfiles". Copy there all files from c:\data\plc except for "LLExecStart_LxWin.exe" and "ProtocolData.dll"

Execution

  • From Windows side launch "LLExecStart_LxWin.exe".

(WARNING: This must be called always before starting the RTOS or at least before starting LLExec for the first time in a RTOS session).

  • Start the LxWin RTOS
  • From LxWin side execute "LxWin_EthercatInit.sh" to configure Intel network device in LxWin and load the e1000e driver. (This script have to be executed only one time after the system boot and before starting LLExec).

(WARNING: If not using Intel network cards, a driver different from e1000e should be used. So you have to modify the LxWin_EthercatInit.sh according to your card linux driver).

  • Launch "LLExec_LxWin.sh" to actually start LLExec.

(Without license it will start in DEMO mode, if you need a licence key please ask us specifing if you need Ethercat license too, since Ethercat functionality requires a separate key along with LLExec license key.

LogicLab usage

  • Execute LogicLab
  • Create a new project using the LLExec PLC runtime (LxWin) target
  • Configure the GDB connection using the virtual IP address of LxWin (typically 192.168.157.2), port 5000.
  • Connect to target with the upper left button

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.