Per Stenebo
2012-02-24 21:30:21
2019-11-10 20:38:54
Lintouch
2012-02-24: Lintouch (HMI) seems to be dead and it's content on lintouch.org is replaced.
Lintouch.org | Softpedia Lintouch page | Lintouch-NG (fork) | ModbusTCP-plugin | Wiki | IRC |
Features
- Show and manipulate bits and strings from various sources.
Disadvantages
- No connection between plugins, ie you can't process a variable coming from a Modbus connection in a Lua script.
Components
Lintouch Editor: The design tool.
Lintouch Runtime: The operator interface.
The Runtime can be started 'standalone' with a project file.
It can also be started with a connection to a running Lintouch Server from a command line:
# lintouch-runtime localhost -n
"localhost" can be replaced by ip or hostname of the machine that's running the server.
"-n" means it will not start in full screen mode.
The default port is 5555.
Lintouch Server: The server distributes the signals to/from one or more runtime screens.
Install in Ubuntu
Install on Ubuntu/Xubuntu 7.10, Gutsy Gibbon
Get libapr0 and install manually: Ubuntu dapper download site
Install Lintouch | Guide |
From terminal, open the text file "sources.list" in Pico editor:
sudo pico /etc/apt/sources.list
Add the following lines to your /etc/apt/sources.list:
deb http://lintouch.org/ubuntu breezy/all/
deb http://lintouch.org/ubuntu breezy/$(ARCH)/
Then execute as superuser (root) the following commands to install complete Lintouch suite:
sudo apt-get update
sudo apt-get install lintouch
Get and install the following files for dependency:
libssl0.9.7 download site
libsnmp5 (>=5.1) download site
Continue instruction:
# sudo apt-get install lsp-exec lsp-modbus lsp-snmp ltl-qwt
Now you will find Lintouch in menu "Systemtools", or in Xubuntu "Engineer".
Connect from Lintouch to ClassicLadder
Communication
Lintouch communicates with ClassicLadder with bits and strings, and the protocol is ModbusTCP. ClassicLadder acts as the Modbus server.
A bit in ClassicLadder, %Bn, can be read and written in Lintouch, where it adresses as bit COn (that's the caracter O, not zero). Observe that the numbering are offset by -1.
Example: %B24 in ClassicLadder connnects to CO23 in Lintouch.
Simple example
Start ClassicLadder with the example program running. This program alters the bit B3 every few seconds. We will use that bit in Lintouch.
Open Lintouch Editor, make a new project.
To acquire the data in Lintouch, right-click on Panel, choose Dialogs -> Connection. Make one connection of type ModbusTcpMaster, and in the configuration window of this connection, define the following data:
Host: IP of machine that are running ClassicLadder. Use "localhost" if on the same computer.
Port: If you are using the original Classicladder (not recompiled) use the value 9502, if you recompile it, then use 502;
Others: Use default;
Right-click on Panel, choose Dialogs -> Variables, make one new variable of type Bit, and in address input CO2 (the letter O) to connect to %B3 in ClassicLadder, press Ok
In editor, click Rectangle Lamp. In layout, click in some place. Double click on the lamp, the window properties will appear, in tab Inputs choose the Connection: ModBus and in Variables choice the bit variable created, press Ok.
Right-click on Panel, choose Project and Save.
Start Lintouch Runtime with the arrow button in the Projekt main window, and you should see that when the B3 bit change value in Classicladder, the color of the lamp change in Lintouch.
Example files
Test project file for Lintouch based on start-up-example in ClassicLadder.
Test 1: Custom program for both ClassicLadder and Lintouch, for I/O-module Advantech ADAM 6051.
Lua
lua.org | luausers.org |
Lintouch.org | Lua plugin | Tutorials for Advanced Users | Showing system date and time with Lua on Lintouch |