Further information on Lenze products which can be used in conjunction with Controller-based
Automation can be found in the following sets of documentation:
Mounting & wiringSymbols:
Mounting instructions
• Controller
• Communication cards (MC-xxx)
• I/O system 1000 (EPM-Sxxx)
• Inverter, Servo Drives
•Communication modules
Operating instructions
• Controller
• Servo system ECS (ECSxE, ECSxM)
Sample applications/Using application templates
Online help/software manuals
• Application Sample i700
• Application Samples
• ApplicationTemplate
Parameterisation, configuration, commissioning
Online help/reference manuals
• Controller
• Inverter, Servo Drives
• I/O system 1000 (EPM-Sxxx)
Online help/communication manuals
• Bus systems
•Communication modules
Operating instructions
• Servo system ECS (ECSxE, ECSxM)
Printed documentation
Online help in the Lenze Engineering
Tool (also available as PDF file at
www.lenze.com
.)
Tip!
Current documentation and software updates with regard to Lenze products can be found
in the download area at:
www.lenze.com
Target group
This documentation is intended for persons who commission and maintain a Controller-based
automation system by means of a Lenze Controller and the »PLC Designer« engineering tool.
Screenshots/application examples
All screenshots in this documentation are application examples. Depending on the firmware
version of the field devices and the software version of the Engineering tools installed (e.g. »PLC
Designer« ), screenshots in this documentation may differ from the representation on the screen.
EtherCAT® (Ethernet for Controller and Automation Technology) is an Ethernet-based
fieldbus system which fulfils the application profile for industrial real-time systems.
EtherCAT® is a registered trademark and patented technology, licensed by Beckhoff
Automation GmbH, Germany.
PROFIBUS® (Process Field Bus) is a widely used fieldbus system for the automation of
machines and production lines.
PROFIBUS® is a registered trademark and patented technology licensed by the PROFIBUS
& PROFINET International (PI) user organisation.
PROFINET® (Process Field Network) is a real-time capable fieldbus system based on
Ethernet.
PROFINET® is a registered trademark and patented technology licensed by the PROFIBUS
& PROFINET International (PI) user organisation.
Please observe the following safety instructions when you want to commission an automation
system or a plant using a controller.
Read the documentation supplied with the corresponding field device thoroughly before
starting to commission the devices with the controller!
The device documentation contains safety instructions which must be observed!
Danger!
According to today's scientific knowledge it is not possible to ensure absolute freedom
from defects of a software.
If necessary, systems with built-in inverters must be provided with additional
monitoring and protective equipment complying with the relevant safety regulations
(e.g. law on technical equipment, regulations for the prevention of accidents) in each
case, 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 engineering software while a device is connected online,
the changes will be directly accepted by the device.
A wrong parameter setting can cause unpredictable motor movements.
By an unintended direction of rotation, too high speed, or jerky operation, the driven
machine parts may be damaged.
3Controller-based Automation: Central motion control
The Lenze automation system "Controller-based Automation" serves to create complex automation
solutions with central motion control. Here, the Controller is the control centre of the system.
System structure of the Controller-based Automation: "All from one single source"
[3-1]Example configuration (EtherCAT bus system): Controller 3200 C with I/O system 1000 and Servo Inverter i700.
• Engineering software
The Lenze Engineering tools
to parameterise, configure and diagnose the system. The Engineering PC communicates with
the Controller via Ethernet.
•Controller
The Lenze Controller is available as Panel Controller with integrated touch display and as
Cabinet Controller in control cabinet design.
Cabinet Controllers provide a direct coupling of the I/O system 100 via the integrated backplane
bus.
The Runtime software of the Lenze Controllers
of motion sequences. These software versions are available:
• "Logic": Sequence control in the Controller, motion control in the inverter
• "Motion": Sequence control and motion control in the Controller, inverter as actuating drive
• "Visu": Optional visualisation of the automation system, can be used separately or in addition
to "Logic" or "Motion"
An external monitor panel/display can be connected to the Cabinet Controller 3231 C/
3241 C.
• Without software: Controller as single component with operating system only
•Bus systems
EtherCAT is a standard "on board" bus system of the Controller-based Automation. EtherCAT
enables the control of all nodes (Motion/Logic) on one common fieldbus.
Optionally, CANopen, PROFIBUS and PROFINET can be used as extended topologies.
The Controllers c300/p300 have a CANopen interface "on board" as well (in addition to
EtherCAT).
• Inverter (e.g. Servo Inverter i700)
( 20) on your Engineering PC (Windows® operating system) serve
( 24) provides the control and/or visualisation
"Logic & Motion" runtime software
The "Controller-based Automation" system allows for the central control of devices for Logic and
Motion applications. The runtime software runs on the Controller.
In case of Logic applications, the sequence control is carried out in the Controller and the motion
control is carried out in the inverter.
In case of Motion applications , the sequence control and motion control are carried out in the
Controller. The inverter is used as actuating drive.
• Motion applications make special demands on the cycle time and real-time capability of the bus
system between the Controller and the subordinate fieldbus nodes.
• This is e.g. the case if the nodes must traverse synchronously or if position setpoints must be
transmitted.
This chapter provides you with an overview of the basic system structure of the Lenze "Controllerbased Automation" system. The system consists of an Engineering PC, a Controller and the devices
communicating with the Controller via the fieldbus.
[4-1]* The PROFIBUS fieldbus driver can only be accessed via PLC (Logic/Motion). Access via EASY Starter and VisiWinNET®
Runtime is not provided.
Controllers and field devices form the automation system to be commissioned via the Engineering
PC. The Engineering PC is a PC/Laptop with Windows® operating system and network connection.
The Engineering PC comes installed with the Lenze Engineering tools
configuration, programming and diagnostics.
The Controller with the PLC (Logic/Motion) is the central control section, consisting of the PLC
runtime program (Runtime software of the Lenze Controllers
application.
Device-internally, the Controller comes with a data manager for configuring and managing the data
of the automation system. The data manager and the fieldbus driver enable the PLC (Logic/Motion)
to access the system components and the field devices.
The fieldbus (Logic/Motion) enables the Controller to read and write the parameters of the
connected field devices.
»EASY Navigator«: Starting the suitable Engineering tool
The Lenze Engineering software consists of the Engineering tools optimised for the respective
Engineering phase.
The »EASY Navigator« shows the Lenze Engineering tools installed on the Engineering PC. Start the
desired Engineering tool via the corresponding button:
The »EASY Navigator« ...
• simplifies the selection of the Engineering tool, depending on the Engineering phase.
• simplifies starting the desired Engineering tool (depending on the application case).
• makes it possible to select the Engineering tool suitable for the Engineering phase.
The overview displays the respective function of the Engineering tools:
What would you like to do?ButtonEngineering tool
Programming
• Program the controller
• Parameterise/commission the Servo-Inverter i700
• Parameterise the I/O system 1000
Parameterising/configuring the inverter
• Parameterise and configure the automation/drive
system
4.2Controller: The control centre of the Controller-based Automation
Cabinet controllers: Compact control cabinet design
Cabinet controllers are designed for the demanding continuous use in industrial applications.
Compared to panel controllers, they are not equipped with an integrated display. The Controllers
3231 C and 3241 C are provided with a DVI interface for the connection of an external monitor
panel.
Mounting is carried out in a control cabinet or a corresponding built-in housing on a standard DIN
rail (35 mm). The device-internal backplane bus provides for a direct connection of the I/O system
1000.
Panel controllers: controlling and visualising
Panel controllers are designed for the installation into control cabinets, machine panels, or other
mounting cutouts. They are equipped with rear bolts and clamping screws which provide for easy
mounting and reliable sealing (front panel enclosure IP65/rear panel IP20) in rough industrial
environments. They can be operated easily by directly touching the screen.
General features
• Controller programming, configuration and diagnostics using the »PLC Designer« (on the basis
of CoDeSys 3.x)
• USB 2.0 interfaces and SD card slot, e.g. for data backup/restore
»Backup & Restore« (data backup/restore)
• 4 LEDs for diagnostic purposes:
• Current supply
• Status of the PLC
• Status of the backplane bus
• Freely programmable LED
( 67)
Operating instructions for the Controller
Here, further information on the device-specific properties can be found.
By default, the runtime software is installed in the Lenze Controller as "Logic" mode for the central
control of PLC applications.
Optionally, the "Motion" mode is available, additionally enabling extensive motion control of
Motion functions. The inverter then only acts as an actuating drive.
In addition, the "Visu" mode is available, enabling a central visualisation with the Controller.
The runtime software consists of:
• Operating system (Windows® CE)
• Software components (Logic/Motion), which for instance execute the control program.
"Logic" refers to the use of logically combined control signals without Motion functions. When the
"Logic" mode is used, the controller solely controls the motion sequences via logically combined
control signals.
Functionality
• Programming PLC functionality according to IEC 61131-3.
• SoftPLC functionality for executing PLC programs.
• The multi-tasking Windows® CE operating system processes the PLC
programs cyclically.
Performance
The "Logic" mode defines the program function. The performance of the entire
automation system results from the interaction of the runtime software and
the target system in each case. The system performance thus depends on the
processor of the respective controller, and on other factors.
Engineering tool required: »PLC Designer«
4.3.2"Motion" runtime software
The "Motion" mode makes it possible to execute more complex motion sequences than with the
Logic mode.
In the case of a Motion system, the whole motion control (Motion) of the axes to be controlled takes
place in the controller. The higher-level controller generates the motion profiles for all Motion axes
and transfers the data to the axes via EtherCAT.
A Motion-application...
• ...makes special demands on the cycle time and real-time capability of the bus system between
the controller and the connected field devices.
• for instance is to be used if the axes to be controlled are to be traversed in a synchronised
manner or position setpoints are to be transmitted.
Functionality
• Motion functions according to PLCopen "Function blocks for Motion
• Contains the "Logic" runtime software for the use of logically combined
Additional functions
• Motion function blocks/libraries
• Supports programs for the control of complex motion sequences with
The "Controller-based Automation" system enables the central visualisation of the automation
system.
The visualisation can either run on a separate Controller or monitor panel or on the Controller on
which the "Logic" or "Motion" runtime software is running.
Various options described in the following sections are available for the communication link.
Functionality
The "Visu" mode ...
• extends the Controller to a visualisation device;
• can be used separately or in addition to "Logic" or "Motion".
Engineering tool required: »VisiWinNET«
Note!
There is no OPC server available for PROFIBUS and PROFINET.
Controller c300/p300:
• The OPC communication for »VisiWinNET« is exclusively available for Controller p300
without
• Otherwise, only the Lenze "Logic&Motion" direct driver can be used for the data
exchange between »VisiWinNET« and PLC.
4.3.3.1Sample topology 1: External monitor panel/display for cabinet controllers
[4-2]Sample topology: Controller 3231 C with an external monitor panel (connected to the DVI interface)
This topology with regard to its performance corresponds to the implemented solution (control/
visualisation on the same controller). The external monitor panel/display shows the visualisation.
Advantages
• Small amount of cabling
• Protected operating conditions
• Extensible topology
•No
impact on the real-time capability of the fieldbus by the visualisation
4.3.3.3Sample topology 3: Independent control and visualisation (CANopen)
[4-4]Sample configuration: Parallel access of Controller 3200 C and Visualisation Controller (IPC)
If this topology is used, the Controller 3200 C and the Visualisation Controller (IPC) access the
fieldbus independently of each other.
Note!
Advantages
Disadvantage
The configuration with a control and configuration independent of each other is only
available for the CANopen bus system!
• CANopen enables (several) fieldbus master independent of each other.
• In connection with EtherCAT, no
• Spatially separate control and visualisation.
• The visualisation has access to the parameters of the field devices.
• The visualisation may disrupt the real-time capability of the fieldbus. This topology therefore is
only suitable for Motion systems to a limited extent (depending on the bus system used).
configuration with two fieldbus masters is possible.
This chapter provides some general information on the commissioning of a controller. Depending
on the actual hardware installed, different settings are required for integrating the controller into a
network.
Note!
Please observe the predefined IP address of the controller for the initial commissioning:
192.168.5.99 (Lenze setting).
Further information on how to set the IP address of the Controller can be found here:
Entering the IP address of the controller
( 33)
Read the mounting instructions supplied before you start working!
The mounting instructions contains safety instructions which must be observed!
Operating instructions for the Controller
Here, further information on the device-specific properties can be found.
Here the documentation provides some general information about the commissioning
of a controller. Depending on the design and version of the controller, the
commissioning process can be different.
Every controller is provided with a nameplate containing the device data. The device data are
helpful for identifying the technical equipment of the controller. Detailed information relating to
the nameplate data can be found in the operating instructions for the Controller.
Web-based diagnostics/parameter setting
Via »WebConfig« the configuration of the controller can be identified. The parameter values of the
controller can be represented using the web browser.
Online connection from the Engineering PC to the controller
( 46)
Assigning a unique name to the controller
In order to be able to clearly identify a Controller, the desired name has to be assigned for parameter
13 System identification: NameC0013
Engineering tool (e.g. »PLC Designer«), in order to be able to identify the controller.
5.2Control elements of the controllers
Depending on the equipment and type, the different device series are provided with various control
elements (e.g. function keys for external monitor panels) and status LEDs for diagnostic purposes.
Status LEDs of the Controllers
The controllers can be operated via external input devices (keyboard/mouse). This makes it possible
to carry out comprehensive diagnostics and configuration tasks directly on the controller.
Operating instructions for the Controller
Here, further information on the device-specific properties of the Controller can be
found.
. The name assigned can then be used in the corresponding
Removal of the SD card will lead to a system failure!
-bootable USB flash drive is connected during the starting sequence, it will be
• Remove the USB stick and restart the Controller.
• Alternatively, the USB stick can be prepared using the »Backup & Restore« software.
Further information can be found in the online help of the »Backup & Restore«
software.
• The SD card must not be removed while the controller is running (no "Hot Plugging"
of the SD card possible).
• The SD card is required for the system start since it contains the system files for the
starting process.
The SD card and the internal flash memory are the storage media of the controller. Depending on
the device, the SD card can be used optionally. Detailed information can be found in the devicespecific operating instructions.
The controller saves the user data (like projects and individual data) on the SD card. The operating
system and the Lenze software are saved in the internal flash memory.
Note!
The standard-IP address of the controller is 192.168.5.99 (Lenze setting)
The preset IP configuration can be changed in the »WebConfig«.
Setting IP addresses on the Engineering PC (example: Windows® XP)
Entering the IP address of the controller ( 33)
After 15 seconds, the network configuration dialog box will close automatically; the
controller continues with the starting process.
Error case: Controller c300/p300 does not start
In case the Controller c300 or p300 does not start, the Lenze standard settings can be activated
using the reset pushbutton.
How to activate the Lenze standard settings:
1. Switch off voltage supply.
( 46)
2. Press reset pushbutton.
3. While pressing the reset pushbutton, switch on the voltage supply and keep the reset
pushbutton pressed for at least 10 s.
• If the error LED is blinking (green/red) after this action, a manual mains switching is
required.
• The Controller has to be disconnected from the mains until all LEDs go off.
5.4.2.1Cabinet controllers with external monitor panels (3231 C/3241 C)
Note!
If an external display (monitor panel) is used, the switch-on sequence of display/
controller must be observed so that it can be correctly controlled by the controller:
• Connect the external display to the DVI output of the controller and switch it on
before
switching on the controller.
After connection of a monitor panel/an external display to a running controller, the
display resolution is VGA .
• Calibrate the monitor panel/ display connected, so that the screen content can be
displayed correctly.
Tip!
Connect a keyboard to the Controller to be able to enter the IP address.
Then you can make the entries:
[5-1]IP settings of the controller by default
• Start the control panel with <Shift+F4>.
• Start the network connections by double-click and enter the IP address, subnet mask, and the
default gateway.
• After clicking the button the IP address is saved and need not be entered again when the
system is restarted.
5.4.2.2Cabinet Controller without external monitor panel (c300/3221 C)
To configure a Cabinet Controller without a connected monitor panel (e.g. Controller 3221 C), a PC/
laptop with the suitable addresses (IP address, subnet mask, default gateway) is required.
• Connect the PC/laptop to the controller by means of a "crossed" network cable.
• Change the settings on an HTML compliant browser:
Setting IP addresses on the Engineering PC (example: Windows® XP)
• Connection establishment: enter the IP address of the controller in the browser: 192.168.5.99
(Lenze default setting).
• In »WebConfig«, click the Ethernet button.
• Enter the desired IP address, subnet mask and default gangway of the Controller.
•Click Accept & Save all.
•Set Use IP configuration to the value "Activate device".
• Click again Accept & Save all in order to save the network settings permanently.
5.4.3Specifying the IP address of the controller via file (optional)
How to proceed:
1. Create file "ip.txt" on the Engineering PC.
2. Save file "ip.txt" to the SD card of the controller by connecting the SD card to the
Engineering PC using a memory card reader.
File "ip.txt"
172.31.207.88 {IP address}
255.255.255.0 {subnet mask}
172.31.201.1 {gateway}
[5-2]Example of an "ip.txt" file for selecting the IP address
In ASCII file "ip.txt" an IP address is defined which can be selected for the controller.
• Copy file "ip.txt" to the root directory of the SD card.
• Insert the SD card into the controller. Then start the controller.
Starting the controller
• When the system is started ...
• the controller reads in the IP address file "ip.txt" from the SD card;
• the controller writes the result (Result) to the ip.txt file:
( 32)
172.31.207.88
255.255.255.0
172.31.201.1
Result: 2010-9-24 14:42:23 :Success: IP Settings taken from file.
[5-3]Example of an "ip.txt" file for IP address selection with result entry
• Then, the Controller renames the file: "ip_old.txt".
• To select the IP address once again using the file, the file must be renamed to "ip.txt".
Tip!
The "ip.txt" file can be used to select the use of the DHCP. For this, write "DHCP" into the
first line of the file. Then, the following lines will no longer be considered.
In order to be able to establish a connection to the controller, each user has to be assigned access
rights. For this the respective user has to be set up as a Windows® CE user with a user name and a
password. Windows® CE users can be set up via »WebConfig« and the »EASY Starter«:
Setting up Windows® CE users in »WebConfig«
The representation for user 1 is displayed. The users 2 to 10 are displayed analogously.
5.4.4.1Setting up Windows® CE users in »WebConfig«
( 37)
Note!
You have to be set up as Windows® CE user to have authorisations for further services
like FTP, telnet, or web server access.
• Up to ten Windows® CE users can be set up in »WebConfig« the User management 10 area.
• Use parameters 101 to 169 to set up the user name, password, and various authorisations for a
maximum of ten users.
The representation for user 1 is displayed. The users 2 to 10 are displayed analogously.
Detailed information on the parameters can be found here:
Basic parameters of the Controllers 3200 C/c300 and p300/p500
5.5I/O system 1000 at the backplane bus of a cabinet controller
The Cabinet Controllers 3200 C and c300 allow for a direct connection of the I/O system 1000 to the
integrated backplane bus.
The modules of the I/O system 100 connected to the backplane bus of the Controller can be
parameterised in the »PLC Designer«.
System manual for I/O system 1000 (EPM-Sxxx)
Here, further information on the parameter setting/configuration can be found.
5.5.1Configuring I/O modules at the backplane bus
The following illustration is a schematic representation of the controller hardware structure
including I/O modules.
The I/O system 1000 includes the following components:
• I/O module coupler for voltage supply of the I/O compound modules
• I/O compound modules:
Up to 64 modules are possible which are connected to the Controller 3200 C via the Lenze
backplane bus.
In order to be able to access the modules by means of a PLC program (read input signals/write
output signals), the modules have to be configured in the »PLC Designer«. For this, map the physical
arrangement of the I/O modules in the »PLC Designer«.
[5-4]Example: mapping the physical arrangement of modules 1...7 in the »PLC Designer«
This chapter contains some information about the web-based parameterisation of the controller via
»WebConfig«.
6.1System structure
6.2Parameterising the controller
All settings that can be used for parameterising the controller are included in a numbered
parameter list.
»WebConfig« can be remotely called via http by an external Engineering PC which can be reached
via network. The Engineering PC is a desktop computer with a Windows® (XP/7) operating system.
Basic parameters of the Controllers 3200 C/c300 and p300/p500
6.3Online connection from the Engineering PC to the controller
Connect the Engineering PC to the Controller using a network cable or connect the Controller to the
network which is accessed to the Engineering PC.
Note!
In the case of a direct connection between the Engineering PC and the controller, a
crossed network cable is required.
The settings of the static IP address of the Engineering PC are only to be carried out for
the direct connection between the Engineering PC and controller.
6.3.1Setting IP addresses on the Engineering PC (example: Windows® XP)
Note!
Recommended setting for the Engineering PC:
IP address: <192.168.5.100>
Default settings of the controller:
IP address: <192.168.5.99>, subnetwork <255.255.255.0>.
Setting for the direct connection between Engineering PC and controller:
How to set the static IP address of the Engineering PC:
1. Open the Network connections dialog box.
StartSettingsNetwork connections
2. Select the network interface which is connected to the Controller.
Right-click Properties.
3. Select Internet protocol (TCP/IP).
4. Click the Properties button.
5. Select the Alternate configuration tab.
6. Select the User configured option.
• Enter the IP address. The subnet range of this IP address and the one of the IP address of
the controller must be the same, example: <192.168.5.100> (Lenze setting of the
controller: <192.168.5.99>).
• Enter the subnet mask of the Engineering PC (standard setting: <255.255.255.0>)
7. Close the individual dialog boxes with OK/Close.
In the display area of »WebConfig«, settings of device parameters are represented with different
background colours which have the following meaning:
ColourExampleMeaning
Pale yellowParameter (read only)
• Display of status information and actual values.
YellowParameter (read and write)
• The current parameter value of the device is displayed. Changes with regard to a
parameter have to be transmitted to the device with Accept or Accept & Save All.
redEntry of a value beyond the valid range
•Via Refresh the original value is shown again.
• A correct value can be entered in the red input field and transmitted to the device
with Accept or Accept & Save All .
In the following the individual menus of the web-based parameterisation »WebConfig« are
described.
6.5.1Device parameters of the controller
ButtonFunction
Parameter list 1
Parameter list 2
PLC
Ethernet
EtherCAT
Displays all parameters of the standard device of the controller in
numerically ascending order.
This user interface helps you to e.g. ...
• find system properties and version numbers (read-only parameters);
• set the system time;
• Activate the USB connection at the front of the monitor panel.
Basic parameters of the Controllers 3200 C/c300 and p300/p500
The other menu buttons of the areas , and are a filtered view of
parameter list 1.
Displays all parameters of the installed communication cards in numerically
ascending order.
The top-down order of the parameters corresponds to the order in which the
communication cards have been installed (slot 1, slot 2).
Detailed information on the parameters of the communication cards can be
found here:
Parameters of the communication cards
Communication cards: optional interface
The other menu buttons of area are a filtered view of parameter list 2.
Displays the PLC parameters in numerically ascending order.
From this user interface can e.g. be seen:
•The PLC status,
• Information on a PLC project.
Detailed information on the parameters of the PLC can be found here:
PLC (Logic/Motion)
Displays the Ethernet (on board) parameters in numerically ascending order.
On this user interface the network settings of the (on board) network
connection are displayed/set.
Detailed information on the EtherCAT parameters can be found here:
Ethernet (on board)
Displays the EtherCAT parameters (information on EtherCAT master and
EtherCAT slaves).
Detailed information on the EtherCAT parameters can be found here:
6.5.3.4Saving log files with mains failure protection
The log files are persisted automatically at certain events.
Diagnostics with the logbook
You can also persist the log files manually by means of the »EASY Starter« and »WebConfig«.
How to proceed:
1. Click the Device commands button.
2. Select the entry "1282: Persist logbook" from the Commands list field.
3. Click the Accept button.
OK appears in the "Status" field.
6.5.3.5Export logbook entries
How to export the logbook entries to a text file (without using the »EASY Starter«):
1. Establish online connection to the controller.
Entering the IP address of the controller
2. Available logbook entries can be seen on the Logbook tab.
3. Click the ExportLog button in the header of the logbook to export the logbook entries to a
file.
The content of the logbook is exported to a German (*_de) and an English file (*_en) to the
memory card in the \USBStorage\export\log directory (The directory is already
preinstalled on the SD card by default).
• Note: The contents of the logbook can also be exported to a USB stick (connected to the
Controller). To be able to export the contents of the logbook to the USB stick, the
\export\log directory must be created manually on the USB stick prior to export.
• When the ExportLog button is clicked, the Controller writes the contents of the logbook
to the SD card and to the USB stick (directory: \USBStorage2\export\log).
• The execution of an ExportLog is entered into the logbook as Information. (Entries of the
Information type can only be seen in the logbook if the corresponding filter option is set
in the Logbook.)
( 89)
( 33)
Export logbook entries via device command
The logbook export can also be started by writing to command parameter 18 (C0018
»VisiWinNET®«.
In the section Device commands (parameter 18), execute the 304: Export complete logbook
command to export the logbook entries.
6.5.7.2Optional PROFIBUS/PROFINET communication cards
ButtonFunction
MC-xxx
6.5.8Automatic update
In this menu, the automatic, interval-controlled update of the screen content can be activated:
MC-PBM: Parameter of the PROFIBUS master card communication card.
MC-PBS: Parameter of the PROFIBUS slave card communication card.
MC-PND: Parameter of the PROFINET communication card.
In this user interface, the parameters of an optional communication card are
visible if it is installed in the controller.
Detailed information on the parameters of the communication cards can be
found here:
PROFIBUS and PROFINET communication cards
Interval:
Specify period in seconds, defining the intervals in which the screen content is
automatically updated; example value: 5, update every five seconds.
Active:
Tick the checkmark (
) to activate the automatic update.
( 185)
6.5.9Language selection
The desired language settings can be selected in the Language section.
The language settings take immediate effect.
6.5.10Parameter list buttons
ButtonFunction
AcceptAccept data.
Accept & Save allAccept and save all changed data.
UpdateReload data and update screen content.
After a system restart changed data is lost, as it is not persisted
automatically.
The data will remain on your PC after a system restart.
The »PLC Designer« contains function blocks which enable the PLC program to directly access the
parameters of the Controller and the connected field devices.
Parameters which can be accessed are ...
• device parameters or logbook entries of the Controller;
• device parameters of the field devices (example: Servo Inverter i700).
7.3Configuring and parameterising the controller using the control application
For the creation of a control application, Lenze provides function blocks in standardised libraries
(e.g.: motion functions according to PLCopen). Further function blocks can for instance be used to
access controller parameters.
By means of the »PLC Designer«, the compiled PLC program has to be loaded to the controller via
Ethernet, where it processes the operating system.
7.4Controller c300/p300: Access to odd Controller addresses
Note!
Due to the processor type (Cortex™-A8), write/read access of variables is only possible to
memory addresses that are divisible by the variable size.
Examples:
• When variables of the DWORD/DINT data type are accessed (read/write), the memory address
must be divisible by 4.
• When variables of the WORD-/INT data type are accessed (read/write), the memory address
must be divisible by 2.
Access to other memory addresses causes exception handling of the runtime (exception).
Different response of the PLC program (3200 C/p500 and c300/p300)
1. In the case of the Controllers 3200 C/p500 with x86 processors, unlimited access to the memory
addresses is possible. Due to the different processor (Cortex™-A8), PLC programs cause
exception handling of the runtime on the Controllers A8c300/p300, although they run without
fault on the Controllers 3200 C/p500.
PROGRAM PLC_PRG
VAR
aByteArray : ARRAY [0..20] OF BYTE;
dwDword : DWORD;
wWord : WORD;
pDwordPtr : POINTER TO DWORD;
pWordPtr : POINTER TO WORD;
END_VAR
// Prerequisite: pDwordPtr is divisible by 4
// DWORD-access to an address which is not divisible by 4 => crash on ARM
// processor
2. In the case of many functions/function blocks, a pointer is transferred to a byte array and then
the content of the byte array is for instance interpreted as DWORD. This requires manual
conversion before the data are used:
PROGRAM PLC_PRG
PROGRAM PRG_Logic
VAR
mySDO_READ : CIA405.SDO_READ4;
aReadData : ARRAY [1..4] OF BYTE;
dwDword : DWORD;
END_VAR
• are variables of the PLC which are automatically saved by the controller in the case of a voltage
failure.
• are variables which are necessary to restart the production process.
The values of a drive system which cannot be read out from the machine due to the lack of a sensor
system should be persistent. These values should also be persistent if the corresponding value only
changes through the influence of the PLC.
Examples
Temperature: Changes, requires a sensor system
Position: Selection preferably via absolute value encoder
Number of parts within buffer inventory: Reasonable for RETAIN.
VAR RETAINremvar1: INT; (* 1st remanent variable*)
END_VAR
Persistent variables ...
can be created in the device tree in the »PLC Designer«:
7.5.1Storage of retain data on the SD card (only Controllers 3221 C/3231 C)
For Controllers 3221 C/3231 C, the values of the RETAIN variables are by default saved to the device
only.
•Use the L_Util_Retain function (from the L_Util.lib library) to save the RETAIN values to the SD
card of the controllers. Like this, the retain data can then be re-used, for instance after a device
replacement.
• RETAIN values saved to the SD card offer the benefit of subsequent use of these values after a
device replacement (subsequent use of the SD card).
Note!
The SD card is only suitable for storing retain data if the RETAIN values do not change
very often.
• It is not possible to save the RETAIN values to the SD card during every PLC cycle.
• SD cards only have a limited number of write/read cycles. Thus, the retain variables
should not be saved at very short time intervals.
• Please avoid calling the L_Util_Retain() function in a motion task. The creation of the
RETAIN file prolongs the current PLC cycle of the calling task by several 100 ms.
•The functions SysSaveRetains() and SysRestoreRetains() provided in the
SysPlcCtrl23.Library are not supported and must not be used.
L_Util_Retain
[7-1]Program example: Use of the L_Util_Retain function
FunctionLibraryFunction
L_Util_Retain()L_Util.librarySave retain data to the SD card of the
When being called, the L_Util_Retain function saves the retain/persistent variables to the SD card
to file: retains.ret (directory: IPC\PLC).
Note!
Device replacement: Avoiding the loss of retain data
65
The L_Util_Retain function is only required for the Controllers 3221 C/3231 C.
•Use the L_Util_Retain function in the desired application in order to be able to re-use
the retain data, if required.
• In the event of a device replacement, the L_Util_Retain function must already have
been used in the application before, since otherwise the retain data are deleted.
ControllerUPS functionalitySaves backup files to ...
3221 CInternal capacitor for the short-time buffering of
3231 C
3241 CExternal battery pack (ACCU-PACK) or capacitor
c300Internal capacitor
p300
p500
data
pack (CAPS-PACK)
9.1.1Internal UPS (for Controllers without UPS connection)
MRAM (Magnetoresistive Random Access
Memory)
Memory card
In case of a voltage failure, retain/persistent variables, logbook data and visualisation data (e.g.
trends alarms) are saved.
The Controllers 3221 C/3231 C have an internal
data.
The Controllers c300/p300/p500 are equipped with a high-capacity, internal UPS for the storage of
data in the event of a voltage failure. This makes external energy storage dispensable. Voltage
fluctuations cannot be compensated for.
The UPS behaviour of the internal UPS is preset. Parameter setting is not possible/required.
buffer capacitor for the short-time buffering of the
9.1.2External UPS (for Controllers 3241 C with UPS connection)
The Controllers 3241 C provide for the connection of an external battery pack (ACCU-PACK) or
capacitor pack (CAPS-PACK) to the X9 socket. Thus, voltage fluctuations of up to five seconds can be
compensated for.
In the case of a voltage failure, the external UPS saves the following content to the memory card of
the Controller 3241 C:
• Retain/persistent variables of the PLC
• Logbook data
• Visualisation data (e.g. trends, alarms)
When the data have been saved, the PLC stops. The log service does not accept any further log
messages and deactivates itself.
The UPS behaviour of the external UPS can be parameterised via »WebConfig«:
Parameter setting using »WebConfig«
Detailed information on the parameters of the UPS can be found here:
( 45)
Voltage buffering by external UPS (optional, for Controller 3241 C)
9.2Storage of »VisiWinNET® Smart« visualisation data
The Controllers 3231 C cyclically store »VisiWinNET® Smart« visualisation data (user-specific trends,
alarms, recipes) every 60 seconds.
Note!
Controller 3231 C:
Depending on the time of occurrence of the voltage failure, the data saved last may be
out-of-date by up to one minute.
There is a time period of one minute between two storage processes. Hence, the saved
visualisation data is not exactly up-to-date after a voltage failure.
In the event of a voltage failure, the Controllers 3241 C store the »VisiWinNET® Smart« visualisation
data (user-specific trends, alarms, recipes) exactly isochronously to the SD card.
In the event of a voltage failure, the Controllers c300/p300/p500 store the »VisiWinNET® Smart«
visualisation data (user-specific trends, alarms, recipes) exactly
This is made possible by the high-capacity, integrated UPS.
10.2Connecting the new controller/replacement device
Note!
When a replacement device is connected, all communication cards which have been
previously implemented and all terminals have to be selected identically.
The user data are stored on the memory card of the controller.
If a controller of the same product type has been used, the newly connected controller is
ready for operation after boot-up.
• The previous network settings are accepted. Alternatively they can be edited.
• After 15 seconds, the previous IP address is transferred automatically and the
controller can be accessed again.
Which replacement device is suitable for the Controller?
Controllers can be replaced against each other as follows:
Defective ControllerReplacement device
3221 C3231 C3241 Cc300p300p500
3221 C ----
3231 C-----
3241 C-----
c300-----
Principally, Panel Controllers can be exchanged against each other (despite different screen
diagonals). If the mounting dimension is to be identical, use a Panel Controller with identical screen
diagonal.
The control application of a controller is serviceable after the device replacement: Insert the suitable
controller in the »PLC Designer« and compile project.
10.3After the device replacement: Automatic data update
When is an automatic data update possible?
An automatic data update takes place after a defective Controller has been replaced by a
replacement device.
Which replacement device is suitable for the Controller?
( 73)
After a device replacement, the data of the bootable SD card of the defective controller must be
usable in the replacement device.
The SD card contains e.g. an executable boot project and a visualisation. Quick commissioning is
possible due to the data reuse in the replacement device.
Device replacement against an incompatible replacement device (exceptional case)
If a device replacement involves an
incompatible
replacement device, an
error message will be entered into the
logbook of the controller
(available from Control Technology
version 3.3).
[10-1] Example: Incompatible replacement device
Scenario (version of replacement device/SD card)Description
The firmware version of the replacement device (controller) is ...
• ... higher than the software version on the SD card of the replaced
controller.
Example:
This is the standard case.
• The controller's version is more up-todate than the software version on the SD
card of the replaced/defective controller.
• Automatic data update is started.
• ... identical to the software version on the SD card of the replaced
controller.
Example:
• ... lower than the software version on the SD card of the replaced
controller.
Example:
The data remains unchanged since a data
update is not required.
This is no
automatic data update.
case of application for an
• Automatic data update is only possible if
the software version is identical or more
up-to-date.
• Remedy: Update the Controller firmware.
Use a USB stick to update the firmware.
Further information on the update is
provided in the online help for »Backup &
Restore«.
The settings of the FTP connection can be managed via the web-based parameterisation. From
parameters 171 to 174 the FTP access for the controller can be activated and user rights can be
specified. Click the Remote control button to call the FTP settings:
• Parameter 171 activates authentication of the FTP user,
• Parameter 172 enables log-on of the anonymous FTP user "Anonymous",
• Parameter 173 activates the upload of files by anonymous FTP users,
• Parameter 174 activates the FTP service.
The user management, the User management button, specifies the following:
• The Windows® CE users who are allowed to use the FTP access.
• Which authorisations the Windows® CE users have.
The authorisations are required to be able to connect to the controller via FTP.
Note!
Restart the FTP server to accept the changed settings: click the Device commands
button.
• Send the "Stop FTP server" command. The FTP server is stopped.
• Send the "Start FTP server" command. The FTP server is started with the changed
settings.
• Send the "Update FTP server" command to update information to the FTP server.
The settings for the local area network and the proxy settings depend on your own
network settings on site.
How to start an FTP connection to the controller:
1. Select the file transfer protocol in the input line of the web browser or in the command line
via StartExecute...:
2. Enter:
• FTP://<Username>:<password>@<IP address>.
The standard setting is FTP://admin:admin@<IP address>. Alternatively the IP address
can be entered directly: FTP://<IP address>
• In the following input window, the user name and password have to be entered.
3. When the entry is correct, click the Log in button.
• The Controller can now be accessed by the Engineering PC.
Lenze controllers are equipped with a logbook function which records system events and error
messages. The entries in the logbook of the controller make it easier to diagnose the automation
system if malfunctions occur.
The logbook of the controller...
• displays error messages and events of the applications;
• automatically stores the information on the SD card.
Structure of a logbook entry
Each logbook entry contains the following information:
•Ascending numbering,
•Date / time,
• Application causing the logbook entry,
• Severity of the event in four categories
• Information,
• Warning,
• Error,
• Fatal error.
• Area as the event origin of the triggered error message.
The logbook of the controller can be called via »WebConfig« and the »EASY Starter«:
11.5.1Remote Display: Remote control of Controller via Internet or LAN
Remote Display Control for Windows® CE (cerhost/cerdisp)
The Engineering PC requires the Remote Display Control software (cerhost.exe) which can be
downloaded from the AKB on the Lenze homepage. It is also provided on the CD that is delivered
along with the devices.
How to establish a remote display connection to the controller:
1. Find out the IP address of the Engineering PC (e.g. by executing the IPConfig command),
2. Start Remote Display Control (cerhost.exe) on the Engineering PC,
3. Start cerdisp.exe on the controller with the (previously identified) IP address of the
Engineering PC : cerdisp <IP address>
[11-2] Remote access to a controller via Remote Display Control
For the Engineering PC, you need the "Virtual Network Computing" (VNC) software.
• VNC is preinstalled on the controller. (directory: \USBStorage\windows\VNC.exe)
• VNC allows you to operate the controller by remote control from the Engineering PC. In this way,
you will work on a remote PC as if you were sitting directly in front of the controller.
Conditions
• The controller is switched on and connected to the network/Internet.
• The VNC server is started on the controller.
• A VNC client (e.g. VNCviewer) is installed on the Engineering PC.
Note!
The VNC server is not protected by a password. To protect data from unauthorised
access, the server should be deactivated whenever the connection is not needed.
How to establish a remote display connection to the controller:
1. Start the VNC server on the controller
• In the »WebConfig«, set the "Activate VNC server" (CS 95) or
• Execute the \windows\VNC.exe file
2. Start VNC client on the Engineering PC.
3. Enter the IP address of the controller.
Tip: To display the IP address of the controller, go to the Control Panel
(StartSettingsControl Panel) of the controller and select "Network Connections".
[11-3] Remote access to a controller via VNC (example: VNCviewer)
This chapter provides information about the Lenze Engineering tool »VisiWinNET®«.
In addition to some basic information, you are provided with information with regard to the use of
»VisiWinNET®« in connection with the "Controller-based Automation" system by Lenze.
»VisiWinNET®«
»VisiWinNET®« can be used to create complex visualisation applications, the possibilities range
from classical operate and monitor functions through to sophisticated SCADA systems.
is a visualisation software for mechanical and systems engineering.
Note!
The Controllers 3221 C and c300 can only be accessed by a remote connection via
»VisiWinNET®« as these devices do not have a display interface (DVI).
Online help for »VisiWinNET®«
Here, further information on the use can be found.
Licensing
The Controllers can be ordered with a factory-set licence which enables the use of »VisiWinNET®«.
The licence level installed can be found in »WebConfig« under: DiagnosticsLicence
12.1Visualisation on the controller: local and remote
A visualisation can either run locally on a controller, or via remote connection on an additional
controller.
The following cases are distinguished:
• Local visualisation - integrated control system
Control and visualisation on the same controller. The following runs on the controller:
»VisiWinNET®« runtime, PLC (Logic/Motion), the data manager, and the fieldbus driver.
Local visualisation can be carried out...
• on a panel controller.
• on a cabinet controller with a connection facility for a monitor panel.
• Remote access - external visualisation
Control and visualisation on separate controllers.
The »VisiWinNET®« runtime runs on a separate "Visu" controller. This controller solely
undertakes visualisation tasks. The external "Visu" controller accesses the process data of an
additional controller which controls the system.
The control program runs on the first controller. The »VisiWinNET®« runtime runs on the second
controller.
• External "Visu" on the controller
• External "Visu" on a Windows® XP or Windows® Embedded XP PC.
12.3Using the visualisation to access data of the control/parameters
Variables of the PLC (Logic/Motion) can be accessed with the "LogicAndMotionV3" direct driver.
Here, the »VisiWinNET®« Runtime may be on a local controller or on an external controller.
Note!
We recommend the use of the "LogicAndMotionV3" direct driver for easy
commissioning.
Use the Direct driver "LogicAndMotionV3" (local visualisation)
There is no OPC server available for PROFIBUS and PROFINET.
Controller c300/p300:
• The OPC communication for »VisiWinNET« is exclusively available for Controller p300
without
• Otherwise, only the Lenze "Logic&Motion" direct driver can be used for the data
exchange between »VisiWinNET« and PLC.
PLC.
( 101)
Use the "LogicAndMotionV3" direct driver to
access the following parameters:
• PLC (Logic/Motion) data
• Lenze recommend to use the
"LogicAndMotionV3" direct driver.
• Alternatively, you can access the following
data via the OPC tunnel:
• DataManager OPC server
Controller parameters.
• CAN/EtherCAT OPC server
Field device parameters (CAN/
EtherCAT).
• SoftPLC OPC server
Variables of PLC (Logic/Motion):
99
Communication type / descriptionAccess to ...
Direct driver "LogicAndMotionV3"
(Recommended connection type!)
Use the Direct driver "LogicAndMotionV3" (local
visualisation) ( 101)
Note: The (Remote) SoftPLC OPC Tunnel communication
type requires a separate configuration of the controller
(experts only - please contact Lenze if required!).
• SoftPLC OPC tunnel
•SoftPLC Remote OPC tunnel (remote access)
Field device parameters at the CAN bus
Field device parameters at the EtherCAT bus