Function block l_smc_readparameter (for ethercat), L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 35

L-force | PLC Designer
Lenze Specific Functions
DMS 4.1 EN 03/2011 TD29
33
Function block L_SMC_ReadParameter (for EtherCAT)
Function library: L_SM3_DriveUtil.lib
With this block, codes of a Motion drive are read out. The code and the subindex are
indicated directly at the block. Conversion to the corresponding parameter numbers
takes place internally.
Inputs (VAR_IN)
Designator / Data type
Info / Setting options
Enable / BOOL
Activates the function.
wCode / WORD
Indication of the code that is to be read.
bySubIndex / BYTE
Indication of the subindex that is to be real.
Axis / AXIS_REF
Here, the axis structure for which the code is to be read is transferred.
Outputs (VAR_OUT)
Designator / Data type
Value / Meaning
Done / BOOL
TRUE indicates that the entry has been acknowledge.
Error / BOOL
TRUE indicates that an error has occurred in the function block
ErrorID / INT
Error number
dwValue / DWORD
Value which has been read
Error messages
The following error messages have been stored:
Error number [hex]
Description
SMC_RP_PARAM_UNKNOWN:=130 Unknown code
SMC_RP_REQUESTING_ERROR:=131 Read request has been aborted, e.g. because the drive did not
respond in the prescribed time.