
Lenze · Commissioning of Lenze drives · 1.3 EN - 06/2014 105
The L_DCO_DriveCommunication library
Function blocks
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
12.3.2 L_DCO_ReadDriveParameter
This FB reads the parameters out of a Lenze controller (logic axis) and provides them to the
application.
• Parameter values of max. 32 bits can be read.
• The parameter to be read can be defined as index or code number.
• The FB is independent of the used bus system.
Inputs
Outputs
Function library: L_DCO_DriveCommunication
Runtime software licence: LPC 1x00 MPC 1x00 MPC 2xx0 MPC 3x00
L_DCO_ReadDriveParameter
L_DCO_AXIS_REF_BASE ⎯ Axis xDone ⎯ BOOL
BOOL ⎯ xExecute xBusy ⎯ BOOL
WORD ⎯ wIndex xError ⎯ BOOL
BYTE ⎯ bySubIndex eError ⎯ L_DCO_Error
BOOL ⎯ xUseIndexAsParam dwData ⎯ DWORD
byNrOfByte ⎯ BYTE
Identifier/data type Information/possible settings
Axis
L_DCO_AXIS_REF_BASE
Connection of the axis data of the controller (Logic nodes)
xExecute
BOOL
Activation of the "Read parameters" function
FALSETRUE Transmitting a parameter read request
FALSE Outputs are reset
• If the execution of the FB has not been completed yet:
• Outputs are reset after request has been completed
• Status signals are at least set for one cycle.
wIndex
WORD
Index of the parameter to be read
•If xUseIndexAsParam = TRUE: Indication of the parameter/code number
bySubIndex
BYTE
Subindex of the parameter to be read
xUseIndexAsParam
BOOL
FALSE Selection indices according to CANopen
TRUE Selection indices according to Lenze parameters.
• The value given at wIndex is interpreted as parameter/code
number.
Identifier/data type Information/possible settings
xDone
BOOL
TRUE: Read request completed
xBusy
BOOL
Status output "Read request sent"
TRUE The read request has been transmitted to the system. The FB waits
for the response of the request.
FALSE No read request active
Comentarios a estos manuales