4 l_smc_writeparameter, L_smc_writeparameter – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 266

L-force | PLC Designer - SoftMotion
The L_SMC_DriveUtil.lib library (Lenze specifications)
Function blocks for EtherCAT
266
L
DMS 5.2 EN 03/2011 TD17
12.2.4
L_SMC_WriteParameter
By means of this block, codes of a Motion drive are written. The code and subindex are
specified directly at the block. The conversion to the corresponding parameter number is
carried out internally.
Inputs (VAR_INPUT)
Execute : BOOL
Activates the function.
wCodeStelle: WORD
Specification of the code which is to be written to.
bySubIndex: BYTE
Specification of the subindex which is to be written to.
dwValue : DWORD
Value which is to be written.
Axis : AXIS_REF
Here the axis structure for which the code is to be written is transferred.
Outputs (VAR_OUTPUT
Done : BOOL
TRUE indicates that the selection has been acknowledged.
Error : BOOL
TRUE indicates that an error has occurred in the function block.
ErrorID: INT
Error number
Error messages
The following error messages are stored:
SMC_WP_PARAM_UNKNOWN:=140
Unknown code
SMC_WP_SENDING_ERROR:=141
Write request was aborted, e.g. because the drive has not responded within the time
specified.