3 l_smc_readparameter, L_smc_readparameter – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 265

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

265

L-force | PLC Designer - SoftMotion

The L_SMC_DriveUtil.lib library (Lenze specifications)

Function blocks for EtherCAT

12.2.3

L_SMC_ReadParameter

This block serves to read out codes of a Motion drive. The code and subindex are specified

directly at the block. The conversion to the corresponding parameter number is carried out

internally.

Inputs (VAR_INPUT)
Enable : BOOL
Activates the function.
wCodeStelle: WORD
Specification of the code that is to be read.
bySubIndex: BYTE
Specification of the subindex that is to be read.
Axis : AXIS_REF
Here the axis structure for which the code is to be read 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
dwValue : DWORD
Value read

Error messages
The following error messages are stored:
SMC_RP_PARAM_UNKNOWN:=130
Unknown code
SMC_RP_REQUESTING_ERROR:=131
Read request was aborted, e.g. because the drive has not responded within the time

specified.

Advertising