1.407/2000Revised edition for the 9300 Servo PLC as of software version V1.0
2.007/2001Revised edition for the 9300 Servo PLC as of software version V2.0
3.001/2003Revised edition for the 9300 Servo PLC as of software version V6.0
4.0/4.1 08/2006Revised edition for the 9300 Servo PLC as of software version V7.0
5.010/2010Revised edition for the 9300 Servo PLC as of software version V8.0
5.109/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 9300 Servo 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...
9300 Servo 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
9300 Servo PLC EN 5.1
1−1
9300 Servo 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
9300 Servo PLC EN 5.1
l
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:
9300 Servo 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
9300 Servo PLC EN 5.1
1−3
9300 Servo PLC
Preface and general information
1.2.2Node numbers
The system blocks of the 9300 Servo PLC carry the following node numbers:
Node numberSystem blockNotes
1 DIGITAL_IODigital inputs/outputs
11 ANALOG1_IOAnalog inputs/outputs 1
12 ANALOG2_IOAnalog inputs/outputs 2
21 DFIN_IO_DigitalFrequencyDigital frequency input
22 DFOUT_IO_DigitalFrequencyDigital frequency output
31 CAN1_IO
32 CAN2_IO
33 CAN3_IO
41 AIF1_IO_AutomationInterface
42 AIF2_IO_AutomationInterface
43 AIF3_IO_AutomationInterface
51 STATEBUS_IOState bus
60 OSC_OscilloscopeOscilloscope function
101 CAN_ManagementSystem bus (CAN) management
102 CAN_SyncronizationSystem bus (CAN) synchronisation
121 DCTRL_DriveControlDevice control
131 MCTRL_MotorControlMotor control
141 FCODE_FreeCodesFree codes
151 SYSTEM_FLAGSSystem flags
161 AIF_IO_ManagementAutomation interface management
171 VAR_PERSISTENTPersistent variables
1
SBs for system bus (CAN) are described in the "System bus (CAN) for Lenze PLC devices" manual.
The node number is part of the absolute SB address (see chapter 2). (^ 1−5)
181 MCTRL_AUX_HighResFeedback High−resolution encoder signal
System bus (CAN)
Automation interface
1
1
1
1−4
9300 Servo PLC EN 5.1
l
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:
9300 Servo 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
9300 Servo PLC EN 5.1
1−5
9300 Servo 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
9300 Servo PLC EN 5.1
l
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.
9300 Servo 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
9300 Servo PLC EN 5.1
1−7
9300 Servo 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.
The following sections inform about the system blocks of the basic unit.
9300 Servo PLC
System blocks
L
9300 Servo PLC EN 5.1
2−9
9300 Servo PLC
System blocks
2.1AIF1_IO_AutomationInterface (node number 41)
2.1AIF1_IO_AutomationInterface (node number 41)
2.1.1Inputs_AIF1
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 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
binary information (1 bit)
control word/quasi−analog value (16 bits)
phase information (32 bits)
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 8 bytes of user data to be sent can be written to via several variables of different data types
simultaneously. Thus the data can be transferred by the PLC program as
binary information (1 bit)
status word/quasi−analog value (16 bits)
phase information (32 bits)
All variables assigned to byte 1/2 can be written to by the PLC program.
9300 Servo PLC:
Bytes 1 and 2 can be used to transfer the status word from the SB DCTRL_DriveControl.
To do this, connect the variable DCTRL_wStat of the SB DCTRL_DriveControl with the variable AIF1_wDctrlStat.
In addition to signals such as IMP and CINH, the SB DCTRL_DriveControl status word contains some freely
assignable signals which can be written to via the variables DCTRL_bStateB.._b of the SB DCTRL_DriveControl.
3, 4
5, 6AIF1_bFDO0_b
...
AIF1_bFDO15_b
7, 8AIF1_bFDO16_b
...
AIF1_bFDO31_b
AIF1_nOutW1_a
AIF1_nOutW2_a
AIF1_dnOutD1_p
AIF1_nOutW3_a
Tip!
Avoid simultaneous overwriting via different variable types to ensure data consistency.
Thus bytes 5 and 6 should only be written to
– by the variable AIF1_dnOutD1_p,
– by the variable AIF1_nOutW2_a or
– by the variables AIF1_bFDO0_b ... AIF1_bFDO15_b.
2−14
9300 Servo PLC EN 5.1
L
9300 Servo PLC
System blocks
2.2AIF2_IO_AutomationInterface (node number 42)
2.2AIF2_IO_AutomationInterface (node number 42)
2.2.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
binary information (1 bit)
quasi−analog value (16 bits)
angle information (32 bits)
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
binary information (1 bit)
quasi−analog value (16 bits)
angle information (32 bits)
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−18
9300 Servo PLC EN 5.1
L
9300 Servo PLC
System blocks
2.3AIF3_IO_AutomationInterface (node number 43)
2.3AIF3_IO_AutomationInterface (node number 43)
2.3.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
binary information (1 bit)
quasi−analog value (16 bits)
angle information (32 bits)
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
binary information (1 bit)
quasi−analog value (16 bits)
angle information (32 bits)
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−24
9300 Servo PLC EN 5.1
L
Loading...
+ 139 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.