beautypg.com

5function blocks – Lenze E94A User Manual

Page 278

background image

5

Function blocks

5.74

L_DevReadParDInt - reading parameters of the DINT type

278

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

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

Outputs

Parameters

Identifier/data type

Value/meaning

dnState

DINT

Status (bit coded)

• Bits that are not listed have not been assigned with a status (always "0").

Bit 0 Read request has been sent to the operating system and the FB is

waiting for a response from the device addressed (signal bBusy).

Bit 1 Read request has been executed correctly (signal bDone).

Bit 15 Error (group signal for bit 16 ...31).
Bit 16 Configuration error: Invalid code.
Bit 17 Configuration error: Invalid subcode.
Bit 19 Configuration error: Invalid target address.
Bit 20 Time-out error: The addressed device did not respond within the

time-out time, the read request has been deleted.

Bit 22 Error: Limit value has been exceeded.
Bit 23 Error: Parameter reading is not permitted.
Bit 24 Error: Access is not permitted.
Bit 25 Error: No element of selection list.

bBusy

BOOL

Status output "Read request transmitted"

TRUE The read request has been sent to the operating system and the FB is

waiting for a response from the device addressed.

TRUEFALSE The read request has been completed.

bDone

BOOL

Status output "Read request executed correctly"

• The output remains set until bExecute is reset to FALSE (however, at least for one

task cycle).

TRUE The read request has been executed correctly and the read parame-

ter value is available at the output dnData.

bError

BOOL

Status output "Error"

TRUE An error has occurred during processing.

• For details, please see the status output dnState.

dnData

DINT

Parameter value read

Parameter

Possible settings

Info

C05910

0

12000 Code

• Initialisation: 2

C05911

0

255 Subcode

• Initialisation: 0

C05912

Interface

• Currently, only the Lenze setting

"Own device" is supported.

1 Own device
2 CAN on-board
3 Module in MXI1
4 Module in MXI2

C05913

0

128 Target address

• Selection of parameter channel

for target device.

• Setting is only required if an exter-

nal parameter is to be read

(C05912 > "1").