1.107/2000Revised edition for Drive PLCs as of software version V1.0
2.107/2001Revised edition for Drive PLCs as of software version V2.0
3.001/2003Revised edition for Drive PLCs as of software version V6.0
4.003/2005Revised edition for Drive PLCs as of software version V7.0
5.012/2007Revised edition for Drive PLCs as of software version V8.0
6.009/2013General corrections
Important note:
The software is supplied to the user as described in this document. Any risks resulting from its quality or use remain the responsibility of the
user. The user must provide all safety measures protecting against possible maloperation.
We do not take any liability for direct or indirect damage, e.g. profit loss, order loss or any loss regarding business.
2013 Lenze Automation GmbH
No part of this documentation may be copied or made available to third parties without the explicit written approval of Lenze Automation GmbH.
All information given in this documentation has been carefully selected and tested for compliance with the hardware and software described.
Nevertheless, discrepancies cannot be ruled out. We do not accept any responsibility or liability for any damage that may occur. Required
correction will be included in updates of this documentation.
All product names mentioned in this documentation are trademarks of the corresponding owners.
This Manual describes the system block functions which can be selected and parameterised in the
control configuration of the Drive PLC Developer Studio (DDS) for the Drive PLC.
1.1.1Conventions used in this Manual
This Manual uses the following conventions to distinguish between different types of information:
Information typeDistinction (in text)Example
System block nameboldThe SB DIGITAL_IO...
System (block) variable identifieritalicsThe input DIGIN_bIn1_b...
Drive PLC
Tip!
Information about the conventions used for variable names of Lenze system blocks, function blocks
and functions can be obtained from the appendix of the DDS online documentation "Introduction
into IEC 61131−3 programming". The conventions ensure universal and uniform naming and support
the readability of PLC programs.
1.1.2System block descriptions
All system block descriptions given in this Manual have the same structure:
Headline with SB identifier
SB function and node number
Short description of the SB and its most important features
System block chart including all corresponding variables
Input variables
Output variables
Table giving information about input and output variables:
Identifier
Data type
Signal type
Address
Display code
Display format
Info
l
Detailed SB description
DrivePLC DE 6.0
1−1
Page 8
Drive PLC
Preface and general information
1.1.3Pictographs in this Manual
Pictographs
used
Warning of material
damage
More notesTip!
1.1.4Terminology used
TermIn this Manual used for
AIFAutomation interface
DDSDrive PLC Developer Studio
FIFFunction interface
GDCGlobal Drive Control (parameter setting program from Lenze)
SBSystem block
System busSystem bus (CAN): Lenze standard bus system similar to CANopen
Signal words
Stop!Warns of potential damage to material.
Note!
Possible consequences if disregarded:
Damage of the PLC or its environment
Indicates a tip or note.
.
1−2
DrivePLC DE 6.0
l
Page 9
1.2System block introduction
For a long time, Lenze has followed the principle of describing controller functions with the aid of
function blocks (FBs). This principle can also be found in the IEC 61131−3 standard.
Functions which can be used as software functions in projects are stored in function libraries
as function blocks or functions.
In addition, quasi−hardware functions are available as system blocks (SBs).
1.2.1System block principle
The system−block principle can be explained by means of a PLC system in a rack:
The rack contains the CPU, digital I/Os, analog I/Os, counter card, positioning card, etc. as
additional cards:
Drive PLC
Preface and general information
CPU
The CPU can directly access the additional cards and process the resulting information.
Additional cards have fixed addresses for access.
With Lenze PLC controllers, system blocks can be compared with these additional cards!
System blocks are special (hardware) function blocks permanently integrated into the
run−time system of the PLC.
SBs can address real hardware.
SBs are assigned/identified through so−called node numbers. (^ 1−4)
SB inputs and outputs are accessed via system variables or absolute memory addresses.
(^ 1−5)
Inputs/outputs are always classified from the program’s point of view. (^ 1−6)
Required SBs must be explicitly linked to the project via the control configuration of DDS.
(^ 1−7)
xxxxxx
x = Additional cards
l
DrivePLC DE 6.0
1−3
Page 10
Drive PLC
Preface and general information
1.2.2Node numbers
The system blocks of the Drive PLC carry the following node numbers:
101 CAN_ManagementSystem bus (CAN) management
102 CAN_SynchronizationSystem bus (CAN) synchronisation
111 FIF_CAN_ManagementSystem bus (CAN) management, CAN−I/O1 FIF module
141 FCODE_FreeCodesFree codes
150 AD_ChannelsAD channels (24 V supply voltage)
151 SYSTEM_FLAGSSystem flags
161 AIF_IO_ManagementAutomation interface management
200 DIGITAL_IO_FIFDigital inputs/outputs, Standard I/O
201 ANALOG_IO_FIFAnalog inputs/outputs, Standard I/O
202 FIF_CAN_DIGITAL_INDigital input, CAN−I/O
1
SBs for system bus (CAN) are described in the System bus (CAN) for Lenze PLCs Manual.
The node number is part of an absolute SB address (see chapter 1.2.4). (^ 1−5)
System bus (CAN)
System bus (CAN), CAN−I/O1FIF module
Automation interface
FIF module
FIF module
FIF module
1
1
1
1−4
DrivePLC DE 6.0
l
Page 11
1.2.3Access via system variables
You can use the system variables of a system block in your project after the system block has been
integrated into the control configuration of the DDS.
Open the input assistance in the DDS editors via <F2> to get a listing of all available system
variables:
Drive PLC
Preface and general information
This Manual lists the system variables in the table for the corresponding system block:
VariableData typeSignal typeAddressDisplay
DIGIN_bIn1_b
.........
DIGIN_bIn8_b%IX1.0.7C0443/8
Example: Table with SB DIGITAL_IO inputs of the Drive PLC
BoolBinary
%IX1.0.0C0443/1
1.2.4Access via absolute addresses
System block inputs and outputs can also be accessed via absolute addresses according to the
IEC61131−3 standard:
For inputs use:For outputs use:
%IXa.b.c%QXa.b.c
This Manual lists the absolute addresses in the table for the corresponding system block:
VariableData typeSignal typeAddressDisplay
DIGIN_bIn1_b
.........
DIGIN_bIn8_b%IX1.0.7C0443/8
Example: Table with SB DIGITAL_IO inputs of the Drive PLC
BoolBinary
%IX1.0.0C0443/1
code
code
Display
format
bin
Display
format
bin
Note
a = node number
b = word address
c = bit address
Note
l
DrivePLC DE 6.0
1−5
Page 12
Drive PLC
Preface and general information
1.2.5Definition of inputs/outputs
The application program is connected with the hardware by linking system blocks with program
organisation units (POUs):
SB-OutputSB-Input
POU-InputPOU-Output
SB
POU
Fig. 1−1Principle: Linking of system blocks with a program organisation unit (POU)
Tip!
Inputs and outputs are always classified from the program’s point of view.
Logic SB inputs are hardware outputs of the PLC.
Logic SB outputs are hardware inputs of the PLC.
Example: System block DIGITAL_IO of the 9300 Servo PLC
If you want to use the digital input 1 and the digital output 1 of the 9300 Servo PLC, proceed as
follows:
1. Link the SB DIGITAL_IO explicitly with the DDS control configuration.
2. Access to digital input 1:
Assign the system variable DIGIN_bIn1_b to a POU input.
3. Access to digital output 1:
Assign the system variable DIGOUT_bOut1_b to a POU output.
POU
POU-OUT
SB-IN
SB-OUT
POU-IN
0
1
DCTRL -X5/28
DIGIN_bCInh_b
DIGIN_bIn1_b
DIGIN_bIn2_b
DIGIN_bIn3_b
DIGIN_bIn4_b
DIGIN_bIn5_b
C0443
DIGIN
X5
28
E1
C0114/1...5
E2
E3
1
E4
E5
DIGOUT_bOut1_b
DIGOUT_bOut2_b
DIGOUT_bOut3_b
DIGOUT_bOut4_b
SB
(^ 1−7)
C0444/1
C0444/2
C0444/3
C0444/4
DIGOUT
C0118/1...4
0
1
1
X5
A1
A2
A3
A4
Fig. 1−2Principle: Linking of the 9300 Servo PLC system block DIGITAL_IO with a POU
Tip!
According to the IEC61131−3 standard, only one copy of the digital input 1 and the digital output 1
may be transferred.
1−6
DrivePLC DE 6.0
l
Page 13
1.2.6Linking of system blocks with DDS
The system blocks required must be explicitly linked to the project via the control configuration of the
DDS.
The control configuration is placed as an object in the Resources tab in the Object organiser.
The control configuration lists all inputs and outputs including the identifiers of the
corresponding I/O variable, the absolute address and the data type of the I/O variable for
every linked SB.
Drive PLC
Preface and general information
Identifier of the I/O variable
Absolute address
Data type of the I/O variable
Fig. 1−3Example: Control configuration for 9300 Servo PLC with linked SB DIGITAL_IO
Tip!
The control configuration provides a context menu for adding and deleting SBs which can be
activated via the right mouse key.
l
DrivePLC DE 6.0
1−7
Page 14
Drive PLC
Preface and general information
1.2.7Signal types and scalings
Most inputs and outputs of Lenze function blocks/system blocks can be assigned to a certain signal
type. We distinguish between digital, analog, position and speed signals.
The identifier of the corresponding input/output variable has an ending (starting with an underscore).
It indicates the signal type.
All variables assigned to byte 1/2 can be freely used in the PLC program.
9300 Servo PLC:
In addition to signals such as IMP and CINH, the SB status word DCTRL contains some freely
assignable signals which can be overwritten via the variables DCTRL_bStateB..._b of the
SB DCTRL. More detailed information about the SB DCTRL can be found in the
"9300 Servo PLC" Online Manual.
The control signals for the quick stop (QSP), DISABLE, CINH, TRIP−SET and TRIP−RESET
function can also be read and processed via the following variables:
– AIF1_bCtrlQuickstop_b
– AIF1_bCtrlDisable_b
– AIF1_bCtrlInhibit_b
– AIF1_bCtrlTripSet_b
– AIF1_bCtrlTripReset_b
The remaining 11 bits (AIF1_bCtrlB..._b) can be used to control additional functions/function
blocks.
L
DrivePLC DE 6.0
2−5
Page 20
Drive PLC
System blocks
2.2AIF1_IO_AutomationInterface (node number 41)
2.2.2Outputs_AIF1
This SB is used as interface for output signals (e.g. setpoints/actual values) to attached fieldbus
modules (e.g. INTERBUS, PROFIBUS−DP).
The process image is
– created every 10 ms.
– created in an interval task within the time set for this task.
– read at the beginning of the task and written at its end.
Tip!
Please observe the Operating Instructions for the attached fieldbus module.
The 8 bytes of user data to be sent can be written via several variables of different data types at the
same time. Data can therefore be transferred as
All variables assigned to byte 1/2 can be freely used in the PLC program.
9300 Servo PLC:
Connect the variable DCTRL_wStat of the SB DCTRL with the variable AIF1_wDctrlStat to
transfer the status word of the SB DCTRL via user data bytes 1 and 2.
In addition to signals such as IMP and CINH, the SB status word DCTRL contains some freely
assignable signals which can be overwritten via the variables DCTRL_bStateB..._b of the
SB DCTRL. More detailed information about the SB DCTRL can be found in the
"9300 Servo PLC" Online Manual.
L
DrivePLC DE 6.0
2−7
Page 22
Drive PLC
System blocks
2.2AIF1_IO_AutomationInterface (node number 41)
Tip!
Avoid simultaneous overwriting via different variable types to ensure data consistency.
Thus bytes 5 and 6 should only be overwritten
– by the variable AIF1_dnOutD1_p,
– by the variable AIF1_nOutW2_a or
– by the variables AIF1_bFDO0_b ... AIF1_bFDO15_b.
2−8
DrivePLC DE 6.0
L
Page 23
Drive PLC
System blocks
2.3AIF2_IO_AutomationInterface (node number 42)
2.3AIF2_IO_AutomationInterface (node number 42)
2.3.1Inputs_AIF2
Automation interface (node number 42)
This SB is used as an interface for input signals (e.g. setpoints/actual values) from attached fieldbus
modules (e.g. INTERBUS, PROFIBUS−DP).
The process image is
– created in the cyclic task in a fixed time interval of 10 ms.
– created in an interval task within the time set for this task.
– read at the beginning of the task and written at its end.
Tip!
Please observe the Operating Instructions for the attached fieldbus module.
The 4 first bytes of the received 8 bytes of user data are assigned to several variables of different data
types simultaneously. Thus the data can be evaluated in the PLC program as
This SB is used as an interface for output signals (e.g. setpoints/actual values) to attached fieldbus
modules (e.g. INTERBUS, PROFIBUS−DP).
The process image is
– created in the cyclic task in a fixed time interval of 10 ms.
– created in an interval task within the time set for this task.
– read at the beginning of the task and written at its end.
Tip!
Please observe the Operating Instructions for the attached fieldbus module.
The first 4 bytes of the 8 bytes of user data to be sent can be written to via several variables of different
data types at the same time. Data can therefore be transferred by the PLC program as
Avoid simultaneous overwriting via different variable types to ensure data consistency.
Thus bytes 1 and 2 should only be written to
– by the variable AIF2_dnOutD1_p,
– by the variable AIF2_nOutW1_a or
– by the variables AIF2_bFDO0_b ... AIF2_bFDO15_b.
2−12
DrivePLC DE 6.0
L
Page 27
Drive PLC
System blocks
2.4AIF3_IO_AutomationInterface (node number 43)
2.4AIF3_IO_AutomationInterface (node number 43)
2.4.1Inputs_AIF3
This SB is used as an interface for input signals (e.g. setpoints/actual values) from attached fieldbus
modules (e.g. INTERBUS, PROFIBUS−DP).
The process image is
– created in the cyclic task in a fixed time interval of 10 ms.
– created in an interval task within the time set for this task.
– read at the beginning of the task and written at its end.
Tip!
Please observe the Operating Instructions for the attached fieldbus module.
The 4 first bytes of the received 8 bytes of user data are assigned to several variables of different data
types simultaneously. Thus the data can be evaluated in the PLC program as
This SB is used as an interface for output signals (e.g. setpoints/actual values) to attached fieldbus
modules (e.g. INTERBUS, PROFIBUS−DP).
The process image is
– created in the cyclic task in a fixed time interval of 10 ms.
– created in an interval task within the time set for this task.
– read at the beginning of the task and written at its end.
Tip!
Please observe the Operating Instructions for the attached fieldbus module.
The first 4 bytes of the 8 bytes of user data to be sent can be written to via several variables of different
data types at the same time. Data can therefore be transferred by the PLC program as
AIF_bCe0CommErr_b
AIF_bFieldBusStateBit0_b%IX161.1.0Error number − bit 0
AIF_bFieldBusStateBit1_b%IX161.1.1Error number − bit 1
AIF_bFieldBusStateBit2_b%IX161.1.2Error number − bit 2
AIF_bFieldBusStateBit3_b%IX161.1.3Error number − bit 3
AIF_bFieldBusStateBit4_b%IX161.1.4Error number − bit 4
AIF_bFieldBusStateBit5_b%IX161.1.5Error number − bit 5
AIF_bFieldBusStateBit6_b%IX161.1.6Error number − bit 6
AIF_bFieldBusStateBit7_b%IX161.1.7Error number − bit 7
AIF_bFieldBusStateBit8_b%IX161.1.8Error number − bit 8
AIF_bFieldBusStateBit9_b%IX161.1.9Error number − bit 9
AIF_bFieldBusStateBit10_b%IX161.1.10Error number − bit 10
AIF_bFieldBusStateBit11_b%IX161.1.11Error number − bit 11
AIF_bFieldBusStateBit12_b%IX161.1.12Error number − bit 12
AIF_bFieldBusStateBit13_b%IX161.1.13Error number − bit 13
AIF_bFieldBusStateBit14_b%IX161.1.14Error number − bit 14
AIF_bFieldBusStateBit15_b%IX161.1.15Error number − bit 15
Boolbinary
%IX161.0.0Communication error "CE0"
format
Notes
Codes
CodeLCD
C0126 MONIT CE03
C2121 AIF: state
Possible settings
Lenze Selection
0TRIP
2Warning
3Off
G
0{dec}255
Decimal value is bit−coded:
Bit 0XCAN1_IN monitoring time
Bit 1XCAN2_IN monitoring time
Bit 2XCAN3_IN monitoring time
Bit 3XCAN bus−off
Bit 4XCAN operational
Bit 5XCAN pre−operational
Bit 6XCAN warning
Bit 7Internally assigned
Info
Configuration for communication
error "CE0" with automation
interface
AIF−CAN: Status
Detailed information can be
found in the documentation for
the corresponding
communication module.
2−18
DrivePLC DE 6.0
L
Page 33
Drive PLC
System blocks
2.5AIF_IO_Management (node number 161)
2.5.2Outputs_AIF_Management
This SB transfers commands and messages to a fieldbus module connected to an automation
interface (AIF).
For this purpose C2120 provides a control word. The commands are specified as numbers. Some
command numbers are universally applicable for all fieldbus modules, others apply only for special
modules. The total number of commands available can amount to up to 16.
Tip!
Read the documentation for the attached fieldbus module.
You can use I2 ... I4 as real interrupt inputs. The references to the hardware interrupt inputs are in the
task configuration. Response time of the interrupt task: < 250 s.
More detailed information about Drive PLC terminal strips/control connections can be found in the
corresponding Mounting Instructions!
2−24
DrivePLC DE 6.0
L
Page 39
Drive PLC
System blocks
2.9DIGITAL_IO (node number 1)
2.9.2Outputs_DIGITAL (digital outputs)
This SB conditions digital signals and outputs them at terminals O1 ... O4.
If the user program has not been started, all outputs are defined as "LOW" after switch−on.
More detailed information about Drive PLC terminal strips/control connections can be found in the
corresponding Mounting Instructions!
L
DrivePLC DE 6.0
2−25
Page 40
Drive PLC
System blocks
2.10FCODE_FreeCode (node number 141)
2.10FCODE_FreeCode (node number 141)
Free codes
At Lenze, controller parameters are called codes. The PLC can be adapted to your application
without additional programming by changing codes.
This SB provides several variables which directly read "free" PLC codes and processes them further
in the PLC program or the codes can be written by the PLC program.
FCODE_FreeCodes
C0471
C0472/1
...
C0472/20
C0473/1
...
C0473/10
C0474/1
...
C0474/5
C0475/1
C0475/2
C0135
FCODE_wC135
FCODE_bC135Bit0_b
FCODE_bC135Bit15_b
FCODE_wC150
FCODE_bC150Bit0_b
FCODE_bC150Bit15_b
...
...
DWORD
TO
BIT/BOOL
% TO INT
INT
DINT
INT
INT
Input &
Output
WORD
16 Bit
WORD
16 Bit
FCODE_bC471Bit0_b
...
FCODE_bC471Bit31_b
FCODE_nC472_1_a
...
FCODE_nC472_20_a
FCODE_nC473_1_a
...
FCODE_nC473_10_a
FCODE_dnC474_1_p
...
FCODE_dnC474_5_p
FCODE_nC475_1_v
FCODE_nC475_2_v
C0135
FCODE_bC135Bit0_b
...
FCODE_bC135Bit15_b
C0150
Fig. 2−16FCODE_FreeCodes
Code ð PLC program
The PLC codes listed in Fig. 2−16 in boxes on the left−hand side are
directly assigned to the variables listed on the right−hand side.
These variables can only be read by the PLC program.
See chapter 2.10.1, "Inputs_FCODE"
Codes are converted into variables (and vice versa) according to a fixed routine.
In the code table, you can find the options that can be set and the Lenze settings. ^ 8−16
Tip!
Code C0135 can be read and written via the variables FCODE_bC135Bit0_b ...
FCODE_bC135Bit15_b (input & output).
2−26
Cxxxx
FCODE_...
DrivePLC DE 6.0
PLC program ð Code
FCODE_...
Cxxxx
The variables listed in Fig. 2−16 on the left−hand side are assigned to
the codes listed in boxes on the right−hand side.
These codes can only be read from "outside".
See chapter 2.10.2, "Outputs_FCODE"
default = 0
Also output variables
(see table below)
default = 0
default = 0.00 %
default = 0
C0473/1,2 = 1
Example
It is possible to enter a percentage [%] under PLC code C0472/1 by using, for instance, the keypad.
This value is directly assigned to the variable FCODE_nC472_1_a (data type "Integer") and can be
processed further in the PLC program.
System flags are global variables which are permanently integrated into the run−time system. They
include functions that facilitate programming.
2.11.1Inputs SYSTEM_FLAGS
The following system flags are included in the DrivePLC:
VariableData typeAddressNotes
SYSTEM_bClock01Hz
SYSTEM_bClock1Hz%IX151.0.81.0 Hz system clock
SYSTEM_bClock10Hz%IX151.1.010 Hz system clock
SYSTEM_bClock0100Hz%IX151.1.8100 Hz system clock
SYSTEM_bTogCycleTask%IX151.2.0Toggle flag cyclic task
SYSTEM_b1LoopCyclicTask%IX151.2.8First loop cyclic task
SYSTEM_b1LoopTask2%IX151.3.0First loop task ID2
SYSTEM_b1LoopTask3%IX151.3.8First loop task ID3
SYSTEM_b1LoopTask4%IX151.4.0First loop task ID4
SYSTEM_b1LoopTask5%IX151.4.8First loop task ID5
SYSTEM_b1LoopTask6%IX151.5.0First loop task ID6
SYSTEM_b1LoopTask7%IX151.5.8First loop task ID7
SYSTEM_b1LoopTask8%IX151.6.0First loop task ID8
SYSTEM_b1LoopTask9%IX151.6.8First loop task ID9
SYSTEM_nTaskInterval
SYSTEM_nTaskID%IW151.8ID−number of current task
Bool
Integer
%IX151.0.00.1 Hz system clock
%IW151.7Interval of current task
Tip!
The system variables are not generated in simulation mode.
SYSTEM_bClockxHz
These system flags output a fixed clock pulse with an equal pulse/pause ratio.
The flag is toggled in real time.
When you use this system flag, take care with the frequency used for polling the flag (aliasing
effect). You should use at least twice the toggle frequency.
Note!
The system flags SYSTEM_bClockxHz must not be used to trigger event−controlled tasks. Use
time−controlled tasks for this.
Example:
You would like to use the system flag SYSTEM_bClock100Hz as a clock for a counter.
The pulse/pause ratio is 5 ms/5 ms.
2−28
To avoid an aliasing effect, the counter must always be polled with an INTERVAL TASK < 5 ms.
DrivePLC DE 6.0
L
Page 43
Drive PLC
System blocks
2.11SYSTEM_FLAGS (system flags, node number 151)
SYSTEM_bTogCycleTask
This system flag toggles with the cyclic task:
1. cycle: FALSE
2. cycle: TRUE
3. cycle: FALSE
4. cycle: TRUE
etc.
SYSTEM_nTaskInterval
This system flag indicates the interval of the running task with a resolution of 0.25 ms.
If, for instance, a 10−ms task is processed, the system flag indicates "40"
(40 x 0.25 ms = 10 ms).
If a task different from an interval task is processed, the system flag indicates "0".
SYSTEM_nTaskID
This system flag indicates the task ID of the running task.
SYSTEM_b1LoopCyclicTask/SYSTEM_b1Loop Task X
These system flags are TRUE only once during the first cycle of a task.
After the first cycle, the flags will be set to FALSE.
The only way to reset the status to TRUE is to reset the program in the PLC.
2.11.2Outputs SYSTEM_FLAGS
VariableData typeAddressNotes
SYSTEM_bPLCResetAndRunBool%QX151.0.0This system flag carries out a reset with an immediate restart of the Drive PLC:
After the reset, the flag is deleted and the restart carried out.
L
DrivePLC DE 6.0
2−29
Page 44
Drive PLC
System blocks
2.12DCTRL_DriveControl (node number 121)
2.12DCTRL_DriveControl (node number 121)
This system block is only implemented as of software version V 8.x.
The system block DCTRL_DriveControl is used as interface between application and operating
system for device control:
TRIP−SET (^ 2−35))
TRIP−RESET (^ 2−35)).
In addition, the SB indicates the DrivePLC status for diagnostics purposes.
The process image is created in a fixed system task (interval: 2 ms).
Tip!
The inputs of the SB DCTRL_DriveControl only influence the internal device control.
If, for instance, a TRIP is activated by the operating system or the function block L_FWM() the
application program is not be stopped.
However, if a TRIP is activated as a result of a task overflow the application program of the PLC is
stopped as well!
2−30
DrivePLC DE 6.0
L
Page 45
Drive PLC
System blocks
2.12DCTRL_DriveControl (node number 121)
DCTRL_DriveControl
DCTRL_bTripSet_b
DCTRL_bTripReset_b
C0043
FCODE_wC135
FCODE_bC135Bit0_b
FCODE_bC135Bit10_b
FCODE_bC135Bit11_b
FCODE_bC135Bit15_b
C0135
...
...
.10
or
TRIP SET
.11
or
TRIP RESET
...
...
or
0
...
10
11
...
15
DCTRL_bFail_b
DCTRL_bTrip_b
DCTRL_bWarn_b
DCTRL_bMeld _b
DCTRL_bExternalFault_b
DCTRL_wFaultNumber
C0135
FCODE_bC150Bit0_b
...
FCODE_bC150Bit6_b
FCODE_bC150Bit14_b
FCODE_bC150Bit15_b
DCTRL_bFail _b
DCTRL_bTrip _b
Gerätestatus
Device status
DCTRL_bWarn _b
DCTRL_bMeld _b
DCTRL_bExternalFault _b
...
PLC Stop
Gerätestatus
Device status
DCTRL_bWarn _b
DCTRL_bMeld _b
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0
...
6
7
8
9
10
11
12
13
14
15
DCTRL_wStat
C0150
Fig. 2−17System block "DCTRL_DriveControl" (The SB outputs are the inputs of the system control)
Tip!
The information PLC stop, device status, message and warning is written in a 2−ms system task
interval to bits 7 ... 13 of the variable FCODE_wC150 or of code C0150.
Therefore, only use C0150 as diagnostics code (reading) and do not write the system variable
FCODE_wC150, but only its bit−coded inputs FCODE_bC150Bit0_b, FCODE_bC150Bit6_b,
FCODE_bC150Bit14_b and FCODE_bC150Bit15_b.
Additional information can be found in the description of the system block FCOCD_FreeCode
(^ 2−26).
L
DrivePLC DE 6.0
2−31
Page 46
Drive PLC
System blocks
2.12DCTRL_DriveControl (node number 121)
2.12.1Inputs_DCTRL
System variables
VariableData typeSignal typeAddress
DCTRL_bFail_bBoolbinary%IX121.0.0−−
DCTRL_bTrip_bBoolbinary%IX121.0.2−−
DCTRL_bWarn_bBoolbinary%IX121.0.12−−
DCTRL_bMeld_bBoolbinary%IX121.0.13−−
DCTRL_bExternalFault
_b
DCTRL_wStatWORD−%IW121.0−−
DCTRL_wFaultNumbe
r
Boolbinary%IX121.0.15−−
WORD−%IW121.2−−Error number from C0168
Display
code
Display
format
Notes
Status word bit−coded
TRUE = Error active
Status word bit−coded
TRUE = Error active (TRIP or FQSP
active)
Status word bit−coded
TRUE = Warning active
Status word bit−coded
TRUE = Message active
Status word bit−coded
TRUE = External error
Status word with device status
(bit 8 ... 11, see below)
Tip!
Unlike ECS and SPLC, the binary signals of the SB DCTRL are on DCTRL_wStat!
Device status: Bits 8 ...11 of DCTRL_wStat show the DrivePLC status binary coded:
The assignment of the status word bits marked as "not assigned" depends on the AIF module used
and the set transfer profile (e.g.: DRIVECOM).
2−34
DrivePLC DE 6.0
L
Page 49
Drive PLC
System blocks
2.12DCTRL_DriveControl (node number 121)
2.12.3TRIP−SET
This function sets the control system to the Error status and indicates "External error" ("EEr")
Control word C0135 / FCODE_wC135 / FCODE_b135Bit10_b
Variable DCTRL_bTripSet_b
The response to a TRIP can be set under C0581:
Codes
CodeLCD
C0581 MONIT EEr0 or
Tip!
The inputs for external error activation are polled in a system task every 2 ms.
The "External error" ("EEr") function is available as of operating system version V8.0. When the
function is activated (C0581 < 3), please note that the "EEr" error is active when writing bit 10 = TRUE
of code C0135 or of FCODE_wC135.
2.12.4TRIP−RESET
This function resets a current TRIP when the cause of the error has been removed.
Variable DCTRL_bTripReset_b
Control word C0135 / FCODE_wC135 / FCODE_b135Bit11_b
The function is only executed through a FALSE−TRUE transition of the indicated signals. The
transition is polled in a system task every 2 ms.
2.12.5TRIP status (DCTRL_bExternalFault_b)
If a TRIP is activated via the variable DCTRL_bTripSet_b or C0135/bit10, the variable
DCTRL_bExternalFault_b is set to TRUE. DCTRL_bExternalFault_b is reset to FALSE as soon as the
error source is reset.
L
DrivePLC DE 6.0
2−35
Page 50
Drive PLC
System blocks
2.13PWRUP_PowerUpControl (node number 171)
2.13PWRUP_PowerUpControl (node number 171)
This system block is only implemented as of software version V 8.1.
If the system block PWRUP_PowerUpControl is integrated into the control configuration, it can
avoid a U15 TRIP in the event of a short mains voltage dip.
const.
PWRUP_PowerUpControl
PWRUP_bWaitFor24V_b
PWRUP_wMaxDelayTimeFor24V_b
Fig. 2−18PWRUP_PowerUpControl
0
1
24 V
PLC init
Fig. 2−19Drive PLC behaviour in the event of a short dip of the 24−V−supply voltage
Tip!
This behaviour can only be activated if the control bit and the control word are contained in the
system POU "PLC_ColdStart".
If the system block is activated, a U15 error is indicated as warning in the history buffer
2−36
DrivePLC DE 6.0
L
Page 51
Drive PLC
System blocks
2.13PWRUP_PowerUpControl (node number 171)
2.13.1Outputs_PWRUP
System variables
VariableData typeSignal typeAddress
PWRUP_bWaitFor24V
_b
PWRUP_wMaxDelayTi
meFor24V
Boolbinary%QX171.1.0−−
WORD−%QW171.0−−
Display
code
Display
format
Notes
TRUE: After initialisation, wait and
see if a sufficient supply voltage is
applied again (>17.5 V)
Maximum waiting time in ms; U15
TRIP is activated unless a supply
voltage of at least 17.5 V is
applied after this time.
L
DrivePLC DE 6.0
2−37
Page 52
Drive PLC
System blocks
2.13PWRUP_PowerUpControl (node number 171)
2−38
DrivePLC DE 6.0
L
Page 53
3Standard I/O FIF module
The Standard I/O FIF module extends the Drive PLC by the following inputs and outputs:
Signal type Number SBNode number Info
Inputs
Outputs
Tip!
Observe the installation kit for the Standard I/O FIF module!
This SB can be used as a monitor output. Internal signals can be given out as voltage signals via
terminal 62 of the Standard I/O FIF module and used, e.g. as display or setpoint values for following
drives.
Digital inputs I15, I16
Digital outputs O5 ... O8
Analog inputs AI4, AI5
GND, reference potential
DC supply voltage (switched via X1/+O24 at the Drive PLC)
X3
X4
L
DrivePLC DE 6.0
7−1
Page 70
Drive PLC
System blocks − Extension Board 3
7.1ANALOG4_IO_EB3 (node number 14)
7.1ANALOG4_IO_EB3 (node number 14)
7.1.1Inputs_ANALOG4 (analog input 4 of extension board 3)
This SB is the interface for analog signals via terminal AI4, A of the extension board 3.
C0425 = 3, this corresponds to 2048 increments/rev.
DFIN_nIn_v[rpm] + 200000Hz @
60
60
2048
2
@
15000
+ 5859rpm
14
L
DrivePLC DE 6.0
7−5
Page 74
Drive PLC
System blocks − Extension Board 3
7.3DFIN_IO_DigitalFrequency (node number 21)
Signal adaptation
Finer resolutions can be achieved by adding a following FB (e.g. L_CONVV from LenzeDrive.lib):
L_CONVV3
X3
C0425
MP
0
I1
1
C0431
0
1
C0428 C0429
Fig. 7−5Encoder input (DFIN_IO_DigitalFrequency) with following FB L_CONVV for normalisation
DFIN_IO_DigitalFrequency
C0426
TP/MP
-Ctrl
DFIN_bTPReceived_b
DFIN_dnIncLastScan_p
DFIN_nIn_v
nIn_v
nNumerator
nDenominator
L_CONVV
nOut_v
nOut_a + f[Hz] @
60
IncrementsfromC0425
nNumerator
@
nDenominator
@
15000
14
2
7−6
DrivePLC DE 6.0
L
Page 75
Drive PLC
System blocks − Extension Board 3
7.3DFIN_IO_DigitalFrequency (node number 21)
7.3.1.2Connection of incremental encoders to terminal X3
Stop!
Observe connection voltage of the incremental encoder used!
Incremental encoder with TTL level
l = max. 50 m
V
cc5_E
GND
B
B
A
A
Z
Z
X3
mm
1
0.14
2
3
4
5
1.0
6
7
0.14
8
9
2
AWG
26
17
26
Fig. 7−6Connection of incremental encoder with TTL level to terminal X3
Incremental encoder
Cable cross−sections to be used
Assignment of the Sub−D connector (X3)
PIN123456789
SignalBAAV
cc5_E
Incremental encoder with HTL level
l = max. 50 m
Fig. 7−7Connection of incremental encoder with HTL level to terminal X3
GNDZZ−B
X3
mm
2
AWG
1
0.14
2
26
3
4
5
1.0
17
6
7
0.14
8
26
V
GND
B
B
A
A
cc5_E
Z
Z
9
L
Incremental encoder
Cable cross−sections to be used
Supply voltage for the incremental encoder
Assignment of the Sub−D connector (X3)
PIN123456789
SignalBAA+5 VGNDZZ−B
DrivePLC DE 6.0
7−7
Page 76
Drive PLC
System blocks − Extension Board 3
7.3DFIN_IO_DigitalFrequency (node number 21)
Tip!
You can connect incremental encoders with HTL level that supply signals A and B only, to PIN 2 and
PIN 9. The inputs at PIN 3 and PIN 1 must then be connected to the supply voltage of the incremental
encoder.
The connection is as shown in the figures:
Use twisted pair cables and screened pair cables.
Connect the screen at both ends.
Do not change the cable cross−sections indicated.
7.3.1.3Touch probe (TP)
Process: The current angle value (encoder input value) is saved by a quick interrupt in the operating
system when a signal changes at the TP activating input (e.g. X3/I1).
j
Fig. 7−8Function chart of a TP
Time−equidistant start of an interval task
Phase−angle signal
Touch probe configuration
CodeLCD
C0428 DFIN TP sel.0Touch probe selection
C0429 TP delay0Touch probe delay
C0431 DFIN TP EDGE0Touch probe activation
TP
Possible settings
LenzeSelection
0Touch probe via zero pulse
1Touch probe via digital input X3/I1
−32767{1 inc}32767
0Activation with positive signal
1Activation with negative signal
DFIN_dnIncLastScan_p
IMPORTANT
Compensation of delay times
of TP signal source at X3/I1
For touch probe via digital
input X3/I1
(C0428 = 1)
7−8
DrivePLC DE 6.0
L
Page 77
Drive PLC
System blocks − Extension Board 3
7.3DFIN_IO_DigitalFrequency (node number 21)
Functional sequence
1. The TP is signal−controlled via the digital input X3/I1 of the basic unit or a zero pulse (only if an
encoder is connected).
2. If a TP has occurred, DFIN_bTPReceived_b is set = TRUE.
3. After the start of the task, DFIN_dnIncLastScan_p indicates the number of increments [inc]
counted since the TP.
4. Following, DFIN_bTPReceived_b = FALSE is set.
Note!
It is necessary that all three outputs (DFIN_nIn_v, DFIN_bTPReceived_b and
DFIN_dnIncLastScan_p) are processed in the task even if just one signal is required.
DFIN_nIn_v
The value DFIN_nIn_v is scaled in increments per millisecond.
(INT) 16384 corresponds to 15000 rpm. See chapter 1.2.7, "Signal types and normalisations".
(^ 1−8)
For every task in which DFIN_nIn_v is used, the operating system creates an individual counter
that is reset after every start of the task (task−internal process image).
For reliable TP generation, DFIN_nIn_v must not be used in the PLC_PRG.
Example (DFIN_nIn_v in a 10 ms task):
When the 10 ms task starts, the value of the integrator is stored in a local area of the task and
the integrator is reset. The value in the local area gives an average value in increments per 1
ms.
If a position value is to be derived from this value, then it must be multiplied by
SYSTEM_nTaskInterval / 4 to get the result in increments per 10 ms, as in the example.
Example: In a 1 ms task SYSTEM_nTaskInterval is 4 (4 x 250 s = 1 ms)
For Lenze FBs, this process has already been implemented in the FBs.
Outputsdigital6 Free outputs24 V DC / max. 1 A each output
Modules for function interfaces (FIF)
Inputs/outputsNumber Description
Standard I/O FIF module
Inputs
Outputs
CAN−I/O FIF module
Inputs
OutputsSystem bus (CAN)
digital5 Free inputs24 V DC / 8 mA each input
analog1 Free input (10 bit + sign)10 V
digital1 Free output24 V DC / max. 1 A
analog1 Free output (10 bit + sign)10 V / max. 2 mA
digital1 Free input24 V DC / 8 mA
3 System bus (CAN), free inputs
8−2
DrivePLC DE 6.0
L
Page 83
Drive PLC
Appendix
8.2Extendability/networking
System bus (CAN)
InterfaceAvailable CAN objects
Integrated system bus interface
Automation interface (AIF)
with corresponding fieldbus module
(e.g. 2175)
Function interface (FIF)
with corresponding function module
(e.g. CAN−I/O system bus)
PDOsCAN1_IN/CAN1_OUT
CAN2_IN/CAN2_OUT
CAN3_IN/CAN3_OUT
SDOs
SDO1 (parameter data channel 1)
SDO2 (parameter data channel 2)
L_ParRead/L_ParWrite functionality
Sync telegram
Synchronisation of the internal time basis by receiving sync telegrams
Free CAN objects
CanDSx driver for mapping indices to codes and for bus monitoring functions "Heartbeat"
and "Node Guarding" (see Manual "Function library LenzeCanDSxDrv.lib").
PDOsXCAN1_IN/XCAN1_OUT
XCAN2_IN/XCAN2_OUT
XCAN3_IN/XCAN3_OUT
SDOsXSDO1 (parameter data channel 1)
XSDO2 (parameter data channel 2)
XSync telegram
AifParMap driver for mapping code accesses via AIF to other codes (see Manual "Function
Detailed information about the system bus (CAN) can be found in the Manual "System bus (CAN) for
Lenze PLCs"
L
DrivePLC DE 6.0
8−3
Page 84
Drive PLC
Appendix
8.3Memories
8.3Memories
The below table gives you an overview of the memories available:
MemorySizeInfo
ROM
Program memory256 kbytesRe−written whenever the program is downloaded.
RAM
PLC data memory
Application data memory2 blocks
E2PROM−buffered memory
Retain memory200 bytesSee subsection 8.3.1
Tip!
Function library LenzeMemDrv.lib includes functions for read/write access to the additional backup
memory (application data memory) of the PLC.
Additional information can be found in the Manual for function library LenzeMemDrv.lib.
10 kbyte
24 kbytes
(as of version 7.x)
à 64 kbytes
Can be symbolically used for FB instances and PLC variables.
Data get lost after mains disconnection.
8.3.1Retain memory
In the retain memory the values of the retain variables are stored safe from power failure and are thus
available to the program even after mains switching. (Saving with C0003 = 1 is not required.)
Retain variables are declared by means of the variable class VAR RETAIN.
Retain variables are created as a symbolically addressable memory.
With each program download the retain variables are reset to their initialisation value. If an
initialisation value has not been defined, the corresponding retain variable will be initialised
with the value "0".
In the DDS online mode you can use the commands Online WReset (cold) and Online W
Reset (original) to reset the retain variables in the PLC to their initialisation values.
8.3.2Downloading data
In DDS (as of version 2.0) it is possible to attach a file to your project whose data is automatically
downloaded to the PLC when the program is downloaded.
This mechanism is, for instance, used in the Software Package − Cam to download motion
profiles.
Note!
With the 9300 Servo PLC the additional data is loaded into the application FLASH.
With the Drive PLC the additional data is directly attached to the PLC program because the
Drive PLC does not have an application FLASH.
8−4
DrivePLC DE 6.0
L
Page 85
Drive PLC
Appendix
8.3Memories
For the download being executed by the DDS, the following two conditions must be met:
1. The PLC program must have been stopped.
2. The header of the file attached to the project must have the following structure:
NameData type Data length in bytes Contents
wSizeHeaderWORD2Header length in bytes
wDataTypeWORD2Data specification identifier
dwVersionDWORD4Data version
dwRealSizeDWORD4User data length in bytes (without header)
dwTimeStampDWORD4Time stamp of the last data change
wLicenseInfoWORD2Reserved for future extensions
wSizeSymbolicNameWORD2Length of the symbolic file name
achSymbolicNameACHwSizeSymbolicName Character array including the symbolic file name
wCopyToRamWORD2Selection whether data will be automatically copied into the application RAM of
dwReservedDWORD4
awSizeAddInfoDWORD190
Interpretation of the header information: least significant byte first:
This information can be found under C2131 after data has been downloaded.
0 ... 10000 Lenze−spezific data
> 10000 User data
This information can be found under C2132 after data has been downloaded.
This information can be found under C2133 after data has been downloaded.
This information can be found under C2130 after data has been downloaded.
the PLC after downloading.
Maximum data length = 128 kbytes (RAM block 1 and 2)
0 Data is not copied into the application FLASH.
1 Data is copied into the application FLASH.
2 ... 65535 Reserved
Reserved for future extensions
wSizeHeader = 00 E4= 228 Byte
wDataType = 00 0A= 10 (Cam data)
hex
hex
dwVersion =00000001
hex
E4 00 0A 0001 00 00 001C FF 00 00
dwRealSize = 00 00 FF 1C= 65308 Byte
hex
L
DrivePLC DE 6.0
8−5
Page 86
Drive PLC
Appendix
8.4System POUs
8.4System POUs
System POUs are POUs of the "program" type which accept the features of a certain name, i.e. they
are started by an event registered by the PLC.
The program includes max. 1000 instructions for system POUs.
Unlike tasks or PLC_PRG, system POUs are not run−time monitored by a "watchdog".
The special POU names and the corresponding event for starting the POU are listed in the
following table:
POU nameEvent for starting POUThe POU starts if
PLC_TaskOverrunTask overflow
PLC_RealErrorFloating−point error...a floating−point error occurs.
PLC_FailTrippingTRIP...a trip is set.
PLC_WarningTrippingWarning...a warning is activated.
PLC_MessageTrippingMessage...a message is activated.
PLC_FailQspTrippingFAIL−QSP...a FAIL−QSP is activated.
PLC_CANErrorCAN bus error...a CAN bus error occurs (e.g. BUS−OFF).
PLC_AIFErrorAIF bus error...an AIF bus error occurs.
PLC_RestartStart...the START command is activated after a STOP.
PLC_ColdStartCold start...a RESET, RESET (cold), RESET (original) or a program download has been
PLC_StopPLC stop...the STOP command is activated.
...the task monitoring time is exceeded.
1)
1)
Note: Only called when pulse inhibit is inactive!
activated.
Note: System variables must not be used in PLC_ColdStart. Otherwise, unexpected
controller errors may occur (e.g. motor start).
Note: This POU is not activated through a RESET (cold, original)!
1)
Not available for Drive PLC.
2)
The CAN/AIF bus is ready after this POU has been executed.
2)
Tip!
If you need a system POU for an event−controlled start, simply create a "program" POU and use the
POU name listed in the table for the corresponding event as POU name.
8−6
DrivePLC DE 6.0
L
Page 87
Drive PLC
Appendix
8.5System error messages
8.5System error messages
The history buffer (C0168/x) stores error messages with an offset which indicates the type of response:
Error message numberType of response
0xxxTRIP
1xxxMessage
2xxxWarning
3xxxFAIL−QSP
Example: C0168/1 = 2061
x061:
The current error (subcode 1 of C0168) is a communication error (error message "CE0"/no.
"x061") between AIF module and PLC.
2xxx:
The response is a warning.
The current error number is also indicated in the variable DCTRL_wFaultNumber of the PLC program.
Tip!
Errors generally do not influence the operability of the PLC!
L
DrivePLC DE 6.0
8−7
Page 88
Drive PLC
Appendix
8.5System error messages
8.5.1Overview of system error messages, error sources and reactions
System error messagePossible settings/response
No.DisplaySourceMeaning
x011 OC1MCTRLMotor cable short circuitüü
x012 OC2MCTRLMotor cable earth faultüü
x015 OC5MCTRLI x t overloadüü
x016 OC6MCTRLI2 x t overload (C0120)ü
x017 OC7MCTRLI x t warning (C0123)C0604üüü
x018 OC8MCTRLI2 x t warning (C0127)C0605üüü
x020 OUMCTRLOvervoltage in the DC busüü
x030 LUMCTRLUndervoltage in the DC busüü
x032 LP1MCTRLMotor phase failureC0597üüüü
x050 OHMCTRLHeat sink temperature higher than fixed limit
temperature
x051 OH1MCTRLTemperature inside the controller > 90° Cü
x053 OH3MCTRLMotor temperature higher than fixed limit tem-
perature
x054 OH4MCTRLHeat sink temperature higher than variable li-
mit temperature (C0122)
x055 OH5MCTRLTemperature inside the controller > C0124C0605üüü
x057 OH7MCTRLMotor temperature higher than variable limit
temperature (C0121)
x058 OH8MCTRLMotor temperature via inputs T1/T2 too highC0585üüüü
x061 CE0AIFCommunication error between AIF mo-
duleóPLC
Lenze settingü setting possible
CodeTRIPMessage WarningFAIL−
üü
C0583üüü
C0582üüü
C0584üüü
C0126üüüüü
QSP
Available in
OffDrive
PLC
Servo
PLC
ECSxA
CAN communication error:
x062 CE1CAN1CAN1_IN (monitoring time can be set under
x063 CE2CAN2CAN2_IN (monitoring time can be set under
x064 CE3CAN3CAN3_IN (monitoring time can be set under
x065 CE4CANCAN BUS−OFF status
x066 CE5CANCAN time−out (gateway function C0370)C0603üüüüü
x070 U15internalUndervoltage of internal 15 V voltage supplyüüü
x071 CCrinternalInternal error
x072 PR1internalCheck sum error in parameter set 1üüü
x074 PErinternalProgram error
x075 PR0internalGeneral error in the parameter sets
x076 PR5internalError saving parametersüü
x079 PIinternalError during parameter initialisation
x080 PR6internalToo many user codesüüü
x082 Sd2MCTRLResolver errorC0586üüüü
x083 Sd3MCTRLEncoder error at X9 PIN 8C0587üüü
x085 Sd5MCTRLEncoder error at analog input (X6) (C0034 = 1) C0598üüüü
x086 Sd6MCTRLSensor error: motor temperature (X7 or X8)C0594üüüü
x087 Sd7MCTRLAbsolute−value encoder error at X8
x088 Sd8MCTRLAbsolute−value encoder error at X8
After error correction: completely deenergise the device!
8−8
DrivePLC DE 6.0
L
Page 89
Drive PLC
Appendix
8.5System error messages
System error messagePossible settings/response
No.DisplaySourceMeaning
x089 PLMCTRLError during rotor position adjustmentüü
x091 EErFWMExternal monitoring activated via DCTRLC0581üüüüüü
x105 H05internalInternal error (memory)üüü
x107 H07internalInternal error (power stage)üü
x108 H08internalExtension board not connected correctly or not
x111 H11FWMTemperature sensor error: temperature inside
x122 CE11
x123 CE12
x124 CE13
x125 CE14
x126 CE15FIF−CAN Communication error of the gateway function
FIF−CAN1 FIF−CAN1_IN (monitoring time can be set under
CANaux1 CANaux1_IN (monitoring time can be set under
FIF−CAN2 FIF−CAN2_IN (monitoring time can be set under
CANaux2 CANaux2_IN (monitoring time can be set under
FIF−CAN3 FIF−CAN3_IN (monitoring time can be set under
CANaux3 CANaux3_IN (monitoring time can be set under
FIF−CAN FIF−CAN BUS−OFF status
FIF−CAN FIF−CAN BUS−OFF status
supported by program
ture
the controller
FIF−CAN / CAN−AUX communication error:
C2457/1)
C2457/1)
C2457/2)
C2457/2)
C2457/3)
C2457/3)
(too many faulty telegrams received)
(too many faulty telegrams received)
(C0370, C0371) via FIF−CAN
Lenze settingü setting possible
CodeTRIPMessage WarningFAIL−
üü
C0588üüü
üüü
C0591üüü
C2481üüü
C0592üüü
C2482üüü
C0593üüü
C2483üüü
C0595üüü
C2484üüü
C2485üüü
QSP
Available in
OffDrive
PLC
Servo
PLC
ECSxA
x190 nErrMCTRLSpeed out of tolerance margin (C0576)C0579üüüüüü
x200 NMAXMCTRLMaximum speed exceeded (C0596)üü
Time−out (see task configuration):
x201 overrun Task1
x202 overrun Task2Task with ID 3
x203 overrun Task3Task with ID 4
x204 overrun Task4Task with ID 5
x205 overrun Task5Task with ID 6
x206 overrun Task6Task with ID 7
x207 overrun Task7Task with ID 8
x208 overrun Task8Task with ID 9
x219 overrun Cycl.−TinternalTime−out in cyclic task (PLC_PRG, ID 1)
In DDS adjustable under Project W Exception response
internal
Task with ID 2
2)
üüüüü
2)
üüüüü
L
DrivePLC DE 6.0
8−9
Page 90
Drive PLC
Appendix
8.5System error messages
System error messagePossible settings/response
No.DisplaySourceMeaning
Floating−point error (REAL) in:
x209 FLOAT SYS−T
x210 FLOAT CYCL.−TCyclic task (PLC_PRG, ID 1)
x211 float T Id2Task with ID 2
x212 float T Id3Task with ID 3
x213 float T Id4Task with ID 4
x214 float T Id5Task with ID 5
x215 float T Id6Task with ID 6
x216 float T Id7Task with ID 7
x217 float T Id8Task with ID 8
x218 float T Id9Task with ID 9
x220 NoT−FktCreditinternalNot enough technology units available in the
x230 No PrograminternalNo PLC program loaded in PLCüüü
x231 Unallowed LibinternalA library function has been called in the PLC
x232 NoCamDatainternalMotion profiles (cam data) are not availableüüü
x240 ovrTransQueue
x241 ovr ReceiveToo many receive telegramsC0609üüü
internal
Free CAN
obj.
System task
PLC
program which is not supported
Free CAN objects:
Overflow of send order memoryC0608üüü
Lenze settingü setting possible
CodeTRIPMessage WarningFAIL−
2)
üüüüü
üüü
üüü
QSP
3)
Available in
OffDrive
üüüü
PLC
Servo
PLC
ECSxA
Application memory (FLASH):
x250 2.Flash ErrinternalAccess not possible
x251 AddData CsErrinternalCheck sum error occurred when loading data
x252 AddData DlErrinternalError occurred when downloading data into the
220 NoT−FKT−CREDITInsufficient units on the target
230 No ProgramPLC program errorNo PLC program loadedLoad PLC program to PLC
231 Unallowed LibLibrary function is not
232 NoCamDataMotion profiles (cam data) are
240 ovrTransQueueError Free CAN objects"Overflow of send order memory Reduce number of send orders
241 ovr ReceiveError Free CAN objects"Too many receive telegramsReduce number of telegrams on bus
250 2.Flash ErrError during FLASH memory
251 AddData CsErrError during FLASH memory
252 AddData DlErrError during FLASH memory
260 Err NodeGuard"Life guarding event"PLC has been configured as a CAN slave with
(too many faulty telegrams
received)
Task with Id.2
...
Task with Id.9
Task with Id.2
...
Task with Id.9
cyclic task (PLC_PRG)
system
supported
not available
access
access
access
PLC has received too many faulty telegrams sent
via system bus and has disconnected itself from
the bus
Time−out (see task configuration):
Task processing takes longer than the monitoring
time set
Floating−point error (REAL):
Error in real calculation (e.g. divided by 0)
Task processing takes longer than the monitoring
time set
It was tried to load a program with technology
functions to a PLC not providing corresponding
units
You have called a library function in the PLC
program. This function is not supported, e.g.
because the required hardware is not available
When functions of the LenzeCamControl.lib
function library were called, the controller
recognised that there are no motion profiles (cam
data) loaded in the PLC memory
The PLC program tries to access a faulty FLASH
memory or FLASH memory does not exist
Check sum error occurred when loading data into
the FLASH memory
Error occurred when downloading data into the
FLASH memory (e.g. time−out, transmission error,
mains failure during data transfer)
"node guarding" and has not received any "node
guarding" telegram within the node lifetime of the
CAN master.
Check wiring/cable
Check bus termination (if any)
Check screen contact of the cables
Check PE connection
Check bus load
Reduce baud rate (observe cable length)
Set task run−time
If necessary, change monitoring time
Determine time−out reason by checking the
task run−times at the task monitor
Swap out time−critical program parts to a
slower task
Check real calculation (program code)
The error is eliminated as in a task overflow
Set task run−time
If necessary, change monitoring time
Determine time−out reason by checking the
task run−times at the task monitor
Swap out time−critical program parts to a
slower task
Use the T−variant of the PLC
Remove library function or ensure that the
required hardware devices are provided
Ensure that valid cam data were attached to
the project via the DDS cam support
Re−load the PLC program (maybe the
OnlineWReset (original) command has been
executed in DDS)
Prolong cycle time
Ensure that the PLC has a FLASH memory. If
FLASH memory already exists, contact Lenze.
Check the check sum of the file to be loaded and
repeat data transfer
Check/repeat data transfer
Check system bus (CAN) and CAN configuration
Ensure that "node guarding" has been
activated in the CAN master
Adapt node lifetime to CAN master setting
L
DrivePLC DE 6.0
8−13
Page 94
Drive PLC
Appendix
8.5System error messages
8.5.5Fault analysis via the fault memory
The fault memory of the PLC consists of 8 memory locations which store the following information
about the active fault and the 7 previous faults in their chronological order of occurrence:
No. of system error message (^ 8−7)
Response to the fault (warning, message, TRIP, etc.) (^ 8−7)
Time of occurrence (referred to power−on time of the PLC, e.g. "1234567 s")
Frequency of successive occurrence
The fault memory information is stored under codes C0168/x ... C0170/x:
C0168C0169C0170Subcode Contains information about
No. of the
system error message
and response
Time
of occurrence
Frequency
of successive
occurrence
Active fault
1
Last fault
2
Last but one fault
3
Last but two fault
4
Last but three fault
5
Last but four fault
6
Last but five fault
7
Last but six fault
8
Tip!
The fault memory works according to the principle of a shift register:
If the current fault is no longer active or has been acknowledged by a TRIP−RESET, all information
is automatically shifted up one subcode in the fault memory.
The information concerning the previously active fault is now stored under subcode 2.
The information concerning the previous last but six fault is deleted from the fault memory and
cannot be retrieved any longer.
Note!
If several faults causing different responses occur simultaneously:
– Only the fault causing the highest−priority response is entered into the fault memory
(priority = TRIP → message → FAIL−QSP → warning).
If several faults causing the same response occur simultaneously (e.g. 2 messages):
– Only the fault occurring first is entered into the fault memory.
If a fault occurs several times in succession:
– Only the time of the last occurrence is entered into the fault memory.
8−14
DrivePLC DE 6.0
L
Page 95
Drive PLC
Appendix
8.5System error messages
Fault reset
The current fault can be reset by a TRIP−RESET e.g. via C0043:
CodeLCD
C0043 Trip reset0TRIP reset
Possible settings
LenzeSelection
0TRIP−RESET (current TRIP reset)
1Error occurred (TRIP is active)
Deleting entries in the fault memory
The entries in the fault memory can be deleted via C0167.
This function can only be used if there is no active fault.
CodeLCD
C0167 Reset failmem0Reset fault memory
Possible settings
LenzeSelection
0No function
1Delete all entries in history buffer
8.5.6Error analysis via the PLC LED
Two LEDs at the front of the PLC indicate the controller status:
LED green LED redController statusCheck test
−−«WarningC0183, C0168/1
−−««MessageC0183, C0168/1
−−nError: TRIPC0183, C0168/1
««oPLC program not loadedC0183, C0168/1
ooPLC program loaded
noPLC program running
«oPLC program loaded but stopped
n on o off «blinking (every second) ««blinking (every 0.5 s) −− Status without meaning
Info
Info
8.5.7Fault analysis via the 9371BB keypad
Displayed status messages indicate the controller status:
DisplayController statusCheck test
RDYPLC ready for operationC0183, C0168/1
FailError indicated by TRIP, message or warning
L
DrivePLC DE 6.0
8−15
Page 96
Drive PLC
Appendix
8.6Code table
8.6Code table
How to read the code table:
ColumnAbbreviationMeaning
CodeC0168
LCDKeypad LCD
Lenze
Selection 1{1 %}99 Minimum value{smallest step/unit}maximum value
InfoAdditional information on code
Code C0168
1
Subcode 1 of code C0168
2
Subcode 2 of code C0168
…
…
8
Subcode 8 of code C0168
[C0156] Parameter value of code can only be changed when controller is inhibited.
Lenze setting of the code
g Display code (can only be displayed)
* The "Info" column contains more information.
CodeLCD
[C0002] Par load0Load parameter set
Possible settings
LenzeSelection
Info
Only possible when PLC has been stopped.
Parameter set 1 is automatically loaded after
power−on.
0Load Lenze setting into RAM
1Load parameter set 1 into RAM
C0003 Par save0Save parameter set
Also possible when PLC is in operation.
0Saving completed
1Non−volatile saving of parameter set 1
C0004 Op display372Keypad operating display
Keypad will indicate selected code in the operating
level if no other status indications of C0183 are active.
All available codes
C0009 LECOM address 1LECOM controller address
(bus device number for operation via interface)
10, 20, ..., 90 reserved for broadcast to device groups
for RS232, RS485, fibre optics.
1{1}99
C0011 Nmax3000Reference code for speed scaling
500{1 rpm}16000
C0043 Trip resetCurrent TRIP reset
0Trip reset
1Trip active
C0067 Act trip
C0093 PLC ident
C0094 Password0Keypad password protection
g
g
Current TRIP
("0" is displayed for FAIL−QSP, warning and message.)
Controller identification
Parameter password protection for the keypad.
When the password is activated, only user−menu codes
can be accessed.
For extended password protection, please see C0096.
0{1}9999
0 = No password protection
8−16
DrivePLC DE 6.0
L
Page 97
Drive PLC
Appendix
8.6Code table
CodeInfoPossible settingsLCDCodeInfo
LCD
SelectionLenze
C0096 AIF/CAN prot.AIF/CAN password protection
Extended password protection for bus systems when
See C0168/1
"0" is displayed for FAIL−QSP, warning and message.
C0167 Reset failmem0History buffer reset
0No function
1Delete all entries in history buffer
C0168 Fail number
g
History buffer: Error messages
List with error messages in order of occurrence.
All error messages
1Current error message
2Last error message
3Last but one error message
4Last but two error message
5Last but three error message
6Last but four error message
7Last but five error message
8Last but six error message
C0169 Failtime
g
History buffer: Power−up time
List with the power−up times until an error message
occurs in C0168/x.
Refers to the elapsed time meter (C0179)
0{1 s}65535
1Current error message
2Last error message
3Last but one error message
4Last but two error message
5Last but three error message
6Last but four error message
7Last but five error message
8Last but six error message
8−18
DrivePLC DE 6.0
L
Page 99
Drive PLC
Appendix
8.6Code table
CodeInfoPossible settingsLCDCodeInfo
LCD
C0170 Counter
g
SelectionLenze
History buffer: Frequency of error messages
List which indicates how many times an error occurred
in C0168/x.
0{1}65535
1Current error message
2Last error message
3Last but one error message
4Last but two error message
5Last but three error message
6Last but four error message
7Last but five error message
8Last but six error message
C0179 Mains timer
g
Elapsed time meter
Power−up time
0{1 s}4294967295
C0183 Diagnostics
g
Drive diagnostics
Indicates error and status information.
If several error and status information occur at the
same time, the information with the lowest number will
be displayed
0OK
101Initialisation
102TRIP/error
103Emergency stop
104IMP message
105Power off
111OINH C135
112OINH AIF
113OINH CAN
121CINH terminal 28
122CINH internal 1
123CINH internal 2
124CINH C135/STOP
125CINH AIF
126CINH CAN
141Power−up inhibit
142IMP inhibit
151QSP external terminal
152QSP C135/STOP
153QSP AIF
154QSP CAN
250Warning
C0199 BuildNumber
C0200 S/W Id
C0201 S/W date
C0202 Internal ID
1EKZ1
2EKZ2
3EKZ3
4EKZ4
C0203 Comm.−No.
C0204 Serial−No.
C0205 Target−Id
C0206 Product date
C0207 DL info 1
C0208 DL info 2
g
g
g
g
g
g
g
g
g
g
No error
Initialisation phase
TRIP active
Emergency stop was released
Message active
Operation inhibit C135
Operation inhibit AIF
Operation inhibit CAN
Controller inhibited via: X5/28
DCTRL−CINH1
DCTRL−CINH2
STOP key of 9371BB
Controller inhibited via AIF
Controller inhibited via CAN
Restart protection active
Power outputs with high resistance
QSP via MCTRL−QSP
QSP via STOP key
QSP via AIF
QSP via CAN
Warning active (C0168)