Resulting behavior of the motor
The program results in the following behavior of the motor:
- With reference travel
stHome.stConfig.diSearchVelocity(V1), the system moves in the direction of the target positionstHome.stConfig.diPositionuntil the reference switch is passed. - The system tne decelerates to to speed 0 with
stHome.stConfig.diDecelerationand accelerates tostHome.stConfig.diAccelerationand in negative direction with speeddiSearchVelocity(V1). - If the reference switch is moved clear again, the system brakes again and accelerates in the positive direction to speed
diClearVelocity(V2). SincediClearVelocityis used to approached the edge, a low value should be selected. - When the sensor is reached again, the drive is stopped and the home position
stHome.stConfig.diOffsetis set. stHome.stConfig.diOffset=stBasic.stOUT.diPosition- The variable
stInverter.stOUT.xTargetReached = TRUEshows that homing was performed.
