beautypg.com

1 example, 5function blocks – Lenze E94A User Manual

Page 268

background image

5

Function blocks

5.71

L_DevParReadFix - read parameter

268

Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

5.71.1

Example

The following example is intended to serve you as an installation guide for your own plant.

Task
The client, a 9400 controller, is supposed to read out code C00011 of the server, another 9400 con-

troller, via a free SDO channel of the "CAN on board" system and provide the information to the ap-

plication. At the same time, communication from the »Engineer« towards the client and the server

is enabled via the basic SDO channel.

Initial situation

[5-34] Initial situation

• Parameter data channel 1 (the basic SDO channel) is always used for the communication to-

wards the »Engineer«.

• The basic SDO channel is permanently set to 0x600 + node number or 0x580 + node number,

respectively, and can neither be changed nor deactivated according to CiA301.

• In the Lenze setting, the 9400 server has deactivated SDO server channels 2 ... 10 (bit 31 of the

Rx/Tx identifiers has been set).

Note!

The cycle time specified via the input dwCycleTime is only valid for the use of the FB in a

1-ms task! For a longer task cycle the cycle time is extended accordingly:

When the FB is used in the unsolicited task, the cycle time set is not effective. In this case,

use a preceding FB

L_TbOscillator

instead to activate the read request cyclically:

• Connect the output bOut of the FB

L_TbOscillator

to the input bExecute.

• Set the desired cycle time via the parameters of the FB

L_TbOscillator

.

Cycle time

dwCycleTime [ms] Task cycle [ms]

1 [ms]

-------------------------------------------------------------------------------------------

=

(QJLQHHU6WHXHUXQJ

6HUYHU1RGH,'

&$1

6'2&OLHQW1RGH,'

5[,GHQWLILHU

7[,GHQWLILHU [

[

6'2&OLHQW1RGH,'

5[,GHQWLILHU

7[,GHQWLILHU [

[

6'2%DVLV6'2.DQDOIHVW

5[,GHQWLILHU&

7[,GHQWLILHU&

1RGH,'

[

[1RGH,'

6'2%DVLV6'2.DQDOIHVW

5[,GHQWLILHU&

7[,GHQWLILHU&

1RGH,'

[

[1RGH,'

6'2IUHLXQGGHDNWLYLHUW

5[,GHQWLILHU&

7[,GHQWLILHU&

QQQQQQQ

[

QQQQQQQ

[

&OLHQW1RGH,'