Description
Motion control instruction "MC_MoveJog" moves the axis constantly at the specified velocity in jog mode. You use this Motion Control instruction, for example, for testing and commissioning purposes.
Requirements
-
The positioning axis technology object has been configured correctly.
-
The axis is enabled.
Override response
The MC_MoveJog command can be aborted by the following Motion Control commands:
-
MC_Home command Mode = 3
-
MC_Halt command
-
MC_MoveAbsolute command
-
MC_MoveRelative command
-
MC_MoveVelocity command
-
MC_MoveJog command
-
MC_CommandTable command
The new MC_MoveJog command aborts the following active Motion Control commands:
-
MC_Home command Mode = 3
-
MC_Halt command
-
MC_MoveAbsolute command
-
MC_MoveRelative command
-
MC_MoveVelocity command
-
MC_MoveJog command
-
MC_CommandTable command
Parameters
|
Parameter |
Declaration |
Data type |
Default value |
Description |
|
|---|---|---|---|---|---|
|
Axis |
INPUT |
TO_SpeedAxis |
- |
Axis technology object |
|
|
JogForward |
INPUT |
BOOL |
FALSE |
As long as the parameter is TRUE, the axis moves in the positive direction at the velocity specified in parameter "Velocity". |
|
|
JogBackward |
INPUT |
BOOL |
FALSE |
As long as the parameter is TRUE, the axis moves in the negative direction at the velocity specified in parameter "Velocity". |
|
|
If both parameters are simultaneously TRUE, the axis stops with the configured deceleration. An error is indicated in parameters "Error", "ErrorID", and "ErrorInfo". |
|||||
|
Velocity |
INPUT |
REAL |
10.0 |
Preset velocity for jog mode Limit values: Start/stop velocity ≤ velocity ≤ maximum velocity |
|
|
InVelocity |
OUTPUT |
BOOL |
FALSE |
TRUE |
The velocity specified in parameter "Velocity" was reached. |
|
Busy |
OUTPUT |
BOOL |
FALSE |
TRUE |
The command is being executed |
|
CommandAborted |
OUTPUT |
BOOL |
FALSE |
TRUE |
During execution, the command was aborted by another command. |
|
Error |
OUTPUT |
BOOL |
FALSE |
TRUE |
An error occurred during execution of the command. The cause of the error can be found in parameters "ErrorID" and "ErrorInfo". |
|
ErrorID |
OUTPUT |
WORD |
16#0000 |
Error ID for parameter "Error" |
|
|
ErrorInfo |
OUTPUT |
WORD |
16#0000 |
Error info ID for parameter "ErrorID" |
|
See also
MC_MoveJog: Function chart V4...5 (S7-1200)
MC_Power: Enable, disable axis V4...5 (S7-1200)
MC_Reset: Acknowledge fault, restart technology object V4...5 (S7-1200)
MC_Home: Home axis, set home position V4...5 (S7-1200)
MC_Halt: Stop axis V4...5 (S7-1200)
MC_MoveAbsolute: Absolute positioning of axis V4...5 (S7-1200)
MC_MoveRelative: Relative positioning of axis V4...5 (S7-1200)
MC_MoveVelocity: Move axis at set velocity V4...5 (S7-1200)
MC_CommandTable: Run axis commands as motion sequence V4...5 (S7-1200)
MC_ChangeDynamic: Change dynamic settings of axis V4...5 (S7-1200)
MC_ReadParam: Continuously read motion data of a positioning axis V4...5 (S7-1200)
MC_WriteParam: Write tag of positioning axis V4...5 (S7-1200)
S7-1200 Motion Control V1...3 (S7-1200)