LLExec LxWin
LLExec for Acontis LxWin usage instructions
Prerequisites
Configure a LxWin RTOS machine (currently tested on LxWin 7.1.02.04) 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)
WARNING: Ethercat has been tested only with Intel network 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". Make a new directory (eg: Rtfiles\plc) and copy there all files from c:\data\plc except for "LLExecStart_LxWin.exe" and "ProtocolData.dll"
- Move the new plc directory with all files and subdirs to /tmp/plc
Current version: LLExec_2.20.17_LxWin
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
- (optional for EtherCAT): 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 or e1000e driver, you have to modify the LxWin_EthercatInit.sh according to the device name and linux driver of your card).
- Launch "runLLExec.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 (A new project will be created with just a counter variable that increments itself)
- Click on menu "On-Line->Setup Communication" to configure a GDB connection using the virtual IP address of LxWin (typically 192.168.157.2), port 5000.
- Click on menu "On-Line->Connect" to connect to target (or use the dedicated button in the toolbar)
Ethercat Master example (optional)
- 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.