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

Page 36

Advertising
background image

L-force | PLC Designer

Lenze Specific Functions

34

DMS 4.1 EN 03/2011 TD29

Function block L_SMC_WriteParameter (for EtherCAT)
Function library: L_SM3_DriveUtil.lib
With this block, codes of a Motion drive are written. The code and 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

Execute / BOOL

Activates the function.

wCode / WORD

Indication of the code into which value to be written.

bySubIndex / BYTE

Indication of the subindex into which value is to be written.

dwValue / DWORD

Value that is to be written.

Axis / AXIS_REF

Here, the axis structure for which the code is to be written 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


Error messages
The following error messages have been stored:

Error number [hex]

Description

SMC_WP_PARAM_UNKNOWN:=140 Unknown code

SMC_WP_SENDING_ERROR:=141

Write request has been aborted, e.g. because the drive did not
respond in the prescribed time.

Advertising