102BTechnology instructions
9.3 Basic motion control
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
361
Table 9- 40 Parameters for the MC_MoveJog instruction
Parameter and type
Data type
Description
Axis
IN
TO_Axis_1
Axis technology object
JogForward
1
IN
Bool
As long as the parameter is TRUE, the axis moves in the positive
direction at the velocity specified in parameter "Velocity". The sign of
the value in parameter "Velocity" is ignored. (Default value: False)
JogBackward
1
IN
Bool
As long as the parameter is TRUE, the axis moves in the negative
direction at the velocity specified in parameter "Velocity". The sign of
the value in parameter "Velocity" is ignored. (Default value: False)
Velocity
IN
Real
Preset velocity for jog mode (Default value: 10.0)
Limit values: Start/stop velocity ≤ |Velocity| ≤ maximum velocity
InVelocity
OUT
Bool
TRUE = The velocity specified in parameter "Velocity" was reached.
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)
1
If both the JogForward and JogBackward parameters are simultaneously TRUE, the axis stops with the configured
deceleration. An error is indicated in parameters "Error", "ErrorID", and "ErrorInfo".
$[LV
-RJ)RUZDUG
-RJ%DFNZDUG
9HORFLW\
,Q9HORFLW\
%XV\
&RPPDQG$ERUWHG
(UURU
(UURU,'
(UURU,QIR
0&B0RYH-RJ
$[LVB
-RJB)
-RJB%
,Q9HOB
%XV\B
WW
W
W
W
W
0RYH-RJ
-RJB%
-RJB)
,Q9HOB
%XV\B
9HORFLW\
$[LVB
The following values were configured in the "Dynamics > General" configuration window: Acceleration = 10.0 and
Deceleration = 5.0
①
The axis is moved in the positive direction in jog mode via "Jog_F". When the target velocity 50.0 is reached, this is
signaled via "InVelo_1". The axis brakes to a standstill again after Jog_F is reset.
②
The axis is moved in the negative direction in jog mode via "Jog_B". When the target velocity 50.0 is reached, this
is signaled via "InVelo_1". The axis brakes to a standstill again after Jog_B is reset.