Function library lenze8200drive.lib, Functions/function blocks – Lenze DDS Function library 8200 Drive User Manual

Page 20

Advertising
background image

3.2

L_8200Initialization − Frequency inverter initialisation

Function library Lenze8200Drive.lib

Functions/function blocks

3−8

L

Lenze8200Drive.lib EN 1.0

Outputs

Data type

Value/meaning

nState

Integer

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.

2005 Access denied − wrong target system:

Index does not exist.

2013 Access denied − wrong target system:

Invalid range of values.

2111 Access denied − wrong target system:

In excess of 4 decimal places specified or no fixed−comma−format index.

2117 Communication channel does not exist.

·

Check PLC code C2118
(transmission channel for CAN parameter communication).

bParDone

Bool

Message Data transfer has been completed"

TRUE Data transfer has been successful.

Example: Frequency inverter initialisation with preselected parameters

In the following example, a frequency inverter with the system bus node address 12 is initialised with
the parameters preselected in the FB L_8200Parameter. Afterwards, another frequency inverter with
the system bus node address 20 is initialised with the same parameters.

Note!

Before communication with the PLC, carry out the following steps:

1. Load the factory settings.

(For the 8200vector frequency inverter, e. g. under code C0002)

2. Select the correct system bus node address.

(For the 8200vector frequency inverter, e. g. under code C0350)
– More information about the node address assignment can be found in chapter 2.2.1.

(

^ 2−3)

3. Carry out a reset node to accept the new communication settings of the system bus interface.

(For the 8200vector frequency inverter, e. g. under code C0358)

After this, carry out the following steps in the Drive PLC Developer Studio:

1. Use the Library Manager to integrate function libraries Lenze8200Drive.lib, LenzeDrive.lib

and LenzeCanDrv.lib in your project.

2. Create a new FB called "DefaultParameter82" and copy the source code of the FB

L_8200Parameter to the new FB DefaultParameter82.

3. Remove the comment characters around the assignments in the FB DefaultParameter82 so

that the assignments will become valid for the compiler.

Advertising