This documentation describes the first commissioning steps of a Lenze automation system
on the basis of a simple example application. The automation system used consists of a PLC
for the control technology and drive components connected (via a bus system).
The explanation of the procedure includes the installation of the integrated development
environment, the »PLC Designer«, and the diagnostics of the application.
Read the mounting instructions supplied with the controller first before you start
working!
The mounting instructions contain safety instructions which must be observed!
Note!
This documentation supplements the software manuals of the »PLC Designer«
and »Engineer«.
Tip!
Information and tools regarding the Lenze products can be found in the download
area under: http://www.Lenze.com
This manual is part of the "PC-based Automation" manual collection. The manual
collection consists of the following parts:
DocumentationSubject
System manuals
"PC-based Automation"
Communication manuals
"PC-based Automation"
(Software) manual
"PC-based Automation"
Operating instructions
"Embedded Line Panel PC"
Operating instructions
"Command Station"
Operating instructions
"Control Cabinet PC"
Operating instructions
"HMI EL 100"
More software manuals • »Global Drive Control« (»GDC«)
• Control technology - System structure & configuration
• Visualisation - System structure & components
• CANopen control technology
• PROFIBUS control technology
• Industrial PC - Parameter setting & configuration
• EL x8xx - built-in panel PC with TFT display
• CS x8xx - stand-alone operator terminal
• CPC x8xx - control cabinet PC
• EL 1xx - HMI with Windows
–IPC as gateway - Parameter setting & configuration
Information on the use of the IPCs beyond the control technology can be found in
the system manuals tailored to the application case.
1.3 EN - 07/2012L14
Page 15
PLC Designer V2.x| Lenze Application Samples
About this documentation
Further technical documentation on Lenze components
More information on Lenze components that can be used together with "PC-based
automation" can be found in the following documentation:
Mounting & wiringLegend:
MAs for Inverter Drives 8400 Printed documentation
MAs for Servo Drives 9400 Online help/PDF
MA EPM-Txxx (I/O system IP20)Abbreviations used:
MA EPM-Sxxx (I/O system 1000)SHB System manual
MA 8200 vectorBA Operating instructions
8200 vector wiring according to EMCMA Mounting instructions
MAs for the ECS servo systemSW Software manual
MA MC-CAN2 communication cardKHB Communication manual
MA MC-ETC communication card
MA MC-ETH communication card
MA MC-PBM communication card
MA MC-PBS communication card
MA MC-MPI communication card
MAs for communication modules
Parameterisation, configuration, commissioning
SW Inverter Drives 8400
BaseLine / StateLine / HighLine / TopLine
SW Servo Drive 9400 HighLine / PLCÍ This documentation contains further
9400 HighLine commissioning guidelines
SHB I/O system IP20 (EPM-Txxx)
SHB I/O system 1000 (EPM-Sxxx)
SHB 8200 vectorÍ This documentation contains further
BAs for the ECS servo systemÍ This documentation contains further
KHBs for the communication modules
Programming
SW 9400 function library
Establishing a network
KHBs for the communication modules
Í This documentation contains further
information when using the sample projects
information when using the sample projects
information when using the sample projects
information when using the sample projects
Target group
The documentation addresses to persons who plan, install, commission, and maintain the
networking of devices in the field of control technology.
15L1.3 EN - 07/2012
Page 16
PLC Designer V2.x| Lenze Application Samples
About this documentation
Information regarding the validity
The information provided in this documentation applies to the AppSamples_100 with the
following Lenze software:
SoftwareFrom software version
»PLC Designer«2.3.x
»Engineer«2.12
»Global Drive Control«4.11
1.3 EN - 07/2012L16
Page 17
1.1Document history
VersionDescription
1.111/2010TD11 First edition
1.203/2011TD11 Further sample projects supplemented:
1.306/2012TD11 Amended by general notes on the use of FBs.
1.2Trademark
Microsoft, Windows, and Windows NT are either registered trademarks or trademarks of
the Microsoft Corporation in the USA and/or other countries.
PLC Designer V2.x| Lenze Application Samples
About this documentation
Document history
• 8200 vector
• 9300 Speed
• 9300 EP
• Multiproject ECS/ 8400 StateLine/9400 HighLine
Adobe and Reader are either registered trademarks or trademarks of Adobe Systems
Incorporated in the USA and/or other countries.
All other brand names mentioned in this documentation are trademarks of their respective
owners.
1.3 EN - 07/2012L17
Page 18
PLC Designer V2.x| Lenze Application Samples
About this documentation
Conventions used
1.3Conventions used
This documentation uses the following conventions to distinguish between different types
of information:
Type of informationDisplayExamples/notes
Numbers
Decimal separatorPointThe decimal point is generally used.
Text
Version informationText colour blueAll pieces of information that only apply to or from a
Program name» «The Lenze PC software »PLC Designer«
WindowItalicsThe Message window... / The Options ... dialog box
Variable nameBy setting bEnable to TRUE...
Control elementBoldThe OK... button / The Copy... command / The
Sequence of menu
commands
Shortcut<Bold>Use <F1> to open the online help.
Program codeCourier
KeywordCourier bold
Example: 1234.56
certain controller software version are identified
accordingly in this documentation.
Example: This function extension is available as from
software version V3.0!
Properties... tab / The Name ... input field
If the execution of a function requires several
commands in a row, the individual commands are
separated by an arrow: Select File
If a key combination is required for a command, a "+"
is placed between the key identifiers: With
<Shift>+<ESC>...
IF var1 < var2 THEN
a = a + 1
END IF
Open to...
HyperlinkUnderlined
Symbols
Page reference ( 18)Optically highlighted reference to another page. It is
Step-by-step instructions
Optically highlighted reference to another topic. It is
activated with a mouse-click in this documentation.
activated with a mouse-click in this documentation.
Step-by-step instructions are marked by a
pictograph.
18L1.3 EN - 07/2012
Page 19
1.4Notes used
The following signal words and icons are used in this documentation to indicate dangers
and important information:
Safety instructions
Structure of safety instructions:
Pictograph and signal word!
(characterises the type and severity of danger)
Note
(explains the danger and how to avoid it)
PictographSignal wordMeaning
PLC Designer V2.x| Lenze Application Samples
About this documentation
Notes used
Danger!Danger of personal injuries through dangerous electrical voltage
Reference to an imminent danger that may result in death or serious
personal
injury unless the corresponding measures are taken.
Danger!Danger of personal injury through a general source of danger
Reference to an imminent danger that may result in death or serious
personal
injury unless the corresponding measures are taken.
Stop!Danger of damage to material assets
Indicates a potential danger that may lead to material damage unless the
corresponding measures are taken.
Application notes
PictographSignal wordMeaning
Note!Important note for trouble-free operation
Tip!Useful tip for easy handling
Reference to other documents
1.3 EN - 07/2012L19
Page 20
PLC Designer V2.x| Lenze Application Samples
Safety instructions
2Safety instructions
Please observe the following safety instructions when you want to commission a controller
or system using the »Engineer«.
Read the documentation supplied with the controller or the individual
components of the system carefully before you start to commission the devices
with the »Engineer«!
The device documentation contains safety instructions which must be
observed!
Danger!
According to our present level of knowledge it is not possible to ensure the
absolute freedom from errors of a software.
If necessary, systems with built-in controllers must be provided with additional
monitoring and protective equipment according to relevant safety regulations
(e.g. law on technical equipment, regulations for the prevention of accidents), so
that an impermissible operating status does not endanger persons or facilities.
During commissioning persons must keep a safe distance from the motor or the
machine parts driven by the motor. Otherwise there would be a risk of injury by
the moving machine parts.
Stop!
If you change parameters in the »Engineer« during an online connection to the
device is established, the changes are directly accepted in the device!
A wrong parameter setting can cause unpredictable motor movements. By
unintentional direction of rotation, too high speed or jerky operation, the driven
machine parts may be damaged!
20L1.3 EN - 07/2012
Page 21
PLC Designer V2.x| Lenze Application Samples
3The "PC-based automation" system
Industrial PCs (IPCs) become more and more important in the field of automation
technology. Due to their scaling options and various combinations of visualisation and
control on one device, Industrial PCs provide clear advantages for many applications.
Lenze Industrial PCs are available in the following software equipments:
Industrial PC as component (optional with operating system) without any further
software
Industrial PC as visualisation system
Industrial PC as control and visualisation system
The "PC-based automation" system enables the centralised control of Logic and Motion
systems.
The "PC-based automation" system
For this purpose, Lenze provide coordinated system components:
Industrial PCs as control and visualisation system
– The IPC is the central component of the PC-based automation which controls the
Logic and Motion functionalities by means of the runtime software.
– The IPC communicates with the field devices via the fieldbus.
– The IPCs are available in different designs.
Note!
The "PC-based automation" system furthermore contains the EL 1xx PLC HMI
series. These devices clearly differ from the Industrial PCs with regard to the
performance and various other details. Nevertheless the devices of the
EL 1xx PLC HMI series are able to perform smaller control functions.
1.3 EN - 07/2012L21
Page 22
PLC Designer V2.x| Lenze Application Samples
The "PC-based automation" system
Engineering tools for the Engineering PC
– The Engineering PC communicates with the IPC via Ethernet.
– Use the various Engineering tools to configure and parameterise the system.
Fieldbuses
Field devices
22L1.3 EN - 07/2012
Page 23
4Requirements
4.1System requirements
PLC Designer V2.x| Lenze Application Samples
Requirements
System requirements
HardwarePC/notebookIndustrial PC with PLC (Logic) from
Further requirements • 100 MB of free hard disk memory • CAN bus system
4.2What is the PLC Designer?
The »PLC Designer« is a Lenze engineering software for programming the PLC of the Lenze
Industrial PC.
Properties
Five different editors for the programming languages standardised in the IEC 61131-3,
and a very powerful CFC editor are provided. They serve to create individual programs,
and to trigger the functions of our L-force Logic & Motion runtime software.
By means of the integrated visualisation the processes are shown, in order to obtain all
important pieces of information at a glance during commissioning.
Engineering PCIPC (controller)
firmware V2.0
• CAN nodes (depending on the
respective example application)
1.3 EN - 07/2012L23
Page 24
PLC Designer V2.x| Lenze Application Samples
Requirements
Where can I receive a full version of the PLC Designer?
4.3Where can I receive a full version of the PLC Designer?
The »PLC Designer« is provided for download in the Lenze Application Knowledge Base
(AKB) :
The AKB is a product- and application-oriented collection of information provided by Lenze.
Alternatively you can install the »PLC Designer« from the CD supplied with the
Industrial PC.
4.3.1Installation
How to install the »PLC Designer«:
1. Select »PLC Designer« to save the full version as a packed ZIP file on your PC
(Engineering PC).
• Unpack the ZIP file PlcDesigner_V2.3.x.zip on your PC (file size approximately
45MB).
• The ZIP file contains an installation file.
or
Start the PLCDesigner_V2.3..x.exe installation file from the CD supplied with the
Industrial PC.
2. Start the EXE file and follow the installation instructions
3. After the installation the »PLC Designer« can be started.
Further information and basics regarding the »PLC Designer« can be found in the
following documentation:
PLC Designer software manual
The manual is available on the CD supplied or on the Internet.
If the »PLC Designer« is already installed, carry out an update of the version available or
install the full version parallel to the version available.
Installing the target systems
Furthermore the »PLC Designer« target setup has to be installed, containing the
information required for controlling the target systems.
For the installation, proceed like for the installation of the »PLC Designer«.
24L1.3 EN - 07/2012
Page 25
PLC Designer V2.x| Lenze Application Samples
5System bus (CAN) / CANopen
Lenze device series 8400, 9400, 9300, and ECS have an on-board system bus (CAN)
connection. The protocol used there is a subset of CANopen. Thus the devices are not
CANopen-compliant but can be driven by a CANopen-compatible control system under "Lforce Controls" - also in connection with other CANopen-compatible nodes.
Tip!
Detailed information on the system bus (CAN) can be found on the website of the
CAN User Organization CiA (CAN in Automation):
System bus (CAN) / CANopen
CANopen (Logic)
http://www.can-cia.org
5.1CANopen (Logic)
A variety of different field devices can be connected to the CAN Logic line.
To create a CANopen bus line, use the Communication card MC-CAN2
CANopen (Logic)
The Logic bus line is used to operate controllers which...
carry out simple movements,
do not have a Motion functionality,
are controlled via PLC functionalities only.
The Lenze sample projects are available for the most common system configurations in
each case with selected field devices.
1.3 EN - 07/2012L25
( 26).
Page 26
PLC Designer V2.x| Lenze Application Samples
System bus (CAN) / CANopen
Communication card MC-CAN2
5.2Communication card MC-CAN2
The MC-CAN2 communication card serves to connect an L-force Controller to the CAN bus
system CAN. The card provides two independent bus lines.
A Front panel
B Board
C Coding
D Connection
ECAN connection (CAN 2 /CAN 1)
MC-CAN2-001
26L1.3 EN - 07/2012
Page 27
PLC Designer V2.x| Lenze Application Samples
6Commissioning the CANopen Logic bus
This chapter provides information on commissioning the CANopen Logic field devices in
the Lenze control system.
Depending on the field devices used, the following Lenze engineering tools are required:
»PLC Designer«
»Engineer«
»Global Drive Control« (GDC)
Tip!
For the application of further fieldbus systems, further Engineering software may
be required. Further information can be found in the corresponding
communication manuals.
Commissioning the CANopen Logic bus
Overview of the commissioning steps
6.1Overview of the commissioning steps
StepActionLenze software to be used
1.Open sample project
Commissioning field devices
Going online
Preparing the restart
2. Open sample project»PLC Designer«
In the following the individual commissioning steps are described. Follow the given stepby-step instructions to commission your system.
( 29)
( 28)
( 30)
More detailed information about how to work with the Lenze engineering tools
can be found in the corresponding manuals and online helps.
»Engineer« or
»Global Drive Control«
(depending on the used
device)
1.3 EN - 07/2012L27
Page 28
PLC Designer V2.x| Lenze Application Samples
Commissioning the CANopen Logic bus
Commissioning field devices
6.2Commissioning field devices
Parameterise the field devices connected to the CANopen Logic bus either with the
»Engineer« or with the »GDC«, depending on the device.
The configuration of the CAN parameters takes place in the »PLC Designer«.
For this, observe the information in the ...
• documentation for the field devices;
• documentation for the »Engineer« / »GDC«, and »PLC Designer«.
Tip!
We recommend to commission each field device individually and then open the
suitable PLC program.
28L1.3 EN - 07/2012
Page 29
6.2.1Going online
Field deviceGoing online withConnection via
Industrial PC»Engineer« or
Inverter Drive 8400 StateLine /
HighLine
9400 Servo Drive HighLine»Engineer« • IPC as gateway
ECS servo system (ECSxE/S/P/M/A)»Global Drive Control« • IPC as gateway
8200 vector»Global Drive Control« • IPC as gateway
9300»Global Drive Control« • IPC as gateway
1) CANopen only with system bus adapter EMF2177IB (if required, observe standard device specifications!)
PLC Designer V2.x| Lenze Application Samples
Commissioning the CANopen Logic bus
Commissioning field devices
Ethernet
»WebConfig«
»Engineer« • IPC as gateway
• CAN device interface
• Diagnostic adapter
• Ethernet module E94AYCEN
• CANopen module E94AYCCA
• CAN device interface
• CANopen module EMF2178IB
• CAN device interface 1)
• CAN module CAN PT/
E82ZAFCC010
• CAN device interface 1)
• CAN device interface 1)
Note!
Lenze recommend to use the connection type "IPC as gateway".
Depending on the device and connection type used, detailed information about
establishing a connection and "going online" can be found in the following
documents:
• (Software) manual/online help "PC-based automation"
Industrial PC - Parameter setting & Configuration
• Software manual/online help "PC based automation"
IPC as gateway - Parameter setting & Configuration
• Software manual/online help »Global Drive Control«
IPC as gateway - Parameter setting & Configuration
• Software manual/online help L-force »Engineer«
1.3 EN - 07/2012L29
Page 30
PLC Designer V2.x| Lenze Application Samples
Commissioning the CANopen Logic bus
Preparing the restart
6.3Preparing the restart
In the control technology system you can use the control to transmit the entire parameter
setting via SDO initialisation to the field devices when the machine is switched on.
In accordance with DS301, the control always initialises the CAN parameters of the field
devices. Moreover, it can initialise further parameters. The values for this must be stored in
the control configuration under the Service Data Objects tab.
Usually, the control only transmits those SDO projects for which you have stored another
value than the standard value. The control does not
values in the field device. Thus, not all parameters changed there may be set correctly.
If you want to have a factory adjustment carried out in the field device before SDO
initialisation, go to the Parameter tab and set a checkmark at "Reset Node".
Note!
When a node is reset, the parameter setting in the field device which you have
made with the »Engineer« or the »Global Drive Control« gets lost. In this case,
you have to transmit all parameter values manually to the Service Data Objects
tab. This only makes sense when commissioning is completed and all
parameters are optimised. If you change something afterwards via the
»Engineer« or the »Global Drive Control« you have to maintain it again in the PLC
program.
compare these values with the existing
The Service Data Objects tab contains the codes which are written in the EDS file. The EDS
file contains all writable codes.
30L1.3 EN - 07/2012
Page 31
PLC Designer V2.x| Lenze Application Samples
6.3.1Special features of the 9400 Servo Drives HighLine
Servo Drives 9400 are not purely parameterisable devices. They require an application
download, where several files are transmitted to the memory module.
To put a Servo Drive 9400 into operation, you can:
plug on the memory module.
transmit the application using the »Engineer«. For this, you must keep the original
»Engineer« project.
transmit the application using the L-force »Loader«. For this, you must export and keep
the required files from the »Engineer« project:
Commissioning the CANopen Logic bus
Preparing the restart
1.3 EN - 07/2012L31
Page 32
PLC Designer V2.x| Lenze Application Samples
Commissioning the CANopen Logic bus
Preparing the restart
6.3.2Special features of the 8400 Inverter Drives
Inverter Drives 8400 are purely parameterisable devices.
To put an Inverter Drive 8400 into operation, you can transmit the application using the
»Engineer«. For this, you must keep the original »Engineer« project.
6.3.3Commission 8200 vector frequency inverters
Connect the CANopen (E82ZAFUCxxx) fieldbus function module for CAN
communication.
CAN settings must be made in the »PLC Designer« because the transmission of the
settings to the 8200 vector frequency inverter is carried out from the control system.
6.3.4Special features of the ECS servo system
In the ECS servo system, each device has a parameter memory which is only created
once when the parameter setting is created via the »Global Drive Control«. This is the
difference to CANopen devices where the parameterisation is written into the field
device at each system start.
The EMF2221IB card module serves to read parameters saved on an SD card or
SmartMedia card into every ECS device.
When using ECS devices, you cannot set all codes/parameters via the Service Data
Objects tab as the EDS files do not contain all codes/parameters.
32L1.3 EN - 07/2012
Page 33
PLC Designer V2.x| Lenze Application Samples
7Commissioning a sample project
This chapter describes the commissioning of a sample project by means of examples. The
following requirements have to be met, so that the respective sample project can be used.
7.1General system structure
The Lenze project examples are based on the following system structure.
An Industrial PC (Logic) or an EL1xx (Logic) is the central control section of the system
configuration.
Commissioning a sample project
General system structure
[7-1]System structure with an Industrial PC (Logic)
[7-2]System structure with an EL1xx (Logic)
1.3 EN - 07/2012L33
Page 34
PLC Designer V2.x| Lenze Application Samples
Commissioning a sample project
Wiring the hardware
7.2Wiring the hardware
Before you can work with the project, the hardware has to be connected to each other. The
sample projects are configured so that the motors rotate if a controller is used as CAN
node.
Connect the desired IPC (Industrial PC to PLC, or an EL1xx to a PLC) with the CAN nodes.
Connect the devices (Industrial PC, controllers, motors) with the corresponding voltage
supply
Further information on the electrical connections can be found in the
documentation supplied. Please read the mounting instructions supplied with
the controller first before you start working!
The mounting instructions contain safety instructions which must be observed!
Connect the components with a CAN bus cable.
– For this, use the CAN1 interface in the case of the Industrial PC. The CAN2 interface
is not required for the sample project.
– In the case of the EL100 there only is one CAN interface to be connected with the
components.
34L1.3 EN - 07/2012
Page 35
7.2.1Configuring the CAN interface
For the configuration of the CAN interface the different hardware
(Industrial PC and EL1xx) is to be observed.
Industrial PC
In the case of the Industrial PC you configure the CAN bus using the »PLC Designer«.
EL1xx
In the case of the EL1xx, the device, and additionally the CAN bus must be configured
in the »PLC Designer«.
How to proceed in the case of the EL1xx:
1. On the EL 1xx, click StartSettingsControl PanelFieldbus
2. Configure the CAN interface in the following dialog window:
PLC Designer V2.x| Lenze Application Samples
Commissioning a sample project
Wiring the hardware
EL 1xx CAN device node: node address
of the EL 1xx within a CAN network.
Baud rate: transmission speed of the
fieldbus. The baud rate must be
identical for each fieldbus node within
a network.
According to the baud rate, the
fieldbus parameters are set.
3. Click the Save button to save the settings.
Since the »PLC Designer« accesses the Industrial PC or the EL1xx via Ethernet, connect the
Industrial PC or the EL1xx device to your Engineering PC via a network cable.
Note!
• During initial commissioning, observe the following predefined IP addresses:
• The network setting for the EL1xx is set to DHCP and has to be set to a fixed
IP address first, so that communication is possible.
1.3 EN - 07/2012L35
Page 36
PLC Designer V2.x| Lenze Application Samples
Commissioning a sample project
Wiring the hardware
7.2.2Configuring an EL1xx Ethernet interface
How to configure the EL1xxx:
1. Click StartSettingsNetwork and Dial-up Connections for the EL 1xx.
2. Click the Dm9CE1 connection and configure the network interface:
3. Click the button to save the settings.
Note!
Changes carried out are not written into the registry automatically; in the case
of a restart, they are lost.
In order to save changes permanently...
•Click Start Settings Control PanelRegistry on the EL1xxx.
• Click the Save button to save the settings.
Further information can be found in the following documentation:
• EL 1xx - HMI with Windows® CE
• Industrial PC - Parameter setting & configuration
36L1.3 EN - 07/2012
Page 37
PLC Designer V2.x| Lenze Application Samples
7.3Opening a project in the »PLC Designer«
The project contains all objects of a control program.
A project is saved in a file. The file name complies with the project name.
In the case of a standard installation you start the »PLC Designer« at the Engineering PC
via:
StartLenzePLC Designer V2.3.xPLC Designer
After starting the »PLC Designer«, a project can be loaded under FileOpen.
Commissioning a sample project
Opening a project in the »PLC Designer«
• Project files can be identified by the ending *.pro.
• Select the *.pro file type from the selection list to display the project files
available.
1.3 EN - 07/2012L37
Page 38
PLC Designer V2.x| Lenze Application Samples
Commissioning a sample project
Opening a project in the »PLC Designer«
7.3.1Establishing communication with the Industrial PC or EL1xx
In the sample project communication between the devices of the system configuration has
already been established. It is reasonable to check communication before the project is
transferred to a PLC device.
How to check communication:
1. Open the Online menu in the menu bar and select the Communication parameters
menu item there.
2. In the "Communication parameters" dialog window the corresponding parameters
can be edited:
• In the Channels field, the name of the respective channel can be viewed.
Highlight the desired channel to display the associated data in the dialog area
on the right.
7.3.2Starting the sample project
Transfer the sample project to the PLC device first to then start it.
How to start the sample project:
1. Open the Online menu in the menu bar and select the Log in menu item there.
• Confirm the following query on whether the program is to be saved with Yes.
• The project is transferred to the device.
2. Start the program on the HMI.
•Open the Online menu in the menu bar and select the Start menu item there.
The project will start on the HMI.
38L1.3 EN - 07/2012
Page 39
PLC Designer V2.x| Lenze Application Samples
Tip!
If the project is to be loaded automatically after a restart of the device, you can
install it as "Boot project".
How to install the project as boot project:
1. Open the Online menu in the menu bar
2. Select the Create boot project command.
• A dialog window is opened, displaying the files created.
3. Click OK to close the dialog window.
Commissioning a sample project
Opening a project in the »PLC Designer«
1.3 EN - 07/2012L39
Page 40
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8Working with the sample projects
The ready-configured sample projects are to facilitate the work with the Lenze
components for you. They include established system configurations representing typical
application cases. The objective is to obtain an executable Lenze automation system by
using low effort.
Depending on the application case, the sample projects can be optionally extended, and
thus they have to be adapted to the requirements in each case.
Where do I find the sample projects?
After a successful installation of the Lenze sample projects they can be found under:
ProgramsLenzeAppSamplesAppSamples_0100
Tip!
The»Engineer«sample projects are archived in ZIP format to allow you to send
them for instance by e-mail.
The »Engineer« supports project saving (FileSave archive) and project opening
(FileOpen archive) in ZIP format.
Structure of the sample projects
Each sample project consists of:
– Ready-configured project data in the »Engineer« or »Global Drive Control«(»GDC«)
(depending on the device used)
– Program code and visualisation in the »PLC Designer«. The following modes are
AutomaticIn the automatic mode a sequence runs over an infinite loop.
ManualIn manual mode, the controller can be actuated by setting the individual
ServiceThe service mode serves to adjust the controller.
Homing (available depending on the
device)
control bits manually (Jog1, Jog2, QSP, ErrorReset...). Like this, the controller
can be actuated in manual mode, for instance for cleaning or changing the
tools.
Further information on the function libraries used in this project can be found in
the following section:
The L_S84_Drive8400.lib library
Standard procedure
How to commission the controller:
1. Commission 8400 Stateline. Commissioning
2. Load the project "LAS_40_INTF_Can_84SL_Speed.zip" to the controller using the Lforce »Engineer«. Open the »Engineer« project & go online
3. Open the "LAS_40_INTF_Can_84SL_Speed.pro" sample project in the »PLC
Designer«. Program structure in the »PLC Designer«
4. Load the project to the IPC/EL 1xx and go online.
8.1.1Components used
( 235)
( 42)
( 43)
( 45)
[8-1]System configuration with EL x800 CAN master (ID=0, connection at CAN1) and 8400 StateLine (CAN node ID=5)
Industrial PCField device
HardwareEL x8008400 StateLine
Operating systemIPC software from version Logic
7.02.x (release 2.2.x)
Lenze software required»PLC Designer« from version 20.3
L-force »Engineer« from version 2.12
Further requirements • CAN master ID = 0
• Connection to interface CAN 1
• Logic CAN 500kB
1.3 EN - 07/2012L41
From firmware V5.1
• CAN node ID = 5
• Motor: SDSGAI056-22
Page 42
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8400 StateLine - "LAS_40_INTF_Can_84SL_Speed" sample project
8.1.2Short overview of the functions
ModeDescription
AutomaticIn the automatic mode a sequence runs over an infinite loop.
Selection:
•Travel for three seconds at speed1,
•then for five seconds at speed2,
• Start with speed1 again.
ManualIn manual mode, the controller can be actuated by setting the individual
ServiceThe service mode serves to adjust the controller.
8.1.2.1Commissioning
control bits manually (Jog1, Jog2, QSP, ErrorReset...). Like this, the controller
can be actuated in manual mode, for instance for cleaning or changing the
tools.
Selection:
• Travel in positive direction for one second,
•Stop for one second,
• Travel in negative direction for one second.
Read the mounting instructions supplied with the controller first before you start
working!
The mounting instructions contain safety instructions which must be observed!
1. Wire the power connections
– Use the mounting instructions supplied with the controller to correctly use the
power connections according to the requirements of your device.
2. Wire the control terminals
3. Connect USB diagnostic adapter.
4. Switch on the voltage supply of the controller.
– Connect mains voltage.
When the green LED "DRV-RDY" is blinking and the red LED "DRV-ERR" is off, the controller
is ready to start and you can continue with the commissioning.
Select mode Stop button Actual speedError message
Start button Status Status
Button selects the automatic mode.
Button starts the motion profile.
Button inhibits the motion profile.
Display field shows the mode status.
Display field shows the current speed (Speed Value variable).
Dialog box shows the status of the machine.
Control field activates the error group signal.
–The Error Reset button resets the error message.
1.3 EN - 07/2012L49
Page 50
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8400 StateLine - "LAS_40_INTF_Can_84SL_Speed" sample project
8.1.4.3Manual mode ("Manual jog")
The 8400 StateLine can be controlled by means of the visualisation of block
L_S84ActuatorSpeedSL in manual operation. Via the visualisation of block
L_S84ReadErrorCode the current error can be read out.
Select mode Reading out an
Control/status panel
Button selects the manual (manual jog) mode.
In the control and status panel the FB for controlling the 8400 Stateline is visualised.
Note: Enable the controller via FB input xEnable to activate the manual mode
Afterwards the controller can be operated via the visualisation in manual operation.
The xQsp button must be activated to activate quick stop.
Further information on the FB can be found in the following section:
L_S84_ActuatorSpeedSL - actuation of the 8400 StateLine controller
Area visualises the FB for reading out the errors from the controller.
Further information on the FB can be found in the following section:
Actuation of the controllerStatus of the controller
CAN address
Number of the CAN master
Switch on drive after mains switching
Enable drive
Activate quick stop
Activate fixed speed (Jog 1)
Activate fixed speed (Jog 2)
Set external error
Reset error
Set clockwise (CW) rotation/counter-clockwise
(CCW) rotation
Select speed setpoint in [%]
CAN communication OK
Error active
Controller ready
Minimum speed limit value not reached
Drive enabled
Actual speed value
CAN status
Further information on the FB can be found in the following section:
L_S84_ActuatorSpeedSL - actuation of the 8400 StateLine controller
( 238)
1.3 EN - 07/2012L51
Page 52
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8400 StateLine - "LAS_40_INTF_Can_84SL_Speed" sample project
Read out error
Actuation of the controllerStatus of the controller
Read out error
CAN address
Number of the CAN master
Use second SDO
Error text display
Error read out
Function block active
Reading out error has failed
Further information on the FB can be found in the following section:
Further information on the function libraries used in this project can be found in
the following section:
The L_S84_Drive8400.lib library
Standard procedure
How to commission the controller:
1. Commission 8400 HighLine. Commissioning
2. Load the project "LAS_40_INTF_Can_84HL_TabPos.zip" to the controller using the
L-force »Engineer«. Open the »Engineer« project & go online
3. Open the "LAS_40_INTF_Can_84HL_TabPos.pro" sample project in the »PLC
Designer« Program structure in the »PLC Designer«
4. Load the project to the IPC/EL 1xx and go online.
8.2.1Components used
( 235)
( 62)
( 63)
( 65)
[8-7]System configuration with EL x800 CAN master (ID=0, connection at CAN1) and 8400 HighLine (CAN node ID=5)
Industrial PCField device
HardwareEL x8008400 HighLine
Operating systemIPC software from version Logic
7.02.x (release 2.2.x)
Lenze software required»PLC Designer« from version 2.3.x
L-force »Engineer« from version 2.12
Further requirements • CAN master ID = 0
• Connection to interface CAN 1
• Logic CAN 500kB
1.3 EN - 07/2012L61
From firmware V5.0
• CAN node ID = 5
• Motor: SDSGAI056-22
Page 62
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8400 HighLine - "LAS_40_INTF_Can_84HL_TabPos" sample project
8.2.2Short overview of the functions
ModeDescription
AutomaticIn the automatic mode a sequence runs over an infinite loop.
Selection:
When the drive is referenced...
1.Travel to Position 1,
2.Travel to Position 2,
3.Start at (1.) again.
ManualIn manual mode, the controller can be actuated by setting the individual
ServiceThe service mode serves to adjust the controller.
HomingIn the homing mode the drive is referenced.
control bits manually (Jog1, Jog2, QSP, ErrorReset...). Like this, the controller
can be actuated in manual mode, for instance for cleaning or changing the
tools.
Selection:
• Travel in positive direction for one second,
•Stop for one second,
• Travel in negative direction for one second.
• Either the home position is set directly, or a homing is started.
8.2.3Commissioning
Read the mounting instructions supplied with the controller first before you start
working!
1. Wire the power connections
2. Wire the control terminals
3. Connect USB diagnostic adapter.
4. Switch on the voltage supply of the controller.
When the green LED "DRV-RDY" is blinking and the red LED "DRV-ERR" is off, the controller
is ready to start and you can continue with the commissioning.
The mounting instructions contain safety instructions which must be observed!
– Use the mounting instructions supplied with the controller to correctly use the
power connections according to the requirements of your device.
The "DRIVE (PRG)" program actuates the controller by means of the
L_S84_TablePositioningHL function block.
The machine constants are conditioned by means of the L_SSC_SetAxisData block and
are provided at the AxisData input as structure.
The DriveControl and DriveStatus structures serve to transmit the control and status
signals within one PDO. Since an individual PDO does not suffice for all modes, block
L_SCB_PutNodeDataTxPDO2 provides a further PDO for the transmission of the speed
setpoint for the service mode.
By selecting the CAN node ID (byNodeNumber) and the CAN master node number
(byMasterNumber), the data can be copied to the control configuration.
1.3 EN - 07/2012L67
Page 68
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8400 HighLine - "LAS_40_INTF_Can_84HL_TabPos" sample project
"PLC_PRG" program
The "PLC_PRG (PRG)" program contains all program calls.
Via the buttons in area , the mode (automatic, manual, service, homing) can be
selected.
In area services (parameter transfer and CAN diagnostics) can be selected.
The button in area refers to the home page which displays the version identifier of
the project in area .
Dialog box shows the status of the machine.
Control field shows the error message status.
–The Error Reset button resets the error message.
Information/home page Status
1.3 EN - 07/2012L69
Page 70
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8400 HighLine - "LAS_40_INTF_Can_84HL_TabPos" sample project
8.2.5.2Automatic mode
Select mode Stop buttonCurrent profile
Start button Mode status Set position
Button selects the automatic mode.
Button starts the motion profile.
Button inhibits the motion profile.
Display field shows the mode status.
Display field shows the current profile number.
Display field shows the set position.
Dialog box shows the current position (Actual Position variable).
The 8400 StateLine can be controlled by means of the visualisation of block
L_S84_TablePositioningHL in manual operation. Via the visualisation of block
L_S84ReadErrorCode the current error can be read out.
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
Select mode Reading out an
Control/status panel
error
Button selects the manual (manual jog) mode.
In the control and status panel the FB for controlling the 8400 Stateline is visualised.
By means of the visualisation of block L_S84_TablePositioningHL, the 8400 HighLine
can be operated in manual operation (byProfilenumber = 2).
Note: Enable the controller via FB input xEnable to activate manual mode
. The
controller can then be actuated via the visualisation in manual operation. The xQsp
button must be activated so that quick stop is activated.
Profile numberFunction
byProfileNumber = 1Homing
byProfileNumber = 2Manual jog
byProfileNumber = 3 or 4Positioning
Further information on the FB can be found in the following section:
L_S84_TablePositioningHL - profile data record management
( 243)
Area visualises the FB for reading out the errors from the controller.
Further information on the FB can be found in the following section:
L_S84_ReadErrorCode - read out error status
1.3 EN - 07/2012L71
( 241)
Page 72
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
8400 HighLine - "LAS_40_INTF_Can_84HL_TabPos" sample project
Control/status panel
Actuation of the controller Status of the controller
CAN address
Number of the CAN master
Enable drive
Activate quick stop
Reset error
Define reference
Enable positioning
Enable override
Activate manual jog in positive direction
Activate manual jog in negative direction
Target position (not available)
Speed override in [%]
Operating mode (not available)
Profile number:
0 = Speed follower
1 = Homing
2 = Manual jog
≥3 = Positioning
CAN communication OK
Error active
Controller ready
Speed is zero
Drive enabled
Quick stop active
Reference known
Positioning active
Target position reached
Hardware limit switch positive
Hardware limit switch negative
... Status of digital inputs 5 ... 7
Actual position
Actual speed
CAN status
Further information on the FB can be found in the following section:
L_S84_TablePositioningHL - profile data record management
Further information on the function libraries used in this project can be found in
the following section:
The L_S94_Drive9400.lib library
Standard procedure
( 246)
How to commission the controller:
1. Commission the 9400 HighLine.
2. Load the project "LAS_40_INTF_Can_94SL_Speed.zip" to the controller using the L-
force »Engineer«. Open the »Engineer« project & go online
3. Open the "LAS_40_INTF_Can_94HL_Speed.pro" sample project in the »PLC
Designer«. Program structure in the »PLC Designer«
4. Load the project to the IPC/EL 1xx and go online.
( 87)
( 85)
1.3 EN - 07/2012L83
Page 84
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
9400 HighLine - "LAS_40_INTF_Can_94HL_Speed" sample project
8.3.1Components used
[8-14] System configuration with EL x800 CAN master (ID=0, connection at CAN1) and 9400 HighLine (CAN node ID=5)
HardwareEL x8009400 HighLine
Operating systemIPC software from version Logic
Lenze software required»PLC Designer« from version 20.3
Further requirements • CAN master ID = 0
8.3.2Short overview of the functions
ModeDescription
AutomaticIn the automatic mode a sequence runs over an infinite loop.
ManualIn manual mode, the controller can be actuated by setting the individual
ServiceThe service mode serves to adjust the controller.
Industrial PCField device
7.02.x (release 2.2.x)
L-force »Engineer« from version 2.12
• Connection at interface CAN1
• Logic CAN 500kB
Selection:
•Travel for three seconds at speed1,
•then for five seconds at speed2,
• Start with speed1 again.
control bits manually (Jog1, Jog2, QSP, ErrorReset...). Like this, the controller
can be actuated in manual mode, for instance for cleaning or changing the
tools.
Select mode Stop button Actual speedError message
Start button Status Status
Button selects the automatic mode.
Button starts the motion profile.
Button inhibits the motion profile.
Display field shows the mode status.
Display field shows the current speed (Speed Value variable).
Dialog box shows the status of the machine.
Control field shows the error message status.
–The Error Reset button resets the error message.
1.3 EN - 07/2012L91
Page 92
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
9400 HighLine - "LAS_40_INTF_Can_94HL_Speed" sample project
8.3.4.3Manual mode ("Manual jog")
The 9400 HighLine can be controlled by means of the visualisation of block
L_S94_ActuatorSpeed in manual operation. Via the visualisation of block
L_S94_ReadErrorCode the current error can be read out.
Select mode Reading out an
Control/status panel
Button selects the manual (manual jog) mode.
In the control and status panel the FB for controlling the 8400 Stateline is visualised.
Note: Enable the controller via FB input xEnable to activate the manual mode
Afterwards the controller can be operated via the visualisation in manual operation.
The xQsp button must be activated to activate quick stop.
–Via xEnable SpeedFollower and rNSet the speed in [%] can be defined
– a fixed speed can be specified via xEnable SpeedFollower and xJog1, xJog2.
– Inching mode can be activated via xManual and xManualPos or xManualNeg.
Further information on the FB can be found in the following section:
Area visualises the FB L_S94_ErrorCode for reading out the errors from the
controller.
Further information on the FB can be found in the following section:
Actuation of the controllerStatus of the controller
CAN address
Number of the CAN master
Enable drive
Activate quick stop
Enable speed follower
Activate fixed speed (Jog 1)
Activate fixed speed (Jog 2)
Set clockwise (CW) rotation/counter-clockwise
(CCW) rotation
Reset error
Enable inching mode
Activate inching mode in positive direction
Activate inching mode in negative direction
Actual speed value in [%]
CAN communication OK
Error active
Speed = 0
Controller ready
Controller is enabled
Set quick stop
Speed follower active
Inching mode active
Warning active
Status of digital input Controller enable (RFG)
- Status of digital inputs 1 ... 4
Actual speed value
Actual torque value
CAN status
Further information on the FB can be found in the following
section:L_S94_ActuatorSpeed - actuation of the 9400 HighLine controller
( 246)
1.3 EN - 07/2012L93
Page 94
PLC Designer V2.x| Lenze Application Samples
Working with the sample projects
9400 HighLine - "LAS_40_INTF_Can_94HL_Speed" sample project
Read out error
Actuation of the controllerStatus of the controller
Read out error
CAN address
Number of the CAN master
Use second SDO
Error text display
Error read out
Function block active
Reading out error has failed
Further information on the FB can be found in the following
section:L_S94_ReadErrorCode - read out error status