L Manual Global Drive PLC Developer Studio Global Drive Function library Lenze8200Drive.
The function library Lenze8200Drive.lib can be used for the following Lenze PLCs: 9300 Servo PLC Drive PLC ECSxA Type from hardware version from software version EVS93XX−xT EPL10200 6A 1A 6.0 6.0 ECSxAxxx 1C 7.0 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.
Function library Lenze8200Drive.lib Contents 1 Preface and general information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1−1 1.1 About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.1 Conventions used in this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1.2 Layout of the descriptions . . . . . . . . . . .
Function library Lenze8200Drive.lib Contents ii Lenze8200Drive.lib EN 1.
Function library Lenze8200Drive.lib Preface and general information 1 Preface and general information 1.1 About this Manual This Manual contains information about function library Lenze8200Drive.lib for the Drive PLC Developer Studio. · The function blocks of function library Lenze8200Drive.lib can be used to exchange data between the PLC and one or more frequency inverters of the 8200 series via the system bus (CAN).
Function library Lenze8200Drive.lib Preface and general information 1.1.
Function library Lenze8200Drive.lib Preface and general information 1.2 Version identifiers of the function library The version of the function library can C_w[Function library name]Version . be found under the global constant Version identifiers as of PLC software version 7.
Function library Lenze8200Drive.lib Preface and general information 1−4 Lenze8200Drive.lib EN 1.
Function library Lenze8200Drive.lib Introduction 2 Introduction 2.1 General Integrate function library Lenze8200Drive.lib in your PLC program to make frequency inverter control easier. Two function blocks are required for this: 1. A function block for the parameterisation of the frequency inverter. 2. Another function block for process data exchange between PLC and frequency inverter. The parameters can be set via the PLC program. It is possible to select up to 45 parameters.
Function library Lenze8200Drive.lib Introduction 2.2 Frequency inverter parameterisation When the program is started, the parameter data shall be written only once during initialisation to the frequency inverter. The FBs L_8200Parameter and L_8200Initialization therefore have to be called in the system task PLC_PRG. · The FB L_8200Parameter is used to initialise the codes with the corresponding values.
Function library Lenze8200Drive.lib Introduction 2.2.
Function library Lenze8200Drive.lib Introduction 2.3 Process data exchange with the frequency inverter Unlike the parameter data, the process data must be cyclically exchanged between PLC and frequency inverter to update input and output information. · The FB L_8200CtrlWord is used to select the control word to be transmitted as boolean control signals. (^ 3−15) · The FB L_8200DataControl is used for the actual process data exchange with the corresponding frequency inverter.
Function library Lenze8200Drive.lib Functions/function blocks 3 L Functions/function blocks Lenze8200Drive.lib EN 1.
Function library Lenze8200Drive.lib Functions/function blocks 3.1 3.1 L_8200Parameter − Initialisation of codes L_8200Parameter − Initialisation of codes Function block With this FB you can parameterise up to 45 parameters (codes) in the frequency inverter.
Function library Lenze8200Drive.lib Functions/function blocks 3.1 L_8200Parameter − Initialisation of codes Concept I: Parameterisation through direct instructions in the FBs For this, use the FB L_8200Parameter as template and create a new function block in which the parameter data are selected by direct assignments. Note! Please observe that FB changes (e. g. new assignments) require a new compilation and program download to the PLC.
Function library Lenze8200Drive.lib Functions/function blocks 3.1 L_8200Parameter − Initialisation of codes No. Code Tab. 3−1 3−4 Subcode Setting 1 C0011 0 50 Info/meaning Maximum output frequency = 50 Hz (default setting) 2 C0012 0 0.1 Main setpoint acceleration time; Tir = 0.1 s (default setting) 3 C0013 0 0.1 Main setpoint deceleration time; Tif = 0.
Function library Lenze8200Drive.lib Functions/function blocks 3.1 L_8200Parameter − Initialisation of codes Concept II: Parameterisation by means of codes If the FB outputs are assigned to user codes in the PLC, it is possible to select the corresponding frequency inverter parameters directly via the Parameter Monitor. Note! With this concept, it is possible to use an instance of the FBL_8200Parameter instead of a copy.
Function library Lenze8200Drive.lib Functions/function blocks 3.1 L_8200Parameter − Initialisation of codes Example II: Assignment of different parameters to a number of frequency inverters If you want to asssign different parameters to a number of frequency inverters, you need a corresponding number of FBs. StartInit Parameter82Device12 Code SubCode Fraction InitDevice12 L_8200Initialization Value 1 2 3 4 5 6 7 8 9 ...
Function library Lenze8200Drive.lib Functions/function blocks 3.2 3.2 L_8200Initialization − Frequency inverter initialisation L_8200Initialization − Frequency inverter initialisation Function block This FB is used to initialise the frequency inverter with the parameters which were previously defined by an instance or copy of the FB L_8200Parameter. Note! The FB must be called cyclically because the data are internally transmitted to the frequency inverter via the FBL_ParWrite.
Function library Lenze8200Drive.lib Functions/function blocks 3.2 L_8200Initialization − Frequency inverter initialisation Outputs nState Data type Integer Value/meaning Status Status messages: 0 Data were transferred, frequency inverter has been initialised. 1 Data transfer is active. Error messages: 2001 An error occurred during bus transfer. 2002 Time−out occurred during data transfer. 2004 Access denied − wrong target system: Subindex does not exist.
Function library Lenze8200Drive.lib Functions/function blocks 3.2 L_8200Initialization − Frequency inverter initialisation 4. Create two instances of the FB L_8200Initialization. 5. Integrate the FBs either directly in the main program PLC_PRG or in a program which is cyclically activated by PLC_PRG and combine the FBs as follows: StartInit DefaultParameter82 Code SubCode Fraction InitDevice12 L_8200Initialization Value 1 2 3 4 5 6 7 8 9 ...
Function library Lenze8200Drive.lib Functions/function blocks 3.3 3.3 L_8200DataControl − Send/receive process data L_8200DataControl − Send/receive process data Function block This FB is used to exchange process data with the frequency inverter. · The FB internally uses a free CAN send and receive object. It is therefore possible to transmit and receive 8 bytes of user data. Note! For the provision of free CAN send and receive objects, function library LenzeCanDrv.
Function library Lenze8200Drive.lib Functions/function blocks 3.3 L_8200DataControl − Send/receive process data Inputs wControlData nNSetN1_a Data type Word Integer Information/possible settings Process data word (control word) to be sent to the frequency inverter. Speed setpoint selection for the frequency inverter in [Hz] · Normalised to fmax, i. e. 16384 º 100 % fmax (C0011) of the frequency inverter wBoostVoltage Word Umin increase in the frequency inverter · Normalised to Ur, i. e.
Function library Lenze8200Drive.lib Functions/function blocks 3.3 L_8200DataControl − Send/receive process data Outputs nStateDataFrom82 Data type Integer Value/meaning Status of the CAN receive object Error messages: −300 Time−out, data transmitted by the frequency inverter are not within the monitoring time tTimeOut. −150 System bus (CAN) is not "Operational". −121 Wrong driver number for CAN driver. · Check the initialisation of the CAN driver. −120 CAN driver currently not initialised.
Function library Lenze8200Drive.lib Functions/function blocks 3.
Function library Lenze8200Drive.lib Functions/function blocks 3.3 L_8200DataControl − Send/receive process data Time monitoring The input tTimeOut is used to monitor the transfer time of the data received from the frequency inverter. · With a time > t#0ms the monitoring is activated, otherwise it is deactivated. · The monitoring time must be adapted to the cycle and task time of the process data object CAN2_IO.
Function library Lenze8200Drive.lib Functions/function blocks 3.4 3.4 L_8200CtrlWord − Selection of boolean control signals L_8200CtrlWord − Selection of boolean control signals Function block This FB can be used to select the control word to be sent to the frequency inverter which is expected by the FB L_8200DataControl at the FB input wControlData as boolean control signals.
Function library Lenze8200Drive.lib Functions/function blocks 3.5 3.5 L_8200StatusWord − Output of boolean status signals L_8200StatusWord − Output of boolean status signals Function block This FB is used to divide the status word received by the frequency inverter which is provided by the FB L_8200DataControl at the FB output wStatusData into boolean status signals.