Important Note :
The software is made available to the user in the currently existing form. All risks with regard to the quality andthe results arising fromits
use remainthe responsibilityofthe user.Th eus ermust imp lementthe appro priate securityprecautionsagainstpossibleerro neous
application.
W e do not accept any responsibilty for direct or consequential damages, such as loss of profits, loss of orders, or effects on the course of
business of any kind.
.
No part of this documentation may be copied or made available to third parties without the express written permission of
Lenze GmbH&Co KG.
Wehavetakegreatcareinassemblingtheinformationinthisdocumentation, andcheckedthatitcorrespondstothehardwareandsoftware
that isdescr ibed. Nevert heless,we canno tguarantee that there are no discrepan cies .We donot accept any legal responsibilityor liability
for damage that may thereby ensue. Any necessary corrections will be implemented in subsequent versions.
ThisManualdescribes thefunctio ns of thesystem blockswhichyou canselect and parameterizein
the controlconfigurationof the Drive PLC DeveloperStudio(DDS)fortheautomat io n system9300
Servo PLC.
Tip!
Information on
• DC bus connection
• Use of brake units
• Automation(field bus modules)
• Accessories and motors
• and selection help
for controllers of the 9300 series can be found in the Manual 9300 Planning,
whichyoucanorderseparatelyfromLenze.
9300 Se rvo PL C
1.1.1Conventions in this manual
This manual uses the following conventions to distinguish between different types of information:
Variable names
areshownintheexplanatory textsinitalics:
• “The signal at
nIn_a
...”
1.1.2Pictograms in this manual
Use of
Pictographs
Warning of
material damage
Other notesTip!Thisnote designatesgeneral,useful notes.
Signal words
Stop!Warns of potential damage to material.
Possible consequences if disregarded:
Damage of the controller/drive system or its environment
If you observeit, handling of the controller/drive system is made easier.
.
9300ServoPLCEN1.4
1-1
Page 8
9300 Se rvo PL C
Show/Hide Bookmarks
Preface and general information
1.1.3Terminology used
TermIn the following text used for
FBFunction block
SBSystem block
Parameter codesCodes for setting the functionality of a function block
GDCGlobal Drive Control(parameterization programfromLenze)
1.1.4What’s new?
VersionID-No.Changes
1.407/2000revised edition for the Drive PLC Developer Studio V01.00
1-2
9300ServoPLCEN1.4
Page 9
9300 Se rvo PL C
Show/Hide Bookmarks
Preface and general information
1.2Lenze software guidelines for variable names
Thepreviousconcepts for Lenze drivecontrollers werebased on cod es t hat represented t he input
and output signals, and the parameters of function blocks.
• For the sake of clarity, names were defined for the codes in the documentation.
• In addition, the signal types were defined by graphical symbols.
The user could see at a glance which kind of signal (analog, phase-angle etc.)had to be present at
theparticularinterface.
The concept for the new automation system does not use direct codes in the
programming. The IEC1131-3 standard is used instead.
• This standard is based on a structure of variable names.
• If the user applies variables in his project, then he can name the variables as he chooses.
In order to avoid the growth of a multitude of different conventions for naming variables in existing
and future projects and function libraries that are programmed by Lenzepersonnel, wehave set up
software guidelines that must be followed by all Lenze staff.
Inthisconvention for creating variablenames,Lenzekeeps to theHungarianNotation, that hasbeen
specifically expanded by Lenze.
If you make use of Lenze-specific functions or function blocks, you will immediately be able to see,
forinstance,whichdatatypeyoumust transfer to a function block,and whichtypeofdatayouwill
receive as an output value.
1.2.1Hungarian Not ation
These conventions are used so that the most significant characteristics of a program variable can
instantly be recognized from its name.
Variable names
consist of
• a prefix (optional)
• a data-type entry
• and an identifier
The prefix and data-type entry are usually formed by one or two characters. The identifier (the
“proper” name)should indicate the application, and is therefore usually somewhat longer.
Prefixexamples
PrefixMeaning
aarray(combinedtype), field
ppointer
9300ServoPLCEN1.4
1-3
Page 10
9300 Se rvo PL C
Show/Hide Bookmarks
Preface and general information
Examples of the data-type entry
Examples of a data-typeMeaning
bBool
byByte
rInteger
wWord
dnDouble-integer
dwDouble Word
sString
fReal(Float)
snShort Integer
tTime
unUnsigned Integer
udnUnsigned Double Integer
usnUnsigned Short Integer
Identifier (the proper variable name)
• An identifier begins with a capital letter .
• If an identifier is assembled from several ”words”, then each “word” must start with a capital
letter.
• Allotherlettersarewritten inlowercase.
Examples:
Array of integers
Bool
Word
Integer
Byte
anJogValue[10]
bIsEmpty
wNumberOfV alues
nLoop
;
;
;
;
byCurrentSelectedJogValue
;
1.2.1.1Recommendation for designating variable types
In order to be able to recognize the type of variable in a program according to the name, it makes
sense to use the following designations, which are placed in front of the proper variable name and
separated from it by anunderlinestroke:
for a global array of type integer,that includes fixed setpoints (analog)for a speed setting:
g_anFixSetSpeedValue_a
1-4
9300ServoPLCEN1.4
Page 11
9300 Se rvo PL C
Show/Hide Bookmarks
Preface and general information
1.2.1.2Designation of the signal type in the variable name
Theinputsandoutputsof theLenzefunction blockseachhaveaspecific signaltypeassigned.These
maybe: digital,analog, position or speedsignals.
For this reason,eachvariable name has an ending attached that provides information onthe type of
signal.
Signal typeEndingPrevious designation
analog_a(analog)
digital_b(binary)
phase-angle difference or speed (rot.)_v(velocity)
phase-angle or position_p(position)
Tip!
Normalizing to signal type phase-angle difference/speed: 16384 (INT)15000rpm
Normalizing to signal type analog: 16384
Normalizing to signal type angle or position: 655361motor t urn
System variablesrequirespecialhandling,since the system functions areonly availablefor theuser
as I/O connections in the control configuration.
Inorderto be able to accessasystemvariablequickly duringprogramming, thevariablename must
include a label for the system function.
For this reason, the name of the corresponding system block is placed before the name o f the
variable.
Examples:
AIN1_nIn_a
CAN1_bCtrlTripSet_b
DIGIN_bIn3_b
9300ServoPLCEN1.4
1-5
Page 12
9300 Se rvo PL C
Show/Hide Bookmarks
Preface and general information
1-6
9300ServoPLCEN1.4
Page 13
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.1Introduction
2System blocks
2.1Introduction
For a long time, Lenze has followed the principle of describing inverter functions with the aid of
functionblocks (FB’s). This principle may also be found in the IEC1131-3 standard.
• The function library includes functions that you can apply as softwarefunctions in your
project.
• In addition, quasi-hardware functions areavailable,as syst em blocks. (SBs).
System blocks- principle:
Thesystem-block principle can be explained very well by a PLCsystem in a rack:
• One element in the rack is the CPU, and next to it there can also be found digital I/Os, analog
I/Os, counter cards, positioning cards etc.
CPU
Abb. 2-1Principle of a PLCsystem (x= expansion cards)
• The CPU can access the inserted cards directly, and process the resulting information.
• The individual expansion cards each have a fixed address for access.
With the Lenze Automation System,the system blocks correspond to these inserted cards!
Systemblocksarethusspecial(quasi-hardware)function blocks thatarepermanentlyintegratedinto
the run-time system (e.g.9300 Servo PLC, Drive PLC).
• These function blocks can also partially address real hardware.
• Theassignment/id entification of t he system blocks is made through mo dule numbers.
• Theaccess to the inputs/outputs of the system blocks is made directly through I/O-variables
or fixed memory addresses.
Example:
On example of a system block is the digital I/O-function block “DIGITAL_IO”.
Themodulenumber is a part of theabsolute addressof an SB.
• Exampleof aninput address: %IXa.b.c
(a = module number, b = word addressand c = bit adress)
2-2
9300ServoPLCEN1.4
Page 15
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.1Introduction
2.1.3Definition of the system-block inputs/outputs
Inorderto implement a connection o f the user programwith thehardware,systemblocksarejoined
to program-organisation elements ( POEs):
POE-InputPOE-Output
SB-Output
SB
Abb. 2-2Connecting syst em blocks t o a program-organisation element (schematic)
POEProgram-organisation element
SBSystem block
Tip!
Theassignments as inputs and outputs are always made from the program viewpoint!
Thismeans that logical syst em -block outputs are seen by t he POEs as hardware-sid e inputs, and
system- block inputs areseen as outputs.
Example:system block DIGITAL_IO (DIGIN):
Forexample,to connect thedigital input 1 of thePLC run/stop to aPOE,theoutput 1 o f thesystem
block DIGITAL_IOmust be connected to an input of the POE:
SB-Input
SBPOE
SB-OUT
POE-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
Abb. 2-3Connecting thesystem block DIGITAL_IOto a POE
Accesstothedigitalinput1canonlybemadethroughtheabsoluteaddress%IX1.0.1 or through
the system-variable names
%IX1.0.1
POEPOE
DIGIN_bIn1_b
DIGIN_bIn1_b
Tip!
According to IEC1131,onlyonecopyof thedigital input can betransferred,andthis systemvariable
must be of type VAR_INPUT
ThisSB is used as an interface for input signals from plugged-in fieldbus modules ( e.g. INTERBUS,
PROFIBUS-DP) for setpoint/actual values as binary, analog or phase-angle information.
• Theprocessimageis
– created in a cyclic task in a fixed time period of 10 ms
– created in an interval task within the time set for this task.
When the task is started, the process image is read and when the task is completed, the
task is written.
The meaning of these user data can be selected among different signal types. Depending on the
requirement,thesedatacan beevaluated as up to2integer signals, 32boolean/digitalsignalsor one
double-integer signal.
This SB isused as an interfaceforoutput signals from plugged-in fieldbusmodules(e.g.INTER BUS,
PROFIBUS-DP) for setpoint/actual values as binary, analog or phase-angle information.
• Theprocessimageis
– created in a cyclic task in a fixed time period of 10 ms
– created in an interval task within the time set for this task.
When the task is started, the process image is read and when the task is completed, the
task is written.
The inputsignalsofthisfunctionblockare copiedtothe 8byteuser dataoftheAIF objectandapplied
to theplugged-infieldbus module.
Byte 1 and 2
Byte 1, 2 can be used as word information.
Bytes 3 and 4
Youcanfreely link bytes 3and 4 withvariables of the corresponding datatype, as a16-bit dataword
(quasi-analog signal).
Bytes 5-6 and bytes 7- 8
It is p ossible, using different variables,to write simult aneously to bytes 5-6 or bytes 7-8. Avoid this
situation, since the data in bytes 5-6 or bytes 7-8 are then not unambiguous.
ThisSB is used as an interface for input signals from plugged-in fieldbus modules ( e.g. INTERBUS,
PROFIBUS-DP) for setpoint/actual values as binary, analog or phase-angle information.
• Theprocessimageis
– created in a cyclic task in a fixed time period of 10 ms
– created in an interval task within the time set for this task.
When the task is started, the process image is read and when the task is completed, the
task is written.
ThisSBisused as an interface foroutput signalstotheplugged-infieldbus modules (e.g.INTER BUS,
PROFIBUS-DP) for setpoint/actual values as binary, analog or phase-angle information.
• Theprocessimageis
– created in a cyclic task in a fixed time period of 10 ms
– created in an interval task within the time set for this task.
When the task is started, the process image is read and when the task is completed, the
task is written.
Theinputsignalsof thisfunctionblockarecopiedto the8 byteuserdataof theAIFobject andapplied
to theplugged-infieldbus module.
Bytes 1-2 and bytes 3- 4
It is p ossible, using different variables,to write simult aneously to bytes 1-2 or bytes 3-4. Avoid this
situation, since the data in bytes 1-2 or bytes 3-4 are then not unambiguous.
ThisSB is used as an interface for input signals from plugged-in fieldbus modules ( e.g. INTERBUS,
PROFIBUS-DP) for setpoint/actual values as binary, analog or phase-angle information.
• Theprocessimageis
– created in a cyclic task in a fixed time period of 10 ms
– created in an interval task within the time set for this task.
When the task is started, the process image is read and when the task is completed, the
task is written.
ThisSBisused as an interface foroutput signalstotheplugged-infieldbus modules (e.g.INTER BUS,
PROFIBUS-DP) for setpoint/actual values as binary, analog or phase-angle information.
• Theprocessimageis
– created in a cyclic task in a fixed time period of 10 ms
– created in an interval task within the time set for this task.
When the task is started, the process image is read and when the task is completed, the
task is written.
Theinputsignalsof thisfunctionblockarecopiedto the8 byteuserdataof theAIFobject andapplied
to theplugged-infieldbus module.
Bytes 1-2 and bytes 3- 4
It is p ossible, using different variables,to write simult aneously to bytes 1-2 or bytes 3-4. Avoid this
situation, since the data in bytes 1-2 or bytes 3-4 are then not unambiguous.
AIF_bCe0CommErr_bBoolbinary%IX 161.0.0hexCommunication error
AIF_bFieldBusStateBit0_bBoolbinary%I X161.1.0hexField bus state bit 0
AIF_bFieldBusStateBit1_bBoolbinary%I X161.1.1hexField bus state bit 1
AIF_bFieldBusStateBit2_bBoolbinary%I X161.1.2hexField bus state bit 2
AIF_bFieldBusStateBit3_bBoolbinary%I X161.1.3hexField bus state bit 3
AIF_bFieldBusStateBit4_bBoolbinary%I X161.1.4hexField bus state bit 4
AIF_bFieldBusStateBit5_bBoolbinary%I X161.1.5hexField bus state bit 5
AIF_bFieldBusStateBit6_bBoolbinary%I X161.1.6hexField bus state bit 6
AIF_bFieldBusStateBit7_bBoolbinary%I X161.1.7hexField bus state bit 7
Function
Monitoring for communication errors through a field bus module connected to the automation
interface. (Communication error CE0; LECOM-Nr.: 61; Reaction: TRIP)
DataTypeSignalTypeAddressDISDIS formatNote
2-20
9300ServoPLCEN1.4
Page 33
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.6Analog inputs/outputs 1 (ANALOG1_IO)
2.6Analog inputs/outputs 1 ( A NALOG1_IO)
2.6.1Inputs_ANALOG1 (AIN1)
Analog input 1 (module number 11)
ThisSBforms theinterfacefor analogsignalsviaterminal X6/1-2assetpoint input, actualvalueinput,
and parameter control.
Abb.2-11Inputs_ANALOG1(AIN1)
VariableName
AIN1_nIn_aIntegeranalog%IW11.0C0400dec [%]Analog input 1
AIN1_bError_bBoolbinary%IX11.1.0--TRU E, if I < 2 mA
C0034-----Select master voltage or master
Function
SelectionFunctionNote
C0034 = 0-10 V ... 10 Vmaster voltage±10 V≡±16384
C0034 = 14 mA... 20 mAmaster curren t
C0034 = 2-20 mA... 20 mA
• C0034 can be used to insert a dead-time section into the output signal. The function 4 ... 20
mA as a current master value can be achieved together with the jumper setting X2 (at the front
of thecontroller).
• Settings through C0598:
– C0598 = 0: if the master current < 2 mA, the TRI P(SD5)message appears.
– C0598 = 2: if the master current < 2 mA, the warning mesage appears.
– C0598 = 3: no message appears.
• Processing time required for the SB: 10 µsec.
X6
1
2
DataTypeSignalTypeAddressDISDIS formatNote
C0034
AIN1
AIN 1_nIn_a
C0400
A IN 1 _b E rro r_ b
AIN1_bError_b
AIN1_bError_b
current
= TRUE, if master current < 2 mA
= FALSE, if master current ≥ 2mA
You can use this SB asa monitoroutput.Internal analog signalscan beoutput via terminalX6/62 as
voltage signals, and used, for example, as display or setpoints for following drives.
Differential master-voltage input
(jumper X3 has no effect)
X6
3
4
DataTypeSignalTypeAddressDISDIS formatNote
-10Vbis+10VResolution:
AIN2
AIN 2_nIn_a
C0405
5 mV (11 bit + sign)
±10 V≡±16384 ≡±100 %
9300ServoPLCEN1.4
2-23
Page 36
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.7Analog inputs/outputs 2 (ANALOG2_IO)
2.7.2Outputs_ANALOG2 (AOUT2)
Analog output 2 (module number: 12)
You can use this SB asa monitoroutput.Internal analog signalscan beoutput via terminalX6/63 as
voltage signals, and used, for example, as display or setpoints for following drives.
This SB operates the drive controller in specific states (e.g. TRIP, TRIP-RESET, QSP or controller
inhibit).
• Theproc ess image is created in a fixed system task (interval: 2 msec).
DCTRL_wCAN1Ctrl
DCTRL_wAIF1Ctrl
D C TR L_bC Inh1_b
C 0878/1
D C TR L_bC Inh2_b
C 0878/2
D C TR L_bTripS et_b
C 0878/3
D C TR L_bTripR eset_b
C 0878/4
D C TR L_bS tateB 0_b
D C TR L_bS tateB 2_b
D C TR L_bS tateB 3_b
D C TR L_bS tateB 4_b
D C TR L_bS tateB 5_b
D C TR L_bS tateB 14_b
D C TR L_bS tateB 15_b
16 Bit
16 Bit
C 0135
16
C 135.B 3
C 135.B 8
C 135.B 9
X5/28
C 135.B 10
C 135.B 11
C 0136/1
D C TR L_bIm p_b
D C TR L_bN A ctE q0_b
D C TR L_bC Inh_b
D C TR L_bS tat1_b
D C TR L_bS tat2_b
D C TR L_bS tat4_b
D C TR L_bS tat8_b
D C TR L_bW arn_b
D C TR L_bM ess_b
Bit3
Bit3
Bit8
Bit8
Bit9
Bit9
Bit10
Bit10
Bit11
Bit11
≥
≥
≥
≥
≥
1
1
1
1
1
QSP
DISABLE
CINH
TRIP-SET
TRIP-RESET
>
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
STAT
1
≥
DCTRL
D C TR L_bQ spIn_b
D C TR L_bR dy_b
D C TR L_bC Inh_b
D C TR L_bIm p_b
D C TR L_bTrip_b
D C TR L_bW arn_b
D C TR L_bM ess_b
D C TR L_bFail_b
D CTR L_w FaultNum ber
C 0168
DCTRL_bCwCCw_b
D CTR L_bExternalFault_b
D C TR L_bN A ctE q0_b
D C TR L_bS tat1_b
D C TR L_bS tat2_b
D C TR L_bS tat4_b
D C TR L_bS tat8_b
D C TR L_bInit_b
D C TR L_w S tat
C 0150
Abb. 2-15Drive control (DCTRL)
Tip!
A task overflow triggersa TRIPwhichalso stops the applicationprogramof thePLC!
Motorcontrol/drivecontrolandPLCapplicationprogramareotherwisecompletelyseparatedunless
there is a polling of the signals in the application program.
The SB DCTRLonly affects the motor or drive control of the controller.
For instance, the application program will not be stopped when the motor control has triggered a
TRIP.
DCTRL _bRdy_bBoolbinary%I X121.0.4--TRUE = ready to operate
DCTRL _bCInh_bBoolbinary%IX 121.0.7--TRU E= controller inhibited
DCTRL _bImp_bBoolbinary%I X121.0.1--TRUE = power output stage is
DCTRL _bTrip_bBoolbinary%IX121.0.2--TRU E= active error
DCTRL _bW arn_bBoolbinary%IX 121.0.12--TRUE = active warning
DCTRL_bMess_bBoolbinary%IX121.0.13--TRUE = active message
DCTRL _bFail_bBoolbinary%I X121.0.0--TRU E= active error
DCTRL _bCwCCw_bBoolbinary%IX121.0.5--FALSE= CW ,TRUE = CCW
DCTRL _bNActEq0_bBoolbinary%I X121.0.6--TRUE = motorspeed < C0019
DCTRL _bStat1_bBoolbinary%IX 121.0.8--general status (binary coded)
DCTRL _bStat2_bBoolbinary%IX 121.0.9--general status (binary coded)
DCTRL _bStat4_bBoolbinary%I X121.0.10--general status (binary coded)
DCTRL _bStat8_bBoolbinary%I X121.0.11--general status (binary coded)
DCTRL _bInit_bBoolbinary%IX 121.0.14--Sign aldu r ingthe initialisation
DCTRL_bExternalFault_bBoolbinary%IX121.0.15--TRU E= TRIPwas set through
DCTRL_wStatWord-%IW121C0150hexStatus word
DCTRL_wFaultNumberWord-%IW121.1C0168-Display of the current fault
– “ExternalFault”
– (external fault “EEr”)
TRI P -RESET
CAN/AIF control wordorC0135
high-impedance
phase on power-on
DCTRL _bTripSet_b
number (see monitoring)
Range of functions
• Operation inhibited (DIS ABLE)
• Controller inhibit (CINH)
• TRIP-SET
• TRIP-RESET
• Controllerstate
• Outputof digitalstatussignals
2-26
9300ServoPLCEN1.4
Page 39
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.8Drive control (DCTRL _DriveControl)
2.8.1Quickstop (QSP)
The drive is braked to standstill via the deceleration ramp C105 and generates a holding torque.
• The function can be operated via 3 inputs:
– Controlword
– Controlword
CAN1_wDctrlCtr
AIF_wDctrlCtrl
– Control word C0135.B3
• All inputs are linked by an OR-operation.
• C0136/1 displays the control word C0135
Tip!
QSPisonlysetif
MCTRL_bQspOut_b
from SB CAN1_IN
from SB AIF1_IN
is linked to
DCTRL_bQspIn_b
DCTRL_bQspIn_b
Any Variable
Abb. 2-16ProgrammingtheQSP-function, if SB DCTRL is to trigger QSP
OR
2.8.2Operat ion disabled (DISABLE)
In this state,youcannotstartthedrivewith thecontrollerenablecommand.The power outputstages
are disabled. All speed/current/position controllers are reset.
• The function can be operated via 3 inputs:
– Controlword
– Controlword
– Control word C0135.B8
The power output stages are disabled. All speed/current/position controllers are reset.
• The function can be operated via 6 inputs:
– Terminal X5/28 (FALSE = controller disable)
– Controlword
– Controlword
– Control word C0135.B9
– System variables
– System variables
• All inputs are linked by an OR-operation.
• C0136/1 displays the control word C0135
2.8.4TRIP-SET
The drive is operated in the state selected under C0581, and signals “ExternalFault”.
• The function can be operated via 4 inputs:
– Controlword
– Controlword
– Control word C0135.B10
– System variables
• All inputs are linked by an OR-operation.
• C0136/1 displays the control word C0135
CAN1_wDctrlCtr
AIF_wDctrlCtrl
DCTRL_bCInh1_b
DCTRL_bCInh2_b
CAN1_wDctrlCtr
AIF_wDctrlCtrl
DCTRL_bTripSet_b
from SB CAN1_IN
from SB AIF1_IN
(VAR_INPUT)
(VAR_INPUT)
from SB CAN1_IN
from SB AIF1_IN
(VAR_INPUT)
2.8.5TRIP-RESET
TRIP-RESET resets an active TRIP, provided that the cause of the fault has been removed. If the
cause of the fault is still active, there is no reaction.
• The function can be operated via 4 inputs:
– Controlword
– Controlword
– Control word C0135.B11
– System variables
• All inputs are linked by an OR-operation.
• The function can only be performed by a FA LSE-TRUEtransition of the signal resulting from
theORoperation.
• C0136/1 displays the control word C0135
Tip!
If TRUEis present at one of the inputs, no FALSE -TRUEtransition can occur in the resulting signal.
CAN1_wDctrlCtr
AIF_wDctrlCtrl
DCTRL_bTripReset_b
from SB AIF1_IN
from SB CAN1_IN
(VAR_INPUT)
2-28
9300ServoPLCEN1.4
Page 41
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.8Drive control (DCTRL _DriveControl)
2.8.6DCTRL_wFaultNumber
An existing fault can be read using the system variable
For the assignment of the error numbers refer to chapter ”Monitoring” of the description of the
automation system.
2.8.7DCTRL_bExternalFault_b
If
DCTRL_bTripSet_b
DCTRL_bE xternalFault_b
triggers aTRIP,thenthestate changesfrom
remains TRUE, until either
reset the TRIP.
2.8.8Controller state
The state is binary-cod ed in the system variables
(VAR_INPUT).
DCTRL_bStat8_b DCTRL_bStat4_b DCTRL_bStat2_b DCTRL_bStat1_b Action of the controller
0000Initialization after connection of the supply voltage
0001Lock mode, Protectionagainst restart active C0142
0011Driveisincon t rollerinh ib itmode
0110Controller enabled
0111The release of a monitoring function resulted in a ”message”
1000The triggering of a monitoring function resulted in a TRIP
DCTRL_wFaultNumber
DCTRL_bE xternalFault_b
DCTRL_bTripSet_b
, keypad, GDC or codes
DCTRL_bStat1_b
= C0168.
toTRUE.
...
DCTRL_bStat8_b
0 F ALSE
1TRUE
2.8.9Output of digit al statussignals
Defined signals areoutput at
word.
Thestatus wo rd is assembled fro m the following signals:
• Generated signals in the SB DCTRL
• Signalsfrom syst em variables, with outputs that you can program
System variables,which you can use to assign defined signals
to the status word
DCTRL _bStatB0_bDCTRL_bImp_b
DCTRL _bStatB2_bDCTRL_bNActEq0_b
DCTRL _bStatB3_bDCTRL_bCInh_b
DCTRL _bStatB4_bDCTRL_bStat1_b
DCTRL _bStatB5_bDCTRL_bStat2_b
DCTRL _bStatB14_bD CTR L _bStat4_b
DCTRL _bStatB15_bD CTR L _bStat8_b
DCTRL_wStat
asastatusword.With C0150 youcandisplay the status
Signals generated in SB DCTRL, that are assigned to the status
word
DCTRL _bW arn_b
DCTRL_bMess_b
The bitwise assignment of the status word can be found in the diagram for the SB DCTRL (see
Abb.2-15).
9300ServoPLCEN1.4
2-29
Page 42
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.8Drive control (DCTRL _DriveControl)
2.8.10Control word and status word
Ifthecontroland/orstatuswordfromDCTRL_DriveControl isassignedtotheAIF1_IO/CAN1_IO,then
this must be implemented by the user .
Examples:
LD DCTRL_wStat
ST AIF1_wDctrlStat
ST CAN1_wDctrlStat
LD AIF1_wDctrlCtrl
ST DCTRL_wAIF1Ctrl
LD CAN1_wDctrlCtrl
ST DCTRL_wCAN1Ctrl
2-30
9300ServoPLCEN1.4
Page 43
9300 Se rvo PL C
Show/Hide Bookmarks
System blocks
2.9Digital master frequency input (DF_IN_DigitalFrequency)
2.9Digital master frequency input (DF_IN_DigitalFrequency)
M odule number: 21
This SB canconvert and normalize a pulse current at the digital frequency input X9into a speed and
phase-angle setpoint. The transmissionof a digital frequency is very precise (without offset and gain
errors).
X9
Abb.2-17Digitalfrequencyinput(DF_IN)
(X 9/8)
4V
MP
E5
C 0427
C0425
MONIT-SD3
0
1
C 0428
C0426
D FIN _bE ncFaultC able_b
TP/M P
D FIN _bT PR eceived_b
-C trl
D F IN _ d n In c L a s tS c a n _ p
C 0429
DF_IN
D FIN _nIn_v
VariableName
DataTypeSignalTypeAddressDISDIS formatNote
DFIN_nIn_vIntegervelocity%I W21.0C0426dec [rpm]Value in incr./msec
DFIN_bEncFaultCable_bBoolbinary%IX21.1.0--TRUE = monitoring “FaultEncCa-
ble” has been triggered, because
X9/8 has no voltage applied, and
so the digital frequency coupling
is interrup ted
DFIN_bTPReceived_bBoolbinary%I X21.1.2-DFIN_dnIncLastScan_p Do uble Integerposition% ID21.1--
Range of functions
• Digitalfrequency inputX9
• Technical data for the connection of X9 and X10
• Touc h-probe
9300ServoPLCEN1.4
2-31
Page 44
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.9Digital master frequency input (DF_IN_DigitalFreq uency)
2.9.1Digital frequency input X9
• The digital frequency input X9 is dimensioned for signals with TTL levels.
• You can use C0425 to adapt the drive to the sensor/encoder that is connected or to the
preceding drive controller in the case of digital-frequency cascade or digital-frequency-bus
operation.
Finer resolutions can be achieved by adding a following FB (e.g. L_CONV).
Example:
nOut_a f[Hz]ô
60
no. of incr._from C0425
ô
nDenominator
14
2
ô
15000
nNumerator
ô
15000
14
2
X9
Abb. 2-21Digital frequency input (DF_IN)with following FB for normalization
(X 9/8)
C 0425
4V
MP
E5
C 0427
MONIT-SD3
TP/M P
0
1
C 0428
C 0426
D FIN _bE ncFaultC able_b
D FIN _bT PR eceived_b
-C trl
D FIN _dnIncLastS can_p
C 0429
DF_IN
D FIN _nIn_v
Stop!
IfC0540= 0, 1, 2 (signalat X10,seeSBDFOUT)and feedback systemC0025 > 10 youmust not use
the digital frequency input X9.
nIn_a
L_CONV3
nN um erator
nD enom inator
L_CONV
nO ut_a
2-34
9300ServoPLCEN1.4
Page 47
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.9Digital master frequency input (DF_IN_DigitalFrequency)
2.9.2Technical data for the connection of X9 and X10
Digitalf requency output X10Digital frequency input X9
Features:
• Sub-D female connector, 9-pole
• Output frequency: 0 - 500 kHz
• Current consumption per channel: max 20mA.
• Two-trackwithinverse 5 Vsignalsandzerotrack
• Loadcapability:
– For parallel connection, a maximumof three slaves can be con-
nected.
– With a series connection, any number of following drives can be
conn ected .
• Wh enPIN8 (EN )sho w sa LO Wlevel, the masteris initialized (e.g.
if the mains was disconnected) . The slave can thus monitor the
master.
Features:
• Sub-D male connector , 9-pole
• Input frequency: 0 - 500 kHz
• Current consumption per channel: max 6mA.
• Two-trackwithinverse 5 Vsignalsandzerotrack
• Possible input signals:
– Incremental encoders with two 5V complementary signals (TTL-
level source), shifted by 90°
– Encoder simulation of the master
• PIN8 serves to monitor the cable or the connected controller:
– When this PINshows a LOWlevel, the monitoring “FaultEncCa-
ble” (”SD3”) is triggered.
– If the monitoring is not required, this input can be tied to +5V.
• The input is disconnected at C0540 = 0, 1, 2 or 3.
Master
X10
B
1
A
2
A
3
4
GND
Pin assignment X10Pin assignment X9
123456789123456789
BAA+5V GNDZZENBBAA+5 V GNDZZLCB
5
Z
6
Z
7
enable
8
B
9
C able length m ax. 50 m
9 pole Sub-D connector
Slave
X9
mm
B
1
0.14 26
A
2
A
3
4
GND
5
Z
6
7
8
9
9 pole Sub-D m ale connector
Z
Lam p
control
B
0.14 26
0.5 20
0.14 26
∅
2
AW G
0.5 20
F o r C W ro ta tio n
A
A
B
B
Z
Z
9300ServoPLCEN1.4
2-35
Page 48
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.9Digital master frequency input (DF_IN_DigitalFreq uency)
2.9.3Touch-Probe (TP)
TP
Abb. 2-22Function diagram of a TP
Time-equidistant start of an interval-task
ϕ Phase-angle signal
Functional sequence
1. TheTPistriggeredby a FALSE- TRUEedgeat the d igitalinputX5/E5or by a zero pulsefrom
X9 (only if an encoder is attached).
– Use C0428 to select whether the TP should be carried out by the MP (marker pulse “zero
pulsefromencoder”) or from the X5/E5 input.
– Use C0429 to set a delay (unit: incr.)for a TP. This means that the TP/MP-Ctrl has a delyed
response to a TP.
– Through C0431 you can set up whether the TP from E5 should be triggered by a rising or
falling edge(0 = rising edge, 1 = falling edge).
2. If a TP has occurred, then
3. After the start of the task,
that have been counted since the TP.
4. Following,
DFIN_bTPReceived_b
ϕ
D FIN _dnIncLastS can_p
DFIN_bTPReceived_b
DFIN_dnIncLastScan_ p
= FALSEis set.
switches immediately = TRUE.
gives the number of increments [inc/ms]
Note!
It is also necessary that
DFIN_nIn_v
• The value
(INT)16384 cirresponds to 15000 rpm.
• For every task in which
that is reset after every start of the task.
2-36
DFIN_nIn_v
DFIN_nIn_v
is scaled in increments per millisecond.
DFIN_nIn_v
is processed in the task, so that the SB DFIN is read in.
is used, t he operating syst em creates an individual counter
9300ServoPLCEN1.4
Page 49
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.9Digital master frequency input (DF_IN_DigitalFrequency)
Example (
DFIN_nIn_v
in a 10 msec task):
• When the 10 msec task starts, the value of the counter is stored in a local area of the task and
the counter is reset. The value in the local area goves an average value in increments per 1
msec.
• If a position value is to be derived from this value, then it must be multiplied by
SYSTEM_nTaskInterval
10 msec, as in the example.
Example: In a 1 msec task,
/ 4, to get the result in increments per
SYSTEM_nTaskInterval
has the value 4 (4 * 250 µs=1msec)
• For Lenze FBs, this procedure has already been implemented in the FBs.
9300ServoPLCEN1.4
2-37
Page 50
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.10Digital frequency output (DF_OUT_DigitalFrequency)
2.10Digital frequency output (DF_OUT_DigitalFrequency)
M odule number: 22
Converts internal speed signals into frequency signals and outputs them, for example, to following
drives. The transmission is very precise (without offset and gain errors).
Abb. 2-23Digital frequency output (DF_OUT)
VariableName
DataTypeSignalTypeAddressDISDIS formatNote
DFOUT_nOut_vIntegervelocity%QW22.0C0547
DFOUT_nIn_vIntegervelocity%I W22.0--
Range of functions
• Output signals on X10
• Output of an analog signal
• Output of a speed signal
• Encoder simulation of the resolver with zero track in resolver zero position
• Direct output of X8
• Direct output of X9
• Technical data for the connection of X9 and X10
D FO U T _nO ut_v
X9
X8
C 0540
C 0030
C 0540
0
1
C 0547
2
4
5
C 0549
n
max
CTRL
C 0545
DF_OUT
D FO U T _nIn_v
C 0540
0
1
2
4
5
X10
dec [%]
C0549
dec [rpm]
Note!
TheDF_OUT syst em block operates with residualvalues.
2-38
9300ServoPLCEN1.4
Page 51
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.10D i gital frequency output (DF_O UT_DigitalFrequency)
• The output signal corresponds to the simulation of an incremental encoder:
– Track A, track B and the zero track (if necessary) as well as the corresponding inverted
tracks are output with tracks shifted by 90°.
– The levels are TTL-compatible.
• The signal sequence in the diagram occurs if the input values are positive (CW rotation).
• If the input values are negative (CCW rotation),track B leads track A by 90° .
• Thezero-track output only occurs when C0540 = 2.
• The function of the digital frequency output X10is determined via C0540.
Note!
C0540 = 0 ... 2 is not possible if the connection has been made to digital frequency input DFIN X9
and C0025 > 10 has been selected. (
[C0540] Signal at X10
0
1
2Encodersimulationof theresolverwithzerotrackinresolverzerotrack (mechanical assembly tothe motor)
4The signal at input X9 is amplified electrically and is output directly to X10 (C0030 has no function)
5The signal at input X8 is amplified electrically and is output directly to X10 (C0030 has no function)
DFOUT_nOut_v
100 % ≡ (I NT)16384 ≡ C0011 (N
DFOUT_nOut_v
15000 rpm≡ (INT)16384
is interpreted as an analog signal [%]and given out as a frequency signal at X10.
is interpreted as a speed (rpm)signal [%]and given out as a frequency signal at X10.
• C0030 is used to set the encoder constant of the encoder simulation.
X5/A1freely assignable
X5/A2freely assignable
X5/A3freely assignable
X5/A4freely assignable
X5/39Ground of the digital inputs and outputs
X5/59Supply input for the control module:
This SB can be used to assign c ode values directly to variables. The code value that is entered is
converted into the corresponding variable value by a fixed scaling routine.
• In Abb. 2-27 you will find code names inYou can configure these codes. Their
valuesareassigned directly to the corresponding variables.
– A fixed scaling routine relates the codes to the variable values.
– Inthecode table, youcanfind the optionsthat can be set,and the Lenzesettings.
• Example:
– You can enter a defined speed (rpm) through C0017. This value is assigned to the variables
FCODE_nC17_a
2-46
withthedatatype“Integer”.
9300ServoPLCEN1.4
(^4-15)
Page 59
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.12Free Codes (FCODE_FreeCodes)
Important:
Thec odeC0470isnotavailableasasystemvariable.Thiscodeoccupiesthesamem emoryaddress
as code C0471. The double-word is divided into 4 bytes (C0470/1...4). Code C0470 can be written
to via the keypad/GDC.
Normalization in the 9300 Servo PLC:
• rpm Õ INT
max
14
[C0011]
• 15000 rpm163842
• % Õ INT
• 100 %16384n
9300ServoPLCEN1.4
2-47
Page 60
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13Internal motor control (MCTRL_MotorControl)
This SB contains the control functions for the drive machine. It consists of: phase-angle controller,
speed controller and motor control.
M C TR L_bQ spO ut_b
M C TR L_nH iM Lim _a
M C TR L_nLoM Lim _a
M C TR L_bN M S w t_b
M C TR L_bILoad_b
M C TR L_nIS et_a
C 0105
M C TR L_nN Set_a
C 0906/1
M C TR L_P A dapt_a
M C TR L_dnP osSet_p
M C TR L_nP osLim _a
M C TR L_bP osOn_b
M C TR L_nN StartM Lim _a
M C TR L_nM A dd_a
M C TR L_nFldW eak_a
C 0906/9
C 0908
C 0907/3
C 0906/4
C 0906/3
C 0907/2
C 0907/4
C 0906/8
±100%
C 0254
C 0906/5
C 0907/1
C 0906/6
C 0906/2
C 0906/7
C 0909
1
+
0
+
1
+
-
C 0072
C 0070
C 0071
-
+
+
+
UG-VOLTAGE
C 0053
0
1
C 0173
1
0
C 0086
MONIT-LU
MONIT-OU
M C TR L_bQ spIn_b
C 0042
M C TR L_nN SetIn_a
C 0050
MCTRL_bMMax_b
M C TR _nM S etIn_a
C 0056
M C TR L_bIM ax_b
M C TR L_nIA ct_a
M C TR L_nD C Volt_a
M C TR L_nM A ct_a
VECT-CTRL
C 0006
C 0022
C 0075
C 0076
C 0077
C 0078
C 0081
C 0084
C 0085
C 0087
C 0088
C 0089
C 0090
C 0091
M C TR L_bU ndervoltage_b
M C TR L_bO vervoltage_b
MCTRL
PW M
C 0018
RESO LVER
X7
ENCODER
X8
M C TR L_bFreqEnable_b
C 0420
C 0490
C 0495
TP/M P
MP
0
1
C 0911
-C trl
C 0910
E4
Abb.2-28Internal motor control (MCTRL)
C 0051
C 0025
C 0011
C 0497
const
MONIT-Sd2
Im otor
C 0596
MO NIT-NM AX
TEMP-MOTOR
(X 7 or X 8)
C 0063
T e rm ina l(T 1/T 2 )
const
const
0
150
C 0121
D IN 44081
MONIT-OC1
MONIT-OC2
C
MONIT-OH3
MONIT-OH7
MONIT-OH8
CONST
M C TR L_bS hortCiruit_b
M C TR L_bE arthFault_b
M C TR L_nP os_a
M C TR L_nN Act_v
M C TR L_nN Act_a
M C TR L_dnP os_p
M C TR L_bN m axFault_b
M C TR L_bR esolverFault_b
M C TR L_bA ctW aitForTP_b
M C TR L_bA ctTP Received_b
M C TR L_dnA ctIncLastS can_p
M C TR L_nN m axC 11
M C TR L_bTM otG TS etV alue_b
M C TR L_bTM otG TC 0121_b
M CTR L_bPTCO verTem p_b
2-48
9300ServoPLCEN1.4
Page 61
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
• Theproc ess image is created in a fixed system task (interval: 1 msec).
Exception:
are read into the process input image of the task in which they are actually used.
VariableNameDataTypeSignalTypeAddressDISDIS format Note
MCTR L_bQspOut_bBoolbinary%Q X131.0.0C0907/3binTRUE = drive performsQSP
MCTR L_nHiML im_aIntegeranalog%Q W131.4C0906/4dec [%]Up pertorque limit in %ofC0057
MCTRL_nLoMLim_aIntegeranalog%QW131.3C0906/3dec [%]Lower torquelimit in % of C0057
MCTR L_bNMS wt_bBoolbinary%QX131.0.1C0907/2binFALSE= speed controlactive
MCTR L_nNAdapt_aIntegeranalog%QW131.12--Adaptive Vp of the speed controller
MCTR L_bILoad_bBoolbinary%QX131.0.3C0907/4binTRUE= I component of the n-control-
MCTR L_nISet_aIntegeranalog% QW131.7C0906/8dec [%]Inputto set the I-component of the
MCTR L_nNSet_aIntegeranalog%QW131.1C0906/1dec [%]Input speed setpoint
MCTR L_nP Adapt_aIntegeranalog%Q W131.8C0906/9dec [%]Influence in % onVPof C0254; the ab-
MCTR L_dnPo sSet_pDouble integerposition% QD131.5C0908dec [inc]I nputphase controller for difference
MCTRL_nPosLim_aIntegeranalog%QW131.9C0906/5dec [%]Influence of the phase controller in %
MCTR L_bPtcOverTemp_bBoolbinary%IX 131.0.13--Monitor: moto rover temperature (P T C)
MCTR L_nNmaxC11Integer-% IW131.15--Shows the max. speed set under
Function range
• Current c ontroller
• Torque limiting
• Additionaltorquesetpoint
• Speed controller
• Torque control with speed limit
• Limiting of speed setpoint
• Phase controller
• Rapidstop(Quickstop,QSP)
• Field weakening
• Chopping frequency changeover
• Touc h-probe
• Monitoring
Boolbinary%IX 131.0.11--Monitor:mo to rtemperature > 150 ºC
Boolbinary%IX 131.0.12--Monitor:mo to rtemperature > C0121
Boolbinary%IX 131.0.14--Monitor:
Boolbinary%IX 131.0.15--Monitor:
heat sink temperature > 85 ºC
heat sink temperature > C0122
C0011
2.13.1Current controller
Adapt current controller under C0075 (proportional gain) and C0076 (adjustment time) to the
connectedmachine.
Tip!
Set a suitable motor from themotor selection list (seeOperating Instructionsforthe drivecontroller)
in C0086. This automatically sets the correct parameters for the current controller.
2-50
9300ServoPLCEN1.4
Page 63
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13.2Additional torque setpoint
MCTRL_nMAdd_a
oranadditionaltorquesetpoint.Theadditionaltorquesetpointcanbeused,forexamplefor friction
compensation or for speed injection (dv/dt).
• With
• With
MCTRL_bNMSwt_b
MCTRL_nMAdd_a
–
– The limits given by the torque limiting
be exceeded.
MCTRL_bNMSwt_b
–
MCTRL_nMAdd_a
– The n-controllers have a monitoring function.
• Thetorque setpoint is provided in [%] of the maximum torque (code C0057 = 100% = 16384).
– Negativevalues meana torque with CCWrotationof the motor.
– Positive values mean a torque with CW rotation of the motor.
2.13.3Torque limiting
Via
MCTRL_nLoMLim_a
that different torques can be set for the quadrants ”driving” and ”braking”.
•
MCTRL_nHiMLim_a
C0057 = 100% = 16384).
•
MCTRL_nLoMLim_a
C0057 = 100% = 16384).
• the torque limiting is deactivated for a Quickstop.
is used, depending on the operation of
= FALSE ,the speed control is active.
isadded t o the output of the n-c ontroller.
MCTRL_nLoMLim_a
= TRUE, the t orque control is active.
acts as a torque setpoint.
and
MCTRL_nHiMLim_a
istheupper torquelimit in[%] of themaximum possible torque(code
is the lower torque limit in [%]of the maximum possible torque (code
youcanset anexternaltorquelimiting.Thismeans
MCTRL_bNMSwt_b
and
MCTRL_nHiMLim_a
as a torque setpoint
cannot
Stop!
In
MCTRL_nHiMLim_a
otherwise the speed controller may lose control.The drive may accelerate out of control.
2.13.4Speed controller
The speed controller is designed as an ideal PID - controller.
Parameter setting
When a motor from the table is selected under C0086, the parameters are set so that only very few
adaptations to the application are required.
• Parameterize proportional-gain Vp in C0070:
– Enter approx. 50% setpoint speed (100% = 16384 = n
– Increase C0070, until the drive becomes unstable (observe motor noises).
– Reduce C0070, until the drive becomes stable again.
– Reduce C0070 to approx. 50%
set only positive values, and in
MCTRL_nLoMLim_a
)
max
only negative values,
9300ServoPLCEN1.4
2-51
Page 64
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
• Integral-action time T
– Reduce C0071, until the drive becomes unstable (observe motor noises).
– Increase C0071, until the drive becomes stable again.
– Set C0071 to approx. twice the value.
• Differential-gain T
– Increase C0072 during operation until an optimum control behaviour is achieved.
Via
MCTRL_nNAdapt_a
• Vp =
MCTRL_nNAdapt_a
, parameterizein C0071:
r
, parameterizein C0072:
d
you can alterVpthroughthePLCprogram:
x C0070 (
MCTRL_nNAdapt_a
default = 100 % ≡ 16384)
• Vp = 100 % x C0070 ≡ Vp = C0070
Signal limit
When thedriveoutputsthemaximum torque, thespeedcontroller is at its limit.
• The drive cannot follow the speed setpoint.
• With
Set integral component
To enter defined starting values for the torque, the integral component of the n-controller can be set
externally (e.g. when using the brake control).
•
•
MCTRL_bMMax_b
MCTRL_bILoad_b
– The n-controller accepts the value at
–Thevalueat
= 100% = 16384) (pos. sign for clockwise rotation).
(n
max
– Use the upper speed limit only for the clockwise direction of rotation.
• n-controller 2 (a uxiliary controller)generates the lowerspeed limit.
– The lower speed limit is given at
= 100% = 16384) (negative sign for CCW/anticlockwise direction of rotation).
(n
max
– Use the lower speed limit only for the CCW direction of rotation.
= TRUE activates this function. For the speed restriction, a second speed
acts as a bipolar torque setpoint.
MCTRL_nNSet_a
MCTRL_nNStartLim_a
in [%] of n
in [%] of n
max
(C0011)
(C0011)
max
2-52
9300ServoPLCEN1.4
Page 65
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13.6Speed-setpoint restriction
Thespeed setpo int restriction in the input
(n
= 100% = 16384).
max
You can use C0909 to set a restriction of rotational direction, referred to the speed setpoint.
2.13.7Phase-angle controller
The phase controller is required to achieve a phase synchronization and driftfree standstill.
Tip!
Select a configuration with digital frequency coupling (*.lpc), since this allows an automatic
connection of all important signals. On this basis, you can optimize t he system.
Activate phase controller
1. Assign
between the set and actual phase-angles.
2. At
3. Switch
4. Set the gain (C0254)for the phase-angle controller > 0.
– Before setting C0254, select a P-gain (C0070)for the n-controlleras high as possible.
– During operation increase C0254, until the drive shows the desired control behaviour.
MCTRL_nPosLim_a
MCTRL_nPosLim_a
MCTRL_bPosOn_b
enter a value > 0.
MCTRL_nNSet_a
to a signal source that provides the phase-angle difference
=TRUE.
is to ±100% of n
(^2-51)
max
(C0011)
Phase controller influence
The output of the phase controller is added to the speed setpoint.
• If the actual phase is lagging, the drive is accelerated.
• If the actual phase is leading, the drive is decelerated, until the desired phase synchronization
is achieved.
The influence of the phase controller consists of:
• Phase difference multiplied by the P-gain V
• Additional influence of an analog signal at
= C0254 *
(V
p
MCTRL_nPAdapt_a
/ 16384)
• Limiting of the phase-angle controller output to ±
Limiting of the phase-angle controller output
This limits the maximum catch-up speed of the drive in the event of large phase differences.
(C0254).
p
MCTRL_nPAdapt_a
MCTRL_nPosLim_a
.
.
9300ServoPLCEN1.4
2-53
Page 66
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13.8Quickstop QSP
Thequick stop function is used to stop thedriveindependently of thesetpoint input,withina time
to be set.
DCTRL_bQspIn_b
Any Variable
Abb. 2-29ProgrammingtheQSP-function, if SB DCTRL is to trigger QSP
The Quicksto p functio n is active if
OR
MCTRL_bQsp_b
IftheSB DCTRListo triggerQSP, programtheQSP-functionaccording to Abb.2-29.
Function:
• Iftorque controlisselected,thiswillbe deactivated. Thedriveiscontrolled by thespeed
controller.
• The speed decelerates to zero, with the deceleration time set under C0105.
• The torque limiting
MCTRL_nLoMLim_a
and
MCTRL_nHiMLim_a
• The phase controller is activated. If the rotor position is shifted actively, the drive generates a
torque against this displacement, if
– C0254 is not zero
–
MCTRL_nPosLim_a
triggered with a value > 0%.
MCTRL_bQspOut_b
MCTRL_nHiMLim_a
MCTRL_nLoMLim_a
MCTRL_bNMSwt_b
MCTRL_bILoad_b
=TRUE
C0907/3
C0906/4
C0906/3
C0907/2
are switched to inactive.
Stop!
If the field is weakened manually (
maximum t orque.
2.13.9Field weakening
The field weakening does not have to be set if the motor type was set under under C0086. All
necessarysettings aredoneautomatically. Themotor is operatedinthefield weakening,if:
• the output voltage of the controller exceeds the rated motor voltage set under C0090.
• the controller can no longer increase the output voltage with increasing speed, due to the
mains voltageor DC bus voltage.
Manualfield w eakening
A manual field weakening is possible via
MCTRL_ nFldWeak _a
Stop!
The available torque is reduced by the field weakening.
MCTRL_ nFldWeak _a
MCTRL_ nFldWeak _a
must have +100% (= 16384)applied.
< 100%), the drive cannot supply the
For max. excitation,
2-54
9300ServoPLCEN1.4
Page 67
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13.10Chopping frequency changeover
You can select the following frequency for the inverter:
• 8 kHz fixed, for operation with optimum power (C0018 = 1)
– maximum power output of the controller, but with audible pulse operation
• 16 kHz fixed, for operation with optimum noise (C0018= 2)
– inaudible pulse operation of the controller, but with reduced power (torque)
• automatic change-over between operation with optimum power and optimum noise
(C0018 = 0)
Automatic chopping frequency changeover
The automatic chopping frequency changeover can be used if you want to operate the drive in the
noise-optimized range, but the available torque in this case is not sufficient for acceleration
purposes.
Condition M = f(I)Function
M< M
M
r16(Ir16
M> M
)Controller operates with 16 kHz (optimumnoise)
r16(Ir16
)< M< Mr8(Ir8)Controller changes to 8 kHz (optimumpower)
max8(Imax8
)C ontroller operateswith8 kHzat its curren tlimit
9300ServoPLCEN1.4
2-55
Page 68
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13.11Touch-Probe (TP)
TP
Abb. 2-30Function diagram of a TP
Time-equidistant start of an interval-task
ϕ Phase-angle signal
Functional sequence
1. TheTPistriggeredby a FALSE- TRUEedgeat the d igitalinputX5/E4or by a zero pulsefrom
X8 or X7.
– Use C0911 to select whether the TP should be carried out by the MP (marker pulse input X8
or zeropulsefromresolver)or from t he X5/E4 input.
– Use C0910 to set a delay (unit: increments) for a TP. This means that the TP/MP-Ctrl has a
delayed response to a TP.
– Through C0912 you can set up whether the TP from E4 should be triggered by a rising or
falling edge (0 = rising edge, 1 = falling edge).
– Use C0490 to select the feedback system that generates the zero pulse.
2. If a TP has occurred, then
3. After the start of the task,
[inc/msec] that have been counted since the TP.
4. Following,
MCTRL_bActTPReceived_b
ϕ
M C TR L_dnA ctIncLastS can_p
MCTRL_bActTPReceived_b
MCTRL_dnActIncLastScan_p
= FALSEis set.
=TRUE.
gives the number of increments
Tip!
Itis also necessarythat
MCTRL_nNAct_v
• The value
(INT16384 ≡ 15000 rpm)
• For every task in which
counter that is reset after every start of the task.
2-56
MCTRL_nNAct_v
MCTRL_nNAct_v
MCTRL_nNAct_v
is processed in thetask, so that the SB MCTRLis read in.
is scaled in increments per millisecond.
is used, t he operating syst em creates an individual
9300ServoPLCEN1.4
Page 69
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
Example (
MCTRL_nNAct_v
in a 10 msec task):
• When the 10 msec task starts, the value of the counter is stored in a local area of the task and
the counter is reset. The value in the local area gives an average value in increments per 1
msec.
• If a position value is to be derived from this value, then it must be multiplied by
SYSTEM_nTaskInterval
Example: In a 1 msec task,
/ 4, to get the result in increments per 10 msec, as in the example.
SYSTEM_nTaskInterval
• For Lenze FBs, this procedure has already been implemented in the FBs.
2.13.12System marker MCTRL_nNmaxC11
The system marker
reference value for all “_a” values (16384≡
• With the help of this system m arker you can program your own scaling routines in the
parameter manager .
• Example: C0011 = 3000 rpm →
MCTRL_nNmaxC11
MCTRL_nNmaxC11
shows the max. speed set under C0011. This value is the
MCTRL_nNmaxC11
2.13.13Monitoring
Various monitoring functions protect the drive from impermissible operating conditions.
Ifa monitoringfunctionis activated,
• thecorrespondingset reactionistriggered,
• boolean (logic) variables are set to TRUE. You can use these variables in the PLC application
program.
has the value 4 (4 * 250 µs=1msec)
)
= 3000
2.13.13.1Undervoltage(LU)
• This functionmonitors the DC-bus andprotects thedrive.
• Themessageis triggered b y
Supply voltage rangeSelection number
< 400 V0285 V430 V
400 V1285 V430 V
400 0 460 V2328 V473 V
480 V without brake chopper3342 V487 V
Operationwithbrake chopper
(u pto 480 V)
Function
The monitoring reacts if the DC-bus voltage (terminal +U
(switch-off level)that was set by C0173.
Themessage is reset if the voltage goes above the switch-of f threshold again.
Theswitch-off thresholddeterminesthevoltagelevelofthe DC-busvoltageatwhichthepulse inhibit
isactivated.
The input variable
The selection number is also effective for the overvoltage monitoring OU.
Adapt the setting of the codes to the available mains voltage (also for operation
via+U
havethesamesetting.
/-UG-terminals). When the controllerisoperated ina networkof drives, allcontrollersmust
G
MCTRL_ bUndervoltage_b
MCTRL_ bUndervoltage_b
Switch-off thresholdSwitch-on threshold
(C0173)
4342 V487 V
canbeprocessedinthePLCapplicationprogram.
=TRUE.
and -UG) goes below the t hreshold
G
(^2-58)
9300ServoPLCEN1.4
2-57
Page 70
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
If the undervoltage ( LU)message is present for more than 3 seconds or if the event is a power-on,
this is entered into the history buffer.Thiscan be the caseif thecontrol module is supplied externally
by terminals X5/39 and X5/59 and the mains is switched off.
If the signal is reset (mains is reconnected)this is not entered in the history buffer, but only deleted
(thisisnota fault, but acontrollerstate).
If the events are low voltage messages appearing only for less than 3 seconds, this is interpreted as
interference(e.g.mainssupplyfault)and enteredintothe historybuffer.Inthis case,thehistory buffer
is continued.
Features:
• LECOM no.: 1030
• Reaction: MESSAGE (cannot be modified)
2.13.13.2Overvoltage (OU)
• This functionmonitors the DC-bus andprotects thedrive.
• Themessageis triggered b y
MCTRL_bOvervoltage_b
=TRUE.
Supply voltage rangeSelection number
< 400 V0770 V755 V
400 V1770 V755 V
400 0 460 V2770 V755 V
480 V without brake chopper3770 V755 V
Operationwithbrake chopper
(u pto 480 V)
Function
The monitoring reacts if the DC-bus voltage (terminal +U
(switch-off level)that was set by C0173.
The message is reset if the voltage falls below the switch-off threshold again.
The table above shows the setting of the switching thresholds according to the selection number.
Theswitch-off thresholddeterminesthevoltagelevelofthe DC-busvoltageatwhichthepulse inhibit
isactivated.
The selection number is also effective for the undervoltage monitoring (LU).
Features:
(C0173)
4800 V785 V
Switch-off thresholdSwitch-on threshold
and -UG) goes above the threshold
G
(^2-57)
• LECOM no.: 1020
• Reaction: MESSAGE (cannot be modified)
Afrequent overvoltagemessageindicatesanincorrect dimensioning ofthe drive(thebraking energy
is excessive).
2-58
9300ServoPLCEN1.4
Page 71
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
Remedy:
• Use supply module 934X or
• Use (additional)brake choppers type 935X
When several controllers are operated simultaneously, an operation as DC bus connection may be
useful.
Here,thegenerated b rake energy of one drivecan serveasdriveenergyfor anotherdrive.
The mains connections only supply the energy difference.
2.13.13.3EarthFault(monitoringforearthfaultOC2)
• This functionprotec ts thedrivec ontroller.
• Themessageis triggered b y
Function
The controllers of the 93XXseries are equipped with an earth fault detection as a standard.
If the monitoring is triggered, the drive controller must be disconnected from the mains power and
the earth fault must be removed.
Features:
• LECOM no.: 12
• Reaction: TRIP(cannot be modified)
MCTRL_bEarthFault_b
=TRUE.
Possible earth fault causes:
• Short-circuit to frame of the machine
• Short-circuit of a phase to the screen
• Short-circuit of a phase to PE
2.13.13.4ShortCircuit (monitoring for a short-circuit OC1)
• This functionprotec ts thedrivec ontroller.
• Themessageis triggered b y
Function
Thismonitoring is triggered byashort-circuit of themotor phases.Itcan also beashort-circuit of the
windings in the machine.
This monitoring however,also reacts during mains connection (power-on),if there is an Earth fault
present.
If the monitoring is triggered, the drive controller must be disconnected from the mains power and
the earth fault must be removed.
• Thisfunctionprotects t he motor from overheat ing
• Themessageis triggered b y
Function
Thesignal TMot>SetValue is derived from a comparator with hysteresis. The switch-off threshold is
150°C, and is fixed. The hysteresis is also fixed and amounts to15°C ( i.e. the reclosing point is
135°C.This monitoring is only effective for the thermal sensor specified by Lenze as it is included in
the standard Lenze servo motor.The Sub-D connectors X7 or X8 serve as inputs.
Stop!
You can only use X7 or X8.Theother input must notbeassigned (mustremainopen).Thismonitoring
isactivatedby default setting. Thismeansthat themonitoringreactsifnoLenzeservomotor isused.
This monitoring is designed as a warning before the final disconnection (TRIP) through
TMot>SetV alue.
You can thus influence the process to avoid a switch-off of the motor at an inconvenient time.
Additionally, blowers which would cause an unacceptable noise in continuous operation, can also
be switched on and off.
Function
The signal TMot>C0121 is derived from a comparator with hysteresis.
The same conditions apply here as for the monitoring TMot>SetValue (motor-temperature
monitoring OH3),since the same inputs are used.
The threshold is set under code C0121. The hysteresis is fixed and amounts to 15 K. The signal is
Thesignal PTCOverTemp is derived from the digital signalvia the terminalsT1, T2 next to the power
terminals UVW. The threshold and the hysteresis depend on the encoder system (DIN44081).
Stop!
Whenusing this input as a motor protection: If the monitoring is set to WARNINGor OFF, themotor
can be destroyed by any further overload.
Features:
• LECOM no.: 58, 2058
• Reaction: TRIP, WARNING or OFF
MCTRL_bPTCOverTemp_b
=TRUE.
2.13.13.8Overcurrent diagram for fault signal OC5
(MCTRL_bIxtOverload)
Ixt diagram
Controller output current *
200%
150%
100% thermal continuous current
for Imotor$150 I
70% thermal continuous current
for Imotor150% I
* rated controller current 100%
x depending on the chopping frequency of the inverter
Abb. 2-31Max. permitted overcurrent depending on the time
100%
ratedx
70%
ratedx
10s
60s
(100% load)
120s
time
180s
K35.0151
9300ServoPLCEN1.4
2-61
Page 74
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13.13.9Resolver monitoring for w ire breakage Sd2
(MCTRL_bResolverFault_b)
Purpose
• Motorprotection
• Monitors the cable and the resolver for wire breakage.
Function
Warning!
Duringcommissioningthismonitoring shouldnot beswitched off,sincethemachinemayreachvery
high speeds ( potential destruction of the motor and the driven machine) in the event of a fault (e.g.
system cables disconnected or inc orrectly bolted). The same applies if this mo nitoring is changed
to WARNING. The possibility of disconnection should only be used if themonitoring reacts without
obviousreasons (verylongcables, strong noisesof ot her devices).
• This monitoring is activated automatically if the resolver is selected as actual speed encoder
(C0025).
• This monitoring is deactivated automatically if another actual speed encoder is selected.
Stop!
If there is a fault in the actual speed detection, it is not ensured that the monitoring reacts to
overspeed NMAX.
Features:
• LECOM no.: 82, 2082
• Reaction: TRIP, WARNING or OFF
2-62
9300ServoPLCEN1.4
Page 75
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.13Internal motor control (MCTRL _MotorControl)
2.13.13.10 H eatsink monitoring OH4 (adjustable)
(MCTRL_bKuehlGreaterC0122_b)
Purpose
Controller protection
Thismonitoring is designed as awarning before thedisconnection of thecontroller viathe OH-TRI P.
Thus, the process can be influenced to avoid a switch-off of the controller at an inconvenient time.
Additionally,blowerswhichwouldcause an unacceptablenoise incontinuousoperation, canalsobe
switched on and off.
Function
MCTRL_bKuehlGreaterC0122_b
set under code C0122. The hysteresis is fixed and amounts to 5 K. The signal is thus reset below a
threshold of 5K.
Features:
isderived from acomparator withhysteresis.Thethreshold canbe
• LECOM no.: 2054
• Reaction: WARNINGor OFF
2.13.13.11 H eatsink monitoring OH (fixed)
( MCTRL_bKuehlGreaterSetValue_b)
Purpose
Controller protection
Function
MCTRL_bKuehlGreaterSetValue_b
thresholdis85°C and isfixed.Thehysteresisisalso fixed andamountsto 5°C, i.e. thereclosing point
is 80 °C.
Features:
• LECOM no.: 50
• Reaction: TRIP(cannot be modified)
Tripping can have the following causes:
• The ambient temperature is too high.
Remedy:
– Install a blower into the switch cabinet.
• The controller is overloaded in its arithmetic mean, i.e. overload and recovery phase exceed
Thestatebus is a d evic e-specific bus syst em which is designed for Lenze controllers only. TheSB
STAT EBUS acts on the terminals X5/ST or reacts to a LOW signal at these terminals (multimaster
capability).
• Steers all networked drives to the preselected state.
• Every controller that is connected can set these terminals to a LOW signal.
• All drive controllers that are connected can evaluate the signal levels at these terminals and
process them internally in the programs.
• Up to 20 drive controllers can be connected
STATE_BUS_bOut_b
C0441
+10V
STATE_BUS
STATE_BUS_bIn_b
1
ST
ST
X5
9300ServoPLCEN1.4
2-65
Page 78
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.14Statebus (STA TEBUS_IO)
Stop!
Do not apply an external voltage across terminals X5/ST.
L1
L2
L3
N
PE
OFF
K1
ON
K1
F1
Z1
F2 F3
K1
PE
L1 L2
L3
+UG -UG
93XX - 93XX
PE
W
ST
U
V
Abb.2-33Monitoringof a networkof drives withthe statebus
PE
39
28
ST
A4
K1
RFR
F1
Z1
L1 L2 L3
93XX - 93XX
PE
W
U
V
F1
Z1
F2 F3
+UG -UG
PE
L1 L2 L3
F2 F3
PE
-UG
+UG
93XX - 93XX
PE
39
ST
28
ST
K1
RFR
PE
A4
W
U
V
ST
PE
28
39
ST
A4
K1
RFR
K35.0122
Z1Mains filter
F1...F5Fuses
K1Main contactor
Note!
Further information on the statebus as well as possible applications and c ommissioning c an be
found in the System Manual for the 9300, Project Planning, Part F.
2-66
9300ServoPLCEN1.4
Page 79
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.15System markers (SYSTEM_FLAGS)
2.15System markers (SYSTEM_ FLA GS)
M odule number: 151
Systemmarkers areglobal variablesthat are permanently integrated into therun-time system.They
include functions that facilitate the programming.
Thefollowing system markers are int egrat ed into the Lenze System 9300 Servo PLC :
VariableNameDataTypeAddressNote
SYSTEM_bClock01HzBool%IX151.0.00.1 Hz System clock
SYSTEM_bClock1HzBool%I X151.0.81.0 Hz System clock
SYSTEM_bClock10HzBool%IX151.1.010 Hz System clock
SY S T E M_bClock0100HzBool%IX151.1.8100 Hz Systemclock
SYSTEM _bT ogCycleTaskBool%IX 151.2.0Togglemarkercyclictask
SYSTEM_b1LoopCyclicTaskBool%IX151.2.8First loop cyclic task
SYSTEM_b1LoopTask2Bool%IX151.3.0First loop task ID2
SYSTEM_b1LoopTask3Bool%IX151.3.8First loop task ID3
SYSTEM_b1LoopTask4Bool%IX151.4.0First loop task ID4
SYSTEM_b1LoopTask5Bool%IX151.4.8First loop task ID5
SYSTEM_b1LoopTask6Bool%IX151.5.0First loop task ID6
SYSTEM_b1LoopTask7Bool%IX151.5.8First loop task ID7
SYSTEM_b1LoopTask8Bool%IX151.6.0First loop task ID8
SYSTEM_b1LoopTask9Bool%IX151.6.8First loop task ID9
SYSTEM_nTaskIntervalInteger%IW151.7Interval for current task (0.25 msec)
SYSTEM_nTaskIDInteger%IW151.8I D-number of current task
Note!
Thesystem variables are not generated in simulation mode.
Function
SYSTEM_bClockxHz
• Thesesystem markers output a fixed clock with equal p ulse/pause ratios.
• Themarkeristoggled in realtime.
• If yo u use this system marker, take carewith the frequency t hat is used for polling the marker
(aliasingeffect). You should useatleast t wice the toggle frequency.
Example:
You would like to use the systen marker
SY STEM_bClock100Hz
pulse/pause ratio is 5 msec/5 msec.
To avoid an aliasing effect, the counter must always be polled with an INTER VAL-TASK <5msec.
as a clock for a counter. The
9300ServoPLCEN1.4
2-67
Page 80
9300 Servo PLC
Show/Hide Bookmarks
System blocks
2.15System markers (SYSTEM_FLAGS)
SYSTEM_bTogCycleT ask
• Thissystem marker toggles with thecyclicaltask:
1.cycle = FALSE
2.cycle = TRUE
3.cycle = FALSE
4.cycle = TRUE
etc.
SYSTEM_nTaskInterval
• Thissystem marker shows the interval for the current task, w ith a resolution of 250 µsec.
– If, for instance, a 10-millisecond task is being processed, the system marker indic ates 40
(10 msec = 40 x 250 µsec).
– If a different type of task is being processed, instead of an interval task, the system marker
indicates 0.
SYSTEM_nTaskID
• Thissystem marker shows the task-IDfor the current t ask.
SYSTEM_b1LoopCyclicT a sk/SYSTE M_b1Loop TaskX
• Thesesystem markers only have the state TRUEduring the first cycle of the p art icular task.
– After the first cycle of the specif ic task, the system variable is set to FALSE.
– A change back to the TRUE stae will occur after a reset, or a fresh start of the program in the
target system.
2-68
9300ServoPLCEN1.4
Page 81
3Networking
Show/Hide Bookmarks
9300 Servo PLC
Connection
8200DPL 001
The production factor ”information” becomes increasingly important for the networking of
production plants. This applies particularly to a drive network and automation of decentralized
drives.
Drives of the Lenze range can easily be networked and implemented into a comprehensive
automationconcept.
The control and parameterization of the devices can be carried out, depending on the task, using
different communication interfaces:
• terminals (analog, digital, digital master-frequency)
• built-in system bus int erface (CAN)
• plug- in field mo dule fo r the fo llowing bus systems or communication pro files
– RS232/485 {LECOM-A/B/LI} with or without optical fibres (type 2102)
– INTE RBUS (type 2111)
– INTERBUS-Loop (type 2112)
– PROFIBUS-DP (type 2131 and 2133)
– DeviceNet/CANopen (type 2175)
• plug-inoperating module(keypad).
Thecommunicationtohigher-levelhostsispossibleviaasimpleplug&playinterfaceatthefrontside
of the device.The above figure shows such a communication with fieldbus modules 2133
PROFIBUS-DP.
Inanexistingconnectionviafieldbusmodulesto ahigher-levelmastersystem thesystem b us (CAN)
can additionally be used for communication between Lenze devices. Time-critical data such as
setpoint and actual values, can be exchanged in real-time using the system bus.
Special handling features o f the system bus (CAN):
• simplecommunication
• no special knowledge of bus systems required.
9300ServoPLCEN1.4
3-1
Page 82
9300 Servo PLC
Show/Hide Bookmarks
Connection
3.1System bus (CAN) in the Lenze drive system
3.1.1Contact assignment
9300 Servo controller /
9300 Servo PLC
Terminal X4
LO HI
GND
8200 vector
Terminal X3
CG LOHICG LO
HI
Drive PLC
Terminal X5
GNDLOHI
9300 Servo controller / 9300 Servo PLC
TerminaldesignationExplanation
GNDCAN-GNDG roundreference for CAN-bus; with internal series resistance of 100 Ω and
LOCAN-LOWSystem bus LOW
HICAN-HIGHSystem bus HIGH
max. load current of 30 mA
8200 vector / Drive PLC
TerminaldesignationExplanation
CG(:8200 vector)
GND (:Drive PLC)
LOCAN-LOWSystem bus LOW(data line)
HICAN-HIGHSystem bus HIGH (data line)
3-2
CAN-GNDSystem bus ground referencewith internal series resistor 100 Ω,
9300ServoPLCEN1.4
max. current load 30 mA
Page 83
3.1.2Wiring of the system bus
Show/Hide Bookmarks
Basic structure shown at a Drive PLC with 8200 vector
Drive PLCController 1Controller 2
9300 Servo PLC
Connection
GND LOW HIGG LOHIGG LOHIGG LOHIGG LO
120
PESPES
Abb. 3- 1Basic st ruc tureof a system b us network
Comments on wiring
We recommend the following signal cable for the wiring:
Specification system bus cableTotallengthupto300mTotal length up to 1000 m
Cable typeLIYCY2x2x0.5mm
Cable resistance≤ 40 Ω/km≤ 40 Ω/km
Capacitance per unit length≤ 130 nF/km≤ 60 nF/km
ConnectionPair 1 (white/brown):LOand HI
Tab. 3-1Specification of thesystem bus cable
Tip!
• A terminating resistor of R = 120Ω must be connected to the first and last physically
connecteddevice(seeAbb.3-1).
• Connect cable screen over a large surface to PE potential (PES).
2
(twisted pairs, with screening)
Pair2 (green/yellow):GND
CYPIMF2x2x0.5mm
(twisted pairs, with screening)
2
HI
120
plc014
9300ServoPLCEN1.4
3-3
Page 84
9300 Servo PLC
Show/Hide Bookmarks
Connection
3.1.2.1System bus wiring complying to EMC
K1
L1
L2
L3
N
PE
F1
OFF
F2 F3F2 F3F2 F3
F1
F1
K1
Z1
ON
K1
PE
L1 L2
7
932X - 933X
PE
W
U
V
L3
HI
+UG -U G
PE
LO
GND
RA1
RFR
Z1
L1 L2 L3
77
932X - 933X
28
PE
A4
W
U
V
Z1
+UG -U G
PE
L1 L2 L3
PE
-U G
+UG
932X - 933X
PE
HI
28
LO
GND
RFR
PE
A4
W
U
V
HI
PE
28
A4
GND
LO
RA2
RFR
1. Everydevice in the system bus must have a good PEconnection.
2. Control cabinets, which include bus devices should be interconnected by a separate
equipotential bonding cable.
3. Motor cables should be screened; connect the screen to both ends:
–atthemotor
– at the controller.
Attach the screen using the supplied clamps to the screen sheet or to the conducting
mounting plate of the control cabinet. This means that the cable is stripped in the contact
area of the clamp thus providing a large-surface contact to the clamp and to PE.
9300PLC 123
4. Select system bus cab les acc ording to the specific at io n in the Tab. 3-1.
– Connect the screen at both ends.
– Attach using the supplied screen plate:
K35.0021
Strip cable in the contact area of the clamp and make a large-surface contact to the clamp
and to PE.
5. Connect terminating resistor R
= 120Ω at the physical bus ends.
A
6. Separate control and fieldbus cables from the motor cable!
7. The CAN-GND cable must also be separated from the motor cable.
8. Connect terminal 7 with the screen plate of the controller.
9. Avoid stubs
3-4
9300ServoPLCEN1.4
Page 85
3.1.3Technical data
Show/Hide Bookmarks
3.1.3.1General data of the system bus network
Communication mediaDINISO11898
Baud rate [kBit/s]• 50
• 125
• 250
• 500
• 1000
3.1.3.2Feasible bus length
Depending on the data-transmission speed, the following bus lengths are possible:
Thecom munication times for the system bus depend on
• thepriority of the data
• theloading of the bus
• the data-transmission sp eed
• theprocessingtimeinthe drivec ontroller
T elegram throughput times
The telegram throughput time for 8 bytes of user data depends on the data-transmission speed:
Baud rate [kBit/s]501252505001000
Telegram throughput t ime
[msec]
Processing times in a LENZE controller
• Parameter: typically 30...50 msec
• Process data: 1...2 msec
2.71.050.520.260.13
9300ServoPLCEN1.4
3-5
Page 86
9300 Servo PLC
Show/Hide Bookmarks
Connection
3.1.4Commissioning
1. Switch on the controller or PLC (main supply or external 24 V supply).
2. If necessary, change the transmission speed (C0351)using the operating module 9371 BB or
the PC (default setting 500 kBaud).
– This setting must be identical for all participating bus devices.
3. Set the CAN address (C0350)using the operating module 9371BB or the PC
– This CAN address must be unique for every bus device.A multiple assignment of the same
address results in a BUS-OFF(error code CE4, error number 65; see chapter Monitoring
(^4-3) and chapter Error messages (^4-11)).
The default setting of the controllers is C0350 = 1.
4. The communication of all devices co nnected to the system bus is possible now. You can read
all codes and change all codes which can be written.
3.1.5Programming
(^3-34)
3.1.5.1General
Theintegrated syst em bus provides a considerableextension of the busdevice functionality.These
are, among others:
• Parameterentries
• Data exchange between drive controllers
The connection of other modules is easily possible. These are, among others:
• decentralized terminals
• controls and input devices
• external controls and control systems
Theusercan,for example,implementanexchangeofdatabetweenonedrivecontroller and another,
with dig ital control, speed and torque signals, without having knowledge of the bus system.
Atotal of 5 input signals and 5 output channels are availablefor datacommunication, that can allbe
used independently.
They include 2 parameter channels (SDO= Service Data Object).
3-6
9300ServoPLCEN1.4
Page 87
3.1.5.2Parameter channels
Show/Hide Bookmarks
Parameters are values that are stored in the Lenze drive controllers in a code position. Parameters
areset, for example, for one-off system settings or a c hange of mat erials in a machine.
Parameteraretransmitted with a low priority.
9300 Servo PLC
Connection
Parameter channel1
write
read
Parameters
(Code)
HMI
Abb. 3-2Connection of devices through two parameter channels
With 2 parameter channels it is possible to connect of 2 different devices for parameter setting, e.g.
the simultaneous connection of a PC and an operating unit (see Abb. 3-2).
Tip for 9300 Servo PLC!
The blocks
devices is possible.
L_ParRead / L_ParWrite
(from: LenzeDrive.lib) read and write access to other Lenze
read
Parameter channel2
write
Parameters
(Code)
PC
9300ServoPLCEN1.4
3-7
Page 88
9300 Servo PLC
Show/Hide Bookmarks
Connection
3.1.5.3Process data channels
Process data are data with a high priority, and are optimised for high speed in transmission and
proc essing.
A cyclic process data channel CAN1_IO (PDO = Process Data Objekt)
Theproc ess dat a via CAN1_IO areintended for a higher-level control system.
Cyc l i cproc ess data
Process data channel 1
( Setpoi nt andactualvalues)
CAN1_I N
CAN1_OU T
Abb. 3-3Process data CAN1_IOfor a higher-level control system
Control system
3-8
9300ServoPLCEN1.4
Page 89
9300 Servo PLC
Show/Hide Bookmarks
Connection
Two event-controlled process data channels withselectable and adjustable cycles(PDOs)
CAN2_IO,CAN3_IO
These process data channels are intended for exchanging data between one drive controller and
another. Another application of these process data is for decentralised input and output terminal.
Higher-levelcontrol systems can also use these channels.
Event-controlled process data
Process data channel 2
CAN2_I N
CAN2_OU T
CAN2_OU T
CAN2_I N
CAN3_OU T CAN3_IN
Event-controlled process data
Process data channel 3
Abb. 3-4Event-co ntrolled process data channelswith adjustable cycles
9300ServoPLCEN1.4
3-9
Page 90
9300 Servo PLC
S
Show/Hide Bookmarks
Connection
3.2System blocks for the system bus
3.2.1System bus (CAN1_IO)
3.2.1.1Inputs_CAN1 (CAN1_IN)
System bus inputs (Module number: 31)
ThisSB isusedfor cyclicdata communic at io n with higher-levelcontrol systems.Aspecialtelegram
(the sync-telegram) must be generated for transmission.
You cannot use this SB for exchanging data between one drive controller and another.
1, 2Thedevice-internal controlwordis fixedtobytes1-2. You canapplyany boolean variable toa selectionof
the free binary/logicsignals ofthe cont rolword.
The signals for the functions Quickstop (QSP ) , DISA BLE, CINH , TRI P -SET and TRIP-RESET can be written to
the SB DCTRLvia the control word. Todo this, connect the variables
DCTRL_wCAN1Ctrl
These functions are also available through the variable
CAN1_bCtrlCInhibit_b,CAN1_bCtrlTripSet_b
and apply further processing to them.
The other 11 bits can be used to control further function blocks.
3, 4Bytes 3-4 can be selected as a 16-bit data word with the individual signals for quasi-analog signals.%IB31.2and %I B 31.3
5, 6
Bytes 5-6 and bytes 7-8 can be used simultaneously as two quasi-analog values and as phase-angle
information,withupto32bitsofbina
7, 8
through variables of the appropriate data type.
.
and
mation
CAN1_bCtrlQuickstop_b,CAN1_bCtrlDisable_b
CAN1_bCtrlTripReset_b
alue1or0).Thefunctionalassignmentismade
CAN1_wDctrlCtrl
. Yo ucan read out these signals
and
%I B 31.0and %I B 31.1
,
%I B 31.4and %I B 31.5
%I B 31.6and %I B 31.7
9300ServoPLCEN1.4
3-11
Page 92
9300 Servo PLC
+100%+16384
Displaycodeinhexa
s
Show/Hide Bookmarks
Connection
3.2.1.2Outputs_CAN1 (CAN1_OUT)
System bus outputs (Module number: 31)
ThisSB is used for data communication with higher-level control systems. A special telegram, the
sync-telegram, must be generated for transmission.
This SB cannot be used for exchanging data between one drive controller and another.
1, 2Bytes 1 and 2 form the control wordforthe controller .
3, 4Yo ucan freely link bytes 3 and 4 with variables of the corresponding data type, as a 16-bit data word
5, 6
7, 8
ByteThe variables .. .write data simultaneously to .. .
5-8
Example: If you write to bytes 7-8, using the variables
The signals for functions such as IMP, CINHetc. can be written from SB DCTRL to the SB CAN1_OUT by
using the status word from SB DCTRL. Todo this, connect the variables
CAN1_wDctrlStat
Several bits in SB DCTRL are freely assignable. They are configured through the variables
variable is processed. The data in bytes 7-8 are thus not unambiguous.
.
and
DCTRL _bStatB15_b
Byte 5 and 6
Bytes 7-8
CAN1_nOutW3_a
DCTRL_wStat
and
CAN1_dnOutD1_p
and
then bytes 7-8 will be rewritten every time a
%Q B31.0and%Q B 31.1
,
%Q B31.2and%Q B 31.3
%Q B31.4and%Q B 31.5
%Q B31.6and%Q B 31.7
9300ServoPLCEN1.4
3-13
Page 94
9300 Servo PLC
Show/Hide Bookmarks
Connection
3.2.2System bus (CAN2_IO)
3.2.2.1Inputs_CAN2 (CAN2_IN)
System bus inputs (Module number: 32)
ThisSB is used fordatacommunicationbetweenone drive controllerand another,and theexchange
of data with decentralised inputs and output terminals. It is also possible to exchange data with
higher-levelco ntrol systems.
CAN2_bInB31_bBoolbinary%IX32.1. 15C0863/4hex
CAN2_dnInD1_pDouble-integerposition%I D 32.0C0867/2dec [inc]65536 = 1 revolution
3-14
DataTypeSignalTypeAddressDISDIS formatNote
............
............
9300ServoPLCEN1.4
Page 95
9300 Servo PLC
bayoao(upo3bs),
r
)
Show/Hide Bookmarks
Connection
Function
For data communication with the drive controller , 8 bytes are available.
ByteNotesAddress
Youcan use byte 1,2andbyte 3, 4 simultaneouslyas
1, 2
• binary information (up to 32 bits),
• 2 valuesofdatatype Integer,
3, 4
• 1 value of data type Double Integer.
5, 6
Bytes 5-6 and bytes7-8canbeselectedtobea16-bitdataword(data type Intege
7, 8
.
%I B 32.0and %I B 32.1
%I B 32.2and %I B 32.3
%I B 32.4and %I B 32.5
%I B 32.6and %I B 32.7
9300ServoPLCEN1.4
3-15
Page 96
9300 Servo PLC
S
Displaycodeinhexa
s
Show/Hide Bookmarks
Connection
3.2.2.2Outputs_CAN2 (CAN2_OUT)
System bus outputs (Module number: 32)
ThisSB is used fordatacommunicationbetweenone drive controllerand another,and theexchange
of data with decentralised inputs and output terminals. It is also possible to exchange data with
higher-levelco ntrol systems.
ByteThe variables .. .write data simultaneously to .. .
1-4
Example: If you write to bytes 3-4, using the variables
You can freely link bytes 1-2 and 3-4 with variables of the corresponding data type, as a 16-bit data word
It is possible, using different variables, to write simultaneously to bytes 1-2 or bytes 3-4. Avoid this
situation, since the data in bytes 1-2 or bytes 3-4 are then not unambiguous.
It is possible, using different variables, to write simultaneously to bytes 5-6 or bytes 7-8. Avoid this
situation, since the data in bytes 5-6 or bytes 7-8 are then not unambiguous.
variable is processed. The data in bytes 3-4 are thus not unambiguous.
ege
.
Byte 1 and 2
Bytes 3 and 4
CAN2_nOutW2_a
⋅ 8 bytes are available.
and
CAN2_dnOutD1_p
then bytes 3-4 will be rewritten every time a
%Q B32.0und%QB32.1
%Q B32.2und%QB32.3
%Q B32.4und%QB32.5
%Q B32.6und%QB32.7
9300ServoPLCEN1.4
3-17
Page 98
9300 Servo PLC
Show/Hide Bookmarks
Connection
3.2.3System bus (CAN3_IO)
3.2.3.1Inputs_CAN3 (CAN3_IN)
System bus inputs (Module number: 33)
ThisSB is used fordatacommunicationbetweenone drive controllerand another,and theexchange
of data with decentralised inputs and output terminals. It is also possible to exchange data with
higher-levelco ntrol systems.
CAN3_bInB31_bBoolbinary%IX33.1. 15C0863/6hex
CAN3_dnInD1_pDouble-integerposition%I D 33.0C0867/3dec [inc]65536 = 1 revolution
3-18
DataTypeSignalTypeAddressDISDIS formatNote
............
............
9300ServoPLCEN1.4
+16384 = +100 %
Page 99
9300 Servo PLC
bayoao(upo3bs),
r
)
Show/Hide Bookmarks
Connection
Function
For data communication with the drive controller , 8 bytes are available.
ByteNotesAddress
Youcan use byte 1,2andbyte 3, 4 simultaneouslyas
1, 2
• binary information (up to 32 bits),
• 2 valuesofdatatype Integer,
3, 4
• 1 value of data type Double Integer.
5, 6
Bytes 5-6 and bytes7-8canbeselectedtobea16-bitdataword(data type Intege
7, 8
.
%I B 33.0and %I B 33.1
%I B 33.2and %I B 33.3
%I B 33.4and %I B 33.5
%I B 33.6and %I B 33.7
9300ServoPLCEN1.4
3-19
Page 100
9300 Servo PLC
S
Displaycodeinhexa
s
Show/Hide Bookmarks
Connection
3.2.3.2Outputs_CAN3 (CAN3_OUT)
System bus outputs (Module number: 33)
ThisSB is used fordatacommunicationbetweenone drive controllerand another,and theexchange
of data with decentralised input and output terminals. It is also possible to exchange data with
higher-levelco ntrol systems.