Lütze LION microPLC User manual

Installation Instructions
LION
microPLC
LION-MICRO-PLC-CAN-16/8/2/1-LUE
802201
Version 03
09/13/2019

Lütze Transportation GmbH
Bruckwiesenstraße 17-19
D-71384 Weinstadt
Tel.: +49 (0) 7151 6053-545
Fax: +49 (0) 7151 6053-6454
Sales.Transportation@luetze.de
www.luetze-transportation.de

LION microPLC ▪ Content
Content
1 Introduction....................................................................................................... 4
2 General Information.......................................................................................... 5
2.1 Symbol Description...................................................................................................................... 5
2.2 Copyright ..................................................................................................................................... 5
2.3 Disclaim of Liability ...................................................................................................................... 6
3 Installation......................................................................................................... 7
3.1 MULTIPROG 5.5 Express ........................................................................................................... 7
3.2 eCLR and µPLC Add-On ............................................................................................................. 9
4 Configuration .................................................................................................. 13
4.1 Hardware Configuration............................................................................................................. 13
4.2 Ethernet Configuration............................................................................................................... 14
4.3 ProConOS ................................................................................................................................. 15
4.4 File Manager Total Commander ................................................................................................ 16
5 Getting In ......................................................................................................... 18
5.1 PC IP Address ........................................................................................................................... 22
5.2 Function Blocks and Firmware Libraries.................................................................................... 26
5.3 Example..................................................................................................................................... 27
6 Appendix ......................................................................................................... 30
6.1 Driver parameter........................................................................................................................ 30
6.2 Parameter of the serial interface................................................................................................ 33
6.3 Revision of the Document.......................................................................................................... 34

LION microPLC ▪ Introduction
4
1 Introduction
This manual is part of the LION microPLC (Part-No. 802201,
Type LION-MICRO-PLC-CAN-16/8/2/1-LUE). It contains important information
about the installation. Every step, which is necessary to use the microPLC, is
explained in this document.
▪ To avoid hazardous situations, read the manual before installing the product
and using it.This applies to every person who is getting in touch with the
product. Trained employees and experts, especially qualified persons who
have worked with similar products before, have to read and understand the
manual as well.
▪ Store the manual at a handy place. If selling, renting or in case of a divestiture
pass the manual to the authorize person.

LION microPLC ▪ General Information
5
2 General Information
2.1 Symbol Description
2.1.1 Safety Messages
The manual contains safety information, which is characterized by a signal word
in combination with a certain colour to indicate the warning level. The information
highlights possible dangers and gives instructions on how to avoid them.
2.1.2 Handling Notes
You will also find icons that indicate important information and action steps:
2.2 Copyright
This manual is intended for the operator and his staff. It is forbidden to give the
content to a third party, to duplicate, exploit or impart it. The Lütze Transportation
GmbH has to allow it explicit in writing.
General data, text, images and drawings are copyrighted and are liable to the
industrial property right. Contravention can be prosecuting criminally. The named
brands and product names in this document are trademarks or registered
trademarks by titleholder.
Indicates a dangerous situation which leads to death or serious injuries
if not observed.
Indicates a dangerous situation which can lead to death or serious
injuries if not observed.
Indicates a dangerous situation which can lead to slight or moderate
injuries if not observed.
Indicates a situation which could damage the product or the environment.
This information foresees injuries.
Indicates technically important information to operate the device safely.
Indicates the use of tools.

LION microPLC ▪ General Information
6
2.3 Disclaim of Liability
The manual was written under consideration of the applied standards, regulations
and the current state of technology.
The content is verified of accuracy. Discrepancies are not excluded. For those
discrepancies we disclaim liability. Applicable changes and additional information
will be in the next version of the manual.
The Lütze Transportation GmbH does not assume liability for any damages and
accidents of following reasons:
▪ Nonobservance of the manual
▪ Untrained and unqualified employees
▪ Non conventional use
▪ Non approved reconstructions and functional modifications of the product
▪ Using non original or non admitted parts or equipment

LION microPLC ▪ Installation
7
3 Installation
For installing the programming system MULTIPROG 5.5 Express you can follow
the listed steps in this chapter. They will help you to install this system
independently, so you can use the microPLC as soon as possible.
System Requirement
3.1 MULTIPROG 5.5 Express
The MULTIPROG 5.50 Setup is now installed.
MULTIPROG Express MULTIPROG Pro
Processor Min. 1,6 GHz (2 GHz recommended)
RAM Min. 1 GByte (2 GBytes recommended)
Hard Drive Min. 1 GByte (2 GBytes recommended) free memory
Communication TCP/IP
Operating System Windows 7 (32 Bit/64 Bit)
Windows 8/8.1 (32 Bit/64 Bit)
Install MULTIPROG 5.50 Setup
1. Open the link to the programming
system MULTIPROG 5.5 Express
on the website of the Lütze Trans-
portation GmbH. You can find the
link on the site of article 802201, the
microPLC, under the tab Down-
loads. Here you can find the link
once again: https://www.luetze-
transportation.com/catalogue/con-
trol-technology/vehicle-control-unit-
compact-control-unit-0-5/802201-
lion-microplc-0/.
2. There will pop-up a window, with
several data files. Open the setup-
file.
3. There is a need of special libraries
for the programming system MUL-
TIPROG 5.5 Express, which need
to be installed, so that the program
functions correctly. Click Install.

LION microPLC ▪ Installation
8
Install MULTIPROG 5.50 Express Build 10214 Setup
The program MULTIPROG 5.5 Express is now installed.
1. Click the Windows Installer Pack-
age MULTIPROG 5.50 to install the
setup.
2. Click Next to get to the End-User Li-
cense Agreement.
3. Read the End-User License Agree-
ment carefully. If you have accept
the terms in the License Agree-
ment, you can click Next.
4. Choose the file path, in which the
program MULTIPROG 5.5 Express
should be saved. The file path,
which is already listed, can be used.
But you can also choose any other
folder. If you have chosen a file
path, click Next.
5. Click Install to start the installation.
You can also switch back to one of
the previous screens to change en-
tries (Back) or cancel the setup
(Cancel).
6. Click Finish to complete the setup.

LION microPLC ▪ Installation
9
3.2 eCLR and µPLC Add-On
To program the microPLC correctly, you also need two further Add-Ons. These
are the eCLR Add-On and the µPLC Add-On. You can also find them in the folder,
which has been opened under the link at the beginning of the installation. With
this Add-Ons, there are specific adjustments for the microPLC on the
development environment MULTIPROG 5.5 Express.
First you install the eCLR Add-On. The microPLC works with a Phoenix Contact
ProConOS eCLR SPS-Runtime environment and uses the Common Intermediate
Language (CIL) of Microsoft. MULTIPROG 5.5 Express needs an CIL-
Codegenerator, which translates the SPS-project for the eCLR.
It‘s important to install the Add-Ons in the correct sequence.
First you must install the eCLR Add-On and secondly the µPLC Add-On.
Install eCLR Add-On
1. Open the installation package
ARMThumb2_LE_GCC3_eCL-
R_3.0.exe on your computer.
2. Close all other open Windows-pro-
grams before you start with the in-
stallation of the eCLR Add-On. If
you have closed them, click Next.
3. Read the license agreement care-
fully. If you have accept the terms in
the license agreement, you can
click Next.
4. Choose again a file path, where the
Add-On should be installed. Then
click Next.
Use the file path, which you have chosen for the installation of MULTIPROG 5.5
Express. The standard file path is: C:\Program Files (x86)\PHOENIX
CONTACT Software\MULTIPROG 5.50 Build 10214.

LION microPLC ▪ Installation
10
The eCLR Add-On is installed.
After you have installed the eCLR Add-On you can install the µPLC Add-On. With
the installation package of this Add-On there will be provided Ressource-Files for
the microPLC. Further there will be installed an example-project, which helps you
understanding the programming of the microPLC.
5. By installing the eCLR Add-On
there will also be installed the Visual
Studio and Visual C# Express Sup-
port, if they aren’t already installed
on your computer. Tick the box and
click Next.
6. Click Install to start the installation.
To cancel the installation, click Exit.
7. Click Finish to complete the instal-
lation.
8. After a successful installation, re-
start your computer.

LION microPLC ▪ Installation
11
Install µPLC Add-On
1. Start the Setup Setup_uPL-
C_iSOC300P and choose a lan-
guage.
2. Click OK to start the installation pro-
cess.
3. Close all other open applications on
your computer before you start the
installation process. Click Next.
4. Read the license agreement care-
fully. If you have accept the terms in
the license agreement, you can click
Next.
5. It matters, for which installation of
MULTIPROG you want to use the
µPLC Add-On. If you have installed,
for example, MULTIPROG and
MULTIPROG 5.5 Express, you can
use the Add-On for both programs.
So, you can leave the check in both
boxes and click Next.
In any case you must take the file path, which you have already taken for the
other installations of MULTIPROG 5.5 Express. The standard file path is:
C:\Program Files (x86)\PHOENIX CONTACT Software\MULTIPROG 5.50 Build
10214.

LION microPLC ▪ Installation
12
The µPLC Add-On is installed and you can use MULTIPROG 5.5 Express.
6. Choose a file path for the basic pro-
ject. It doesn’t matter, in which path
or folder you save this project. You
can choose any path, for example
the standard file path. Click Next.
7. Click Install to start the installation.
To cancel the installation, click Can-
cel.
8. Click Finish to complete the setup.
If there is a new version of the µPLC Add-On (iSOC300P Setup) available,
you can overwrite the version, which you have already installed on your
computer. You must go through the same steps like in the first installation of the
iSOC300 Setup.

LION microPLC ▪ Configuration
13
4 Configuration
There are three configuration files for the configuration of the microPLC:
TCPIP.hw, TCPIP.cfg and ProConOS.ini. The TCPIP.hw and the ProConOS.ini
file are on the SD card of the microPLC. You can create the other file in any text
editor. Each of them will be explained in one of the following chapters.
4.1 Hardware Configuration
To change the speed of the hardware, you can use the data file TCPIP.hw.
For changing the hardware settings use the following steps:
1. Open the file TCPIP.hw with any text editor.
2. Change the settings as necessary.
Save the data file.
The file names are fixed and must not be changed!
Do not change the MAC-address of the device!
If the parameters of the configuration file are set incorrectly or
incompletely, the system can no longer be addressed via TCP/IP.

LION microPLC ▪ Configuration
14
4.2 ProConOS
For the configuration of the microPLC you have the configuration file
ProConOS.ini. It’s a file, with which you can adjust different parameters, for
example the interface CAN2.0 or the serial interface.
In the file ProConOS.ini there is an entry for the CAN2.0 interface. The name of
the section is set at CAN20. For this interface (CAN2.0) you can only set the baud
rate. The default value of the CAN2.0 baud rate is 125000. Possible other values
are 10, 20, 50, 100, 125, 250, 500, 800 or 1000 kBaud. If you take the value 0,
there is no CAN 2.0 interface.
For example: CAN2.0 interface with 125 kBaud
For the serial interface you can set more values in the configuration file
ProConOS.ini. There are the following parameters:
Use is the driver name. In this value you can choose between DataIO or
COMClient. Baud rate is the bit time for the transfer. You can choose a value
between 200 and 38400. The default value is 19200.
The parameter Bits is the number of data bits per sign with the default value 8.
Possible other values are 5, 6 or 7. Stop is the number of stop bits per sign. It
has the default value 1, but you can change it to 2. Another parameter is Parity.
There you can choose between three different values: odd (o), even (e) or none
(n). The default value for this parameter is even (e).
MDT is the message delay time. This means the maximum time between the last
send sign and the first received sign. The default value is 500 ms, but you can
switch it between 1 and 2000 ms. Also, at the last parameter CDT. It’s the
character delay time, which determines the maximum delay between the
individual characters of the telegram. The default value is set at 100 ms.
For ease of reference you will find a table in the appendix, with all important
data.
These parameters (except for the parameter Use) are only necessary, if they
should deviate from the default values.
[[CAN20]
Baudrate=125000
Please note that baud rate must be written without blank in the file
ProConOS.ini.

LION microPLC ▪ Configuration
15
You can create the configuration file ProConOS.ini by using any text editor. The
adjustments of the individual configurations can be found in the respective
chapter.
4.3 Ethernet Configuration
The network settings will be set up through the configuration file TCPIP.cfg.
You can set values for the following parameters:
Create the configuration file TCPIP.cfg by using any text editor.
The operating system differentiates at ProConOS.ini between upper case
and lower case.
If there is no configuration file ProConOS.ini or TCPIP.cfg existing, the
default settings will be adopted.
The default IP address of the microPLC is 192.168.0.220.
The name of the microPLC will be analysed only up to the first blank.
Blanks within the name should be inserted as _ (underscore).
If the parameters of the configuration file are set incorrectly or
incompletely, the system can no longer be addressed via TCP/IP.

LION microPLC ▪ Configuration
16
4.4 File Manager Total Commander
For transmitting the data files on the SD card of the microPLC or moving files from
the SD card to the computer, you must use the file manager Total Commander.
It‘s a free shareware program.
Transmitting data files with Total Commander
1. Connect the microPLC with an
ethernet cable to your computer.
2. Open the Total Commander.
A new window opens, where you can
see all data files.
3. Connect the microPLC with the file
manager via FTP Client.
You can only use the FTP Client to drag data files between your computer
and the microPLC.
If you have clicked on FTP, it will pop
up a new window.
4. In the field Title you can choose an
optional name. For Serverna-
me[:Port] you must take
192.168.0.220:21. The user name
is user and the password iSOC300.
5. Click Ok when you filled in the
fields.
6. Click Connect to establish a
connection to the microPLC.

LION microPLC ▪ Configuration
17
If you have the configuration files on your computer, you can switch them via drag
and drop to the microPLC. You can also create files in the application with
required information, which are visible using the FTP Client. The files can be
copied, changed or you can drop them on your computer. The changes are only
applied after a restart.
You can see all configuration files,
which are on the SD card.

LION microPLC ▪ Getting In
18
5 Getting In
In this chapter we help you to get along with the programming system
MULTIPROG 5.5 Express.
You can use the basic project, which you have already installed with the Add-Ons.
In this project you have an example how to control the Inputs and Outputs of the
microPLC. Furthermore, you can see, how the program code is constructed.
Starting MULTIPROG 5.5 Express
1. Supply the microPLC with voltage
(DC 24 V).
2. Connect the microPLC with the
Ethernet-Programming-Cable to
your computer.
3. Connect the digital Inputs and Out-
puts with the power supply. There-
fore it is sufficient to connect one of
the digital Inputs and one of the di-
gital Outputs with the power supply.
4. Open the program MULTIPROG
5.5 Express.
5. Click Open project / Unzip project
and open the basic project.
You can find the basic project under the file path
C:\Users\”Username”\Documents\ISH. It is the data file
uPLC_ExampleProject_V01.
6. Click Yes to unzip and open the ba-
sic project.
The basic project will open in
MULTIPROG 5.5 Express.
With a new version of the µPLC Add-On (iSOC300P Setup), you get new
libraries as well as a new basic project. For using the new basic project,
you must unzip and open it again in your Multiprog system.

LION microPLC ▪ Getting In
19
The Resource specifies, which type of processor will be deployed on the
hardware. Depending on the type of processor the program will be compiled
accordingly, so that the CPU can read and process the program. A Task gives the
course of time for controlling the performance of different application parts. A
Task has to be assigned to a Resource. In a Task, you have programs with
function blocks. The program-organization-unit includes, what happens if an Input
will get controlled. A function block is a subprogram which disposes statistic data.
The programs must be assigned to a Task. The basic project includes a Main
program in which all Tasks of this project will processed. Global variables are
visible in every program-organization-unit of the invested project. There you can
also find the whole analog and digital I/Os of the microPLC.
The components iSOC300MonitorDigital and iSOC300MonitorAnalog serve for
the presentation of information and controlling of the control.
iSOC300MonitorAnalog is a function block, which shows the current status of the
system and the SPS.
The function block iSOC300MonitorDigital is the most important connection to
the system. It monitors the function of the SPS and the supply voltage.
There is an external watchdog-block on the board for the monitoring of the SPS.
This block must be operated periodically, otherwise there will be triggered a
restart of the whole SPS after approx. one second during the ongoing project.
The block iSOC300MonitorDigital needs to be included in every project. You can
call it up with max. 1 second task-cycle-time, because it controls the watchdog.
Without this component, the microPLC restarts cyclical.
On the left side, under the tab
Hardware, you can see the structure of
the task of the basic project.
Outputs Description Data type
RunTime Runtime of the Control in ms UIDINT
BootCount Number of restarts after voltage
recovery
UIDINT
Core Reported supply voltage of the
controller
REAL
Temperature Temperature of the system reported
with the external sensor on the
control
REAL

LION microPLC ▪ Getting In
20
In the following illustration you can see the digital Outputs and a counter with a
task-cycle-time of 100 ms. The task-cycle-time is the time for the process of a
cycle including all communication tasks. It will be monitored from the watchdog.
So, if the task-cycle-time exceeds an adjusted task-cycle-monitoring-time, the
CPU switches to Stop. If you have various tasks, you must prioritize them for the
processing. The counter will be switched to the digital Outputs, which change with
the task-cycle.
With the left function, an input value of data type INT is converted into an Output
value BYTE. In this way the digital Outputs get driven. With the point after the
word Output as well as the letter X and the number, it’s possible to access the
individual Bits of the Byte-variable Output. The number corresponds to the Bit in
the Byte-variable. But only if the variable EN in the right function is set on TRUE,
the counter can start.
Inputs Description Data type
L0 Control Operator LED1 BOOL
L1 Control Operator LED2 BOOL
L2 Control Operator LED3 BOOL
L3 Control Operator LED4 BOOL
Reset Restart of the system by a rising
edge
BOOL
Outputs Description Data type
Core Operating voltage 3,3 V within the
limits
BOOL
ResetRequest The system will reboot BOOL
UserPushButton Operation of the user button BOOL
Other manuals for LION microPLC
2
This manual suits for next models
1
Table of contents
Other Lütze Controllers manuals