L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual

Page 42

Advertising
background image

L-force | PLC Designer - SoftMotion

The SoftMotion drive interface

SM_DriveBasic.lib and automatic code generation

42

L

DMS 5.2 EN 03/2011 TD17

nHomingMode : SMC_HOMING_MODE (Default: FAST_BSLOW_S_STOP)

 FAST_BSLOW_S_STOP:

– The drive is traversed in the specified direction with the speed fVelocityFast (FAST)

until the input bEndSwitch becomes FALSE, then it is stopped and moved in the

opposite direction with fVelocitySlow (BSLOW) until bEndSwitch is TRUE again. In

this position the home position is set (S) and the process is stopped (STOP).

 FAST_BSLOW_STOP_S:

– In contrast to FAST_BSLOW_S_STOP, after retracting a stop takes place first, and

then the home position is set.

 FAST_BSLOW_I_S_STOP:

– In contrast to FAST_BSLOW_S_STOP, after retracting an index pulse

(bIndexOccured=TRUE) is set here, and is position fIndexPosition which is set as

home position is awaited. Only then a stop takes place.

 FAST_BSLOW_S_STOP/ FAST_BSLOW_STOP_S / FAST_BSLOW_I_S_STOP:

– These modes operate exactly as the ones described above, with the difference that

no reverse movement takes place when the reference switch is reached, but the

travel movement continues in the same direction. Please note that for safety reasons

the input bIgnoreHWLimits in this mode has to be FALSE.

bReturnToZero: BOOL (Default: FALSE)
If this flag is set, the block carries out the positioning process to the zero point after the

procedure defined in nHomingMode has been completed.
bIndexOccured: BOOL (Default: FALSE)
Only for nHomingMode FAST_BSLOW_I_S_STOP: Indicates whether index pulse has

occurred.
fIndexPosition: REAL (Default: 0.0)
Only for nHomingMode FAST_BSLOW_I_S_STOP: Latched position of the index pulse.
If this input is TRUE, the hardware check of the limit switches is interrupted. Use this option

if you use the same physical switch for the hardware limit switch and reference switch.
bIgnoreHWLimit: BOOL (Default: FALSE)
If this input is TRUE, the hardware check of the limit switches is interrupted. Use this option

if you use the same physical switch for the hardware limit switch and reference switch.

Advertising