6.5.4.20 DD_ReadParameter_ISD51x
This function block asynchronously reads general objects
from the object dictionary of the axis if the Enable input is
set. For the index and sub-index of the parameters, see
chapter 7 Servo Drive Parameter Description.
The output data is read from the device and is therefore
not immediately available.
DD_ReadParameter_ISD51x
Axis
EnableBOOL
AXIS_REF_-
ISD51x
IndexUINT
Subindex
USINT
pBuerUDINT
BuerSizeUDINT
BOOLValid
BOOLBusy
DD_ERROR_-
ISD51x
ErrorInfo
BOOL
DWORDAbortCode
UDINTDataLength
Error
130BE269.10
Illustration 6.44 DD_ReadParameter_ISD51x
Variable
name
Data
type
Default
value
Description
VAR_IN_OUT
Axis AXIS_REF_ISD51x Reference to the axis.
See
chapter 6.5.4.1 AXIS_REF_IS
D51x.
VAR_INPUT
Enable BOOL FALSE Get the value of the
parameter continuously
while enabled.
Index UINT 0 Index of the object to be
read.
Subindex USINT 0 Sub-index of the object to
be read.
pBuer UDINT 0 Pointer to a buer where
the read data will be
placed (use ADR()
function).
BuerSize UDINT 0 Maximum size of the read
data (size of the provided
buer given in byte; use
SIZEOF() function)
VAR_OUTPUT
Valid BOOL The function block has a
valid output.
Busy BOOL The function block is not
nished and new output
values are to be expected.
Error BOOL An error has occurred
within the function block.
Variable
name
Data
type
Default
value
Description
ErrorInfo DD_ERROR_ISD51x Error identication and
instance identier.
See chapter 6.5.2.3 Error
Indication.
AbortCode DWORD SDO abort code if there is
an error. Available in the
list of constants:
SdoAbortCodes.
DataLength UDINT Length of the read data
[Byte].
Table 6.22 DD_ReadParameter_ISD51x
6.5.4.21 MC_WriteParameter_ISD51x
This function block modies the value of the specied
parameter.
It can take some time to write the data to the axis.
MC_WriteParameter_ISD51x
Axis
ExecuteBOOL
ParameterNumberINT
ValueDWORD
AXIS_REF_-
ISD51x
BOOLDone
BOOLBusy
BOOL
DD_ERROR_ISD51x
ErrorInfo
DWORD
AbortCode
Error
130BE304.10
Illustration 6.45 MC_WriteParameter_ISD51x
Variable
name
Data
type
Default
value
Description
VAR_IN_OUT
Axis AXIS_REF_ISD51x Reference to the axis.
See
chapter 6.5.4.1 AXIS_REF_IS
D51x.
VAR_INPUT
Execute BOOL FALSE Write the value of the
parameter at rising edge.
Parameter-
Number
INT 0 Number of the parameter.
See Table 6.20. All other
numbers are not allowed
and lead to an error.
Value DWORD 0 New value of the specied
parameter.
VAR_OUTPUT
Done BOOL The function block has a
valid output.
Busy BOOL The function block is not
nished and new output
values are to be expected.
Programming Programming Guide
MG36D102 Danfoss A/S © 01/2017 All rights reserved. 189
6
6