1 smc_writedriveparamstofile, Smc_writedriveparamstofile, L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 61

DMS 5.2 EN 03/2011 TD17
L
61
L-force | PLC Designer - SoftMotion
The SoftMotion drive interface
Parameterisation of the drive
3.5.1
SMC_WriteDriveParamsToFile
This POU reads out all configuration parameters of the drive and saves them in a file. As it
carries out a data access which possibly blocks the processing of the application for several
ms, it usually may not be called in the Motion task, but should be carried out in a task with
a lower priority.
The POU is informed by the drive element about the parameters which are to be read out;
the driver can either receive this information from the drive itself, or it contains a standard
parameter list (for CAN: see global variable list of the standard 3S drivers). For CAN drives
an individual list of the same format can be created and allocated to the drive via the
following assignment:
Input/output (VAR_IN_OUT)
Axis : AXIS_REF
Drive the parameters of which are to be read out.
Inputs (VAR_INPUT)
bExecute: BOOL
With TRUE the POU is started.
sFileName: STRING(255)
File name.
bXMLFormat: BOOL
If this variable is TRUE, the file is created in the XML format (and can then be imported into
the drive dialog), otherwise in the text format (which can be stored on the control system
and be imported and transmitted during the acceleration by the drive element).
Outputs (VAR_OUTPUT)
bDone : BOOL
Action completed.
bError : BOOL
Error occurred.
nErrorID: INT
Error number