Technical data
Technology functions
CPU 317T: Technology Functions
6-248 A5E00251798-03
6.6.9 FB 456 MC_WriteDriveParameter - Writing drive parameters
Valid for firmware version V3.1.x of the integrated technology
Purpose
• The "MC_WriteDriveParameter" technology function allows the user program
to write parameters of a drive connected to DP(DRIVE).
Applicable to
• Profidrive-compliant drives on DP(DRIVE)
Requirements
• The drive is configured for operation on DP(DRIVE).
• The drive must support data record communication.
• The drive supports the parameter number and the index.
Overriding commands
An MC_WriteDriveParameter command can not be canceled by any other
command.
An MC_WriteDriveParameter command does not cancel any other commands.
Input parameters
Parameter Data type Start value Description
Execute BOOL FALSE Start of the command at the positive edge
InOut BOOL 0 I/O assignment of the logical base address of the drive
FALSE: input address
TRUE: output address
Address INT 0 Definition of the logical base address of the module
ParameterNumber DINT 0 Definition of the parameter number from which the
data are to be read.
Range of values: 0 to 65535
SubIndex DINT 0 Definition of the parameter index used to address the
first array element of an array parameter.
(only when NumberOfElements > 0, otherwise the
value is set internally to zero.)
Range of values: 0 to 65535
NumberOfElements DINT 0 Number of sub-parameters to be read.
Value > 0: Parameter with subindex, range of values
1 to 228 (according to the max. length
of the data area at input parameter Data)
Value = 0: Parameter without subindex
Value < 0: Not permitted