102BTechnology instructions
9.3 Basic motion control
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
359
Parameter and type
Data type
Description
InVelocity
OUT
Bool
TRUE:
If "Current" = FALSE: The velocity specified in parameter
"Velocity" was reached.
If "Current" = TRUE: The axis travels at the current velocity at
the start time.
Busy
OUT
Bool
TRUE = The task is being executed.
CommandAborted
OUT
Bool
TRUE = During execution the task was aborted by another task.
Error
OUT
Bool
TRUE = An error has occurred during execution of the task. The
cause of the error can be found in parameters "ErrorID" and
"ErrorInfo".
ErrorID
OUT
Word
Error ID for parameter "Error" (Default value: 0000)
ErrorInfo
OUT
Word
Error info ID for parameter "ErrorID" (Default value: 0000)
$[LV
([HFXWH
9HORFLW\
'LUHFWLRQ
,Q9HORFLW\
%XV\
&RPPDQG$ERUWHG
(UURU
(UURU,'
(UURU,QIR
&XUUHQW
$[LVB
([HB
,Q9HOB
$ERUWB
0&B0RYH9HORFLW\
%XV\B
$[LV
([HFXWH
9HORFLW\
'LUHFWLRQ
,Q9HORFLW\
%XV\
&RPPDQG$ERUWHG
(UURU
(UURU,'
(UURU,QIR
&XUUHQW
$[LVB
([HB
,Q9HOB
0&B0RYH9HORFLW\
%XV\B
W
W
W
W
W
W
W
W
0RYH
0RYH
([HB
([HB
,Q9HOB
$ERUWB
,Q9HOB
9HORFLW\
$[LVB
%XV\B
%XV\B
The following values were configured in the "Dynamics > General" configuration window: Acceleration = 10.0 and
Deceleration = 10.0
①
An active MC_MoveVelocity task signals via "InVel_1" that its target velocity has been reached. It is then aborted
by another MC_MoveVelocity task. The abort is signaled via "Abort_1". When the new target velocity 15.0 is
reached, this is signaled via "InVel_2". The axis then continues moving at the new constant velocity.
②
An active MC_MoveVelocity task is aborted by another MC_MoveVelocity task prior to reaching its target velocity.
The abort is signaled via "Abort_1". When the new target velocity 15.0 is reached, this is signaled via "InVel_2".
The axis then continues moving at the new constant velocity.