3 configuration blocks, 1 smc_changegearingratio, Configuration blocks – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 31

Advertising
background image

DMS 5.2 EN 03/2011 TD17

L

31

L-force | PLC Designer - SoftMotion

The SoftMotion drive interface

SM_DriveBasic.lib and automatic code generation

3.2.3

Configuration blocks

3.2.3.1

SMC_ChangeGearingRatio
By means of this POU the IEC program can change the gearbox ratio and the drive type for

the runtime.

Inputs/outputs (VAR_IN_OUT)
Axis : AXIS_REF
Drive the gearbox ratio of which is to be changed.

Inputs (VAR_INPUT)
bExecute: BOOL
The program organisation unit is activated with a rising edge.
dwRatioTechUnitsDenom : DWORD
iRatioTechUnitsNum: DWORD
Conversion ratio between SoftMotion unit and increments
fPositionPeriod: LREAL
Position period, modulo value (for rotary drives only)
iMovementType: INT
0: rotary axis / 1: linear axis.

Note!

After the execution of this POU the axis group should be restarted via

SMC_ResetAxisGroup (bKeepRatioSettings = TRUE), as only like this it can be

ensured that all variables are initialised correctly!

Advertising