Function library lenzedrive.lib, Communication – Lenze DDS Function library Drive User Manual

Page 68

Advertising
background image

2.6.4

Read codes (L_ParRead)

Function library LenzeDrive.lib

Communication

2−58

L

LenzeDrive.lib EN 1.7

Parameter values with decimal places

Tip!

The parameters of the Lenze controllers are stored in different formats.

Detailed information about this can be found in the "Table of attributes" in the corresponding drive
controller Manual.

If the code to be read uses a data format with decimal places the number of decimal places has to
be communicated to the function block L_ParRead via the input byFraction.

The following formats apply:

byFraction (number of decimal places)

Value output by FB L_ParRead

Read code value

0

1

1

1

10

1.0

2

100

1.00

3

1000

1.000

4

10000

1.0000

Example:

Reading a code with the value "43" in fixed32 data format.

·

Fixed32 is a fixed−point format with 4 decimal places. For data transfer the value therefore has
to be multiplied by 10000:

Data

1...4

+ 43 @ 10000 + 430000 + 00 06 8F B0

hex

·

Select the value "4" at the input byFraction.

·

The FB L_ParRead outputs the value "430000".

Tip!

If the code does not use the fixed−point format the value "255" has to be selected at the input
byFraction.

Detailed information about reading and writing parameters via the system bus (CAN) can be found
in the Manual "System bus (CAN) for PLC devices".

Advertising