Download Softmotion User Manual

Transcript
Modules for Controlling Single-Axis Motions
Inputs of the function block:
Execute : BOOL (Default: FALSE)
At a rising edge at this variable the module will start the motion.
Distance : REAL
Relative distance for the motion (in technical unit [u]).
Velocity : REAL
Value of the target velocity (not necessarily to be reached) [u/s].
Acceleration : REAL
Desired acceleration (increasing energy of the motor) [u/s^2].
Deceleration : REAL
Desired deceleration (decreasing energy of the motor) [u/s^2].
Outputs of the function block:
Done : BOOL (Default: FALSE)
This variable gets TRUE as soon as the commanded position has been reached, this means as soon
as the drive has been stopped.
CommandAborted : BOOL (Default: FALSE)
This variable gets TRUE as soon as the commanded motion was interrupted by any motion function
block acting on the same axis; except MoveSuperImposed.
Error : BOOL (Default: FALSE)
This variable gets TRUE when an error has occurred in the function block.
ErrorID : INT
Error number
MC_MoveRelative
This function block, which is part of the SM_PLCopen.lib, moves the axis by a relative distance
according to the defined velocity, deceleration and acceleration values. The distance can have
positive or negative values.
In-/Output (VAR_IN_OUT) of the function block:
Axis : AXIS_REF
This variable passes the structure, which has been feded with the axis data by the Drive Interface
(Drive_Basic.lib).
Inputs of the function block:
Execute : BOOL (Default: FALSE)
At a rising edge at this variable the module will start the motion.
Distance : REAL
Relative distance for the motion (in technical unit [u]).
5-8
SoftMotion in CoDeSys 2.3