beautypg.com

5function blocks – Lenze E94A User Manual

Page 288

background image

5

Function blocks

5.79

L_DevWriteParDInt - writing to parameters of the DINT type

288

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 Write request has been sent to the operating system and the FB is

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

Bit 1 Write 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 write request has been deleted.

Bit 21 Error: Invalid data type.

• Use the table of attributes to check the data type of the parame-

ter you want to write. If it is not a DINT data type, use the

FB

L_DevParWriteFix

instead for writing the parameter.

Bit 22 Error: Limit value has been exceeded.
Bit 24 Error: Access is not permitted.
Bit 25 Error: No element of selection list.
Bit 26 Error: Parameter writing is not permitted.
Bit 27 Error: Parameter writing is only permitted when the controller is in-

hibited.

Bit 28 Error: Parameter writing is only permitted when the application has

stopped.

bBusy

BOOL

Status output "Write request transmitted"

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

is waiting for a response from the device addressed.

TRUEFALSE The write request has been completed.

bDone

BOOL

Status output "Write request executed correctly"

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

task cycle).

TRUE The write request has been executed correctly.

bError

BOOL

Status output "Error"

TRUE An error has occurred during processing.

• For details, please see the status output dnState.

Parameter

Possible settings

Info

C05920

0

12000 Code

• Initialisation: 2

C05921

0

255 Subcode

• Initialisation: 0

C05922

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